Skip to content

Update YAMS for SPARK MAX and SPARK Flex firmware 27.0.0 - #250

Merged
thenetworkgrinch merged 2 commits into
masterfrom
spark-firmware-27
Oct 29, 2026
Merged

thenetworkgrinch merged 2 commits into
masterfrom
spark-firmware-27

Conversation

@thenetworkgrinch

@thenetworkgrinch thenetworkgrinch commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

REV released SPARK MAX 27.0.0 and SPARK Flex 27.0.0. Most of it is the firmware catching up with REVLib 2027, which YAMS already uses: YAMS sets no conversion factors, treats the position wrap range as feedback sensor rotations, and gives the SPARK's absolute encoder a range offset instead of zero centered.

Changes

  • NEO velocity measurement delay on a SPARK MAX (Java and C++ SparkWrapper): the 112 ms delay comes from the 8 sample, 32 ms hall sensor moving average, which firmware 27 replaces with a filter REV does not describe. SysId needs a delay, so 112 ms stays, with a TODO to measure the new filter's. Other encoders' delays are read back from the SPARK, so the new default average depth and sample delta are picked up already.
  • MIGRATION.md: tells teams to flash 27.0.0, lists the firmware's behavior changes that can need gain changes (follower output and voltage compensation, kS at a velocity setpoint of 0, the SPARK MAX closed loop sensor after a reboot), and adds the firmware to the checklist.

Testing

  • Java and C++ builds and tests, run in groups after opening this PR.

… note SPARK firmware 27.0.0 in the migration guide

SPARK MAX firmware 27 replaced the NEO hall sensor's moving average, which the
112 ms delay came from, with a filter REV does not describe.
@thenetworkgrinch
thenetworkgrinch merged commit b4b67cb into master Oct 29, 2026
5 checks passed
@thenetworkgrinch
thenetworkgrinch deleted the spark-firmware-27 branch October 29, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant