mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-26 17:30:28 +08:00
docs(msg): warn that a NaN course speed keeps the last thrust
With a NaN speed the course controller deactivates the speed controller, and the actuator controllers keep the last thrust they received. A publisher that sends no thrust of its own leaves the rover driving at the speed controller's last thrust without speed control. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Michael Fritsche <frimi999@gmail.com>
This commit is contained in:
1 parent
d36d3f758b
commit
63db4326d7
2 files changed
+8
-8
No files matched your search
@@ -20,12 +20,12 @@ corrected. To follow a desired track, publish surface_vehicle_position_setpoint
|
||||
|
||||
## Fields
|
||||
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| ----------------------------------- | --------- | ------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
||||
| <a id="fld_course"></a>course | `float32` | rad [NED] | [-pi : pi] | Course over ground to hold (Invalid: NaN No course. The last valid course is controlled until a NaN course is received. With a speed, the speed is still commanded (rover_ackermann and rover_differential keep the current heading, rover_mecanum drives along its body x axis); with NaN speed too, the course controller stops) |
|
||||
| <a id="fld_speed"></a>speed | `float32` | m/s | [-inf : inf] | Cruising speed; a negative value drives the vehicle in reverse (rear first) along the course (Invalid: NaN Speed not controlled: the speed controller is deactivated, and the heading is turned so that an external thrust commanded (surface_vehicle_thrust_setpoint) drives along the course: the sign of x gives forwards or reverse, rover_mecanum also aligns any x/y thrust direction with the course) |
|
||||
| <a id="fld_yaw"></a>yaw | `float32` | rad [NED] | [-pi : pi] | Currently unused. Only for omnidirectional vehicles: vehicle yaw while holding the course. (Invalid: NaN Not considered) |
|
||||
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
||||
| ----------------------------------- | --------- | ------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
||||
| <a id="fld_course"></a>course | `float32` | rad [NED] | [-pi : pi] | Course over ground to hold (Invalid: NaN No course. The last valid course is controlled until a NaN course is received. With a speed, the speed is still commanded (rover_ackermann and rover_differential keep the current heading, rover_mecanum drives along its body x axis); with NaN speed too, the course controller stops) |
|
||||
| <a id="fld_speed"></a>speed | `float32` | m/s | [-inf : inf] | Cruising speed; a negative value drives the vehicle in reverse (rear first) along the course (Invalid: NaN Speed not controlled: the speed controller is deactivated, and the heading is turned so that an external thrust commanded (surface_vehicle_thrust_setpoint) drives along the course: the sign of x gives forwards or reverse, rover_mecanum also aligns any x/y thrust direction with the course. The publisher must also publish the thrust: otherwise the last thrust of the speed controller stays applied) |
|
||||
| <a id="fld_yaw"></a>yaw | `float32` | rad [NED] | [-pi : pi] | Currently unused. Only for omnidirectional vehicles: vehicle yaw while holding the course. (Invalid: NaN Not considered) |
|
||||
|
||||
## Source Message
|
||||
|
||||
@@ -48,7 +48,7 @@ corrected. To follow a desired track, publish surface_vehicle_position_setpoint
|
||||
|
||||
uint64 timestamp # [us] Time since system start
|
||||
float32 course # [rad] [@range -pi, pi] [@frame NED] [@invalid NaN No course. The last valid course is controlled until a NaN course is received. With a speed, the speed is still commanded (rover_ackermann and rover_differential keep the current heading, rover_mecanum drives along its body x axis); with NaN speed too, the course controller stops] Course over ground to hold
|
||||
float32 speed # [m/s] [@range -inf, inf] [@invalid NaN Speed not controlled: the speed controller is deactivated, and the heading is turned so that an external thrust commanded (surface_vehicle_thrust_setpoint) drives along the course: the sign of x gives forwards or reverse, rover_mecanum also aligns any x/y thrust direction with the course] Cruising speed; a negative value drives the vehicle in reverse (rear first) along the course
|
||||
float32 speed # [m/s] [@range -inf, inf] [@invalid NaN Speed not controlled: the speed controller is deactivated, and the heading is turned so that an external thrust commanded (surface_vehicle_thrust_setpoint) drives along the course: the sign of x gives forwards or reverse, rover_mecanum also aligns any x/y thrust direction with the course. The publisher must also publish the thrust: otherwise the last thrust of the speed controller stays applied] Cruising speed; a negative value drives the vehicle in reverse (rear first) along the course
|
||||
float32 yaw # [rad] [@range -pi, pi] [@frame NED] [@invalid NaN Not considered] Currently unused. Only for omnidirectional vehicles: vehicle yaw while holding the course.
|
||||
```
|
||||
|
||||
|
||||
@@ -12,5 +12,5 @@
|
||||
|
||||
uint64 timestamp # [us] Time since system start
|
||||
float32 course # [rad] [@range -pi, pi] [@frame NED] [@invalid NaN No course. The last valid course is controlled until a NaN course is received. With a speed, the speed is still commanded (rover_ackermann and rover_differential keep the current heading, rover_mecanum drives along its body x axis); with NaN speed too, the course controller stops] Course over ground to hold
|
||||
float32 speed # [m/s] [@range -inf, inf] [@invalid NaN Speed not controlled: the speed controller is deactivated, and the heading is turned so that an external thrust commanded (surface_vehicle_thrust_setpoint) drives along the course: the sign of x gives forwards or reverse, rover_mecanum also aligns any x/y thrust direction with the course] Cruising speed; a negative value drives the vehicle in reverse (rear first) along the course
|
||||
float32 speed # [m/s] [@range -inf, inf] [@invalid NaN Speed not controlled: the speed controller is deactivated, and the heading is turned so that an external thrust commanded (surface_vehicle_thrust_setpoint) drives along the course: the sign of x gives forwards or reverse, rover_mecanum also aligns any x/y thrust direction with the course. The publisher must also publish the thrust: otherwise the last thrust of the speed controller stays applied] Cruising speed; a negative value drives the vehicle in reverse (rear first) along the course
|
||||
float32 yaw # [rad] [@range -pi, pi] [@frame NED] [@invalid NaN Not considered] Currently unused. Only for omnidirectional vehicles: vehicle yaw while holding the course.
|
||||
Reference in new issue
Block a user