Commit Graph
5 Commits
Author SHA1 Message Date
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