mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 05:23:34 +08:00
Changed wheel encoder publication to multi-instance
This commit is contained in:
committed by
Julian Oes
parent
3850322046
commit
830d576f45
+3
-13
@@ -1,15 +1,5 @@
|
||||
# TODO: How should this mapping be done? What if there's a 6-wheeled (or more) rover?
|
||||
uint8 FRONT_RIGHT = 0
|
||||
uint8 FRONT_LEFT = 1
|
||||
uint8 REAR_RIGHT = 2
|
||||
uint8 REAR_LEFT = 3
|
||||
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
# TODO: How large should the arrays be? What if we have a 6-wheeled rover?
|
||||
bool[4] has_encoder # True for each wheel that has an encoder
|
||||
int64[4] encoder_position # The wheel position, in encoder counts since boot. Positive is forward rotation, negative is reverse rotation
|
||||
int32[4] speed # Speed of each wheel, in encoder counts per second. Positive is forward, negative is reverse
|
||||
|
||||
# TODO: Should this be just one uint32, assuming each wheel has the same encoder?
|
||||
uint32[4] pulses_per_rev # Number of pulses per revolution for each wheel
|
||||
int64 encoder_position # The wheel position, in encoder counts since boot. Positive is forward rotation, negative is reverse rotation
|
||||
int32 speed # Speed of each wheel, in encoder counts per second. Positive is forward, negative is reverse
|
||||
uint32 pulses_per_rev # Number of pulses per revolution for each wheel
|
||||
|
||||
Reference in New Issue
Block a user