mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_Mission: Add is_valid_index() function
This commit is contained in:
parent
0567d8576e
commit
a29cd0321b
@ -724,6 +724,8 @@ public:
|
|||||||
// Returns 0 if no appropriate JUMP_TAG match can be found.
|
// Returns 0 if no appropriate JUMP_TAG match can be found.
|
||||||
uint16_t get_index_of_jump_tag(const uint16_t tag) const;
|
uint16_t get_index_of_jump_tag(const uint16_t tag) const;
|
||||||
|
|
||||||
|
bool is_valid_index(const uint16_t index) const { return index < _cmd_total; }
|
||||||
|
|
||||||
#if AP_SDCARD_STORAGE_ENABLED
|
#if AP_SDCARD_STORAGE_ENABLED
|
||||||
bool failed_sdcard_storage(void) const {
|
bool failed_sdcard_storage(void) const {
|
||||||
return _failed_sdcard_storage;
|
return _failed_sdcard_storage;
|
||||||
|
Loading…
Reference in New Issue
Block a user