-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Differential: Seperate Velocity Control #24640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 112 byte (0.01 %)]
px4_fmu-v6x [Total VM Diff: 104 byte (0.01 %)]
Updated: 2025-04-29T12:32:59 |
cc42320
to
b266381
Compare
b266381
to
1cdfb07
Compare
1cdfb07
to
cd9a2c9
Compare
cd9a2c9
to
417e1b5
Compare
sfuhrer
reviewed
Apr 29, 2025
src/modules/rover_differential/DifferentialPosControl/DifferentialPosControl.cpp
Show resolved
Hide resolved
src/modules/rover_differential/DifferentialPosControl/DifferentialPosControl.cpp
Outdated
Show resolved
Hide resolved
src/modules/rover_differential/DifferentialPosControl/DifferentialPosControl.cpp
Outdated
Show resolved
Hide resolved
src/modules/rover_differential/DifferentialVelControl/DifferentialVelControl.cpp
Outdated
Show resolved
Hide resolved
sfuhrer
previously approved these changes
Apr 29, 2025
292d89e
to
6047636
Compare
6047636
to
707d06f
Compare
sfuhrer
approved these changes
Apr 29, 2025
Related issue #25157 |
This was referenced Jul 7, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solved Problem
Seperated

DifferentialPosVelControl
intoDifferentialVelControl
andDifferentialPosControl
to bring the module into the following structure (Continuation of #24604):This introducesthis new rover specific setpoints:
DifferentialVelocitySetpoint
: Each rover type will have its own velocity message because they differ greatly in implementation (i.e. mecanum can specify the yaw in addition to the velocity and won`t need the backwards driving flag etc.).This PR also streamlines the flow of information between the different controllers: Each level of control will only publish the setpoint for one hierarchy level below (with the exception of the RoverThrottleSetpoint).
This is in preparation of exposing the rover setpoint (all orange uORB messages in the figure above) to DDS.
Test Coverage
Tested in SITL
Hardware tests: