ClemensElflein / xESC2040

Other
33 stars 5 forks source link

Feature/absolute ticks #9

Closed Apehaenger closed 1 year ago

Apehaenger commented 1 year ago

Added "absolute wheel ticks" and "direction" as described @ https://discord.com/channels/958476543846412329/961804411112394842/1051581786477559940

Tested only by watching ros topic /mower/wheel_ticks. "direction" only get actualized during duty_cycle. So no update on manual move.

Bumped fw_version_minor to 10.

Do we need to ensure that bool direction is the right way? If wrong, it can be flipped in direction = diff > 0; (line 251 of main.cpp)

Due to the packet change, my other xesc_ros pull request is also required, otherwise a "Got packet with wrong size..." get thrown.