Commit Graph
6 Commits
Author SHA1 Message Date
Tatsuya Yamaguchi d1831bf276 ArduSub: clear RC overrides on forward/lateral/yaw/vertical input
Override has_pilot_input_for_override_clear() to use Sub's joystick
axes (forward, lateral, yaw, plus throttle mapped to vertical thrust)
instead of the Copter-style roll/pitch/yaw/throttle set.
2026-06-03 08:54:09 +09:00
Thomas Watson c6a9d385bd Sub: make flight mode parameters into array
This removes the need for the pointer to the first flight mode, and
removes the undefined behavior resulting from indexing past that first
flight mode and hoping the others follow (though this is unlikely to
pose a problem in practice).

Saves a few bytes of RAM and flash as the pointer is no longer needed
and code is no longer necessary to set it up.

Also fixes the bounds check condition of that array to match its size so
there is no longer the possibility of indexing one past it.
2026-04-13 12:50:48 +01:00
Peter Barker 825e0c3076 ArduSub: has_valid_input is only true if we have ever seen RC input 2025-11-04 11:31:02 +11:00
Henry Wurzburg 7486650dd8 ArduSub: add RC to Sub 2025-04-25 12:21:43 -03:00
Peter Barker f2d0607b90 ArduSub: adjust for renaming of RC_Channel and GCS_MAVLink headers 2024-12-26 11:01:22 +11:00
Peter Barker e9cf45ac46 ArduSub: make RC_Channel and GCS_MAVLink filenames consistent 2024-12-26 11:01:22 +11:00