mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-06 07:53:57 -04:00
AP_Mission: add present
method
This commit is contained in:
parent
418f137f52
commit
405c002475
@ -507,6 +507,9 @@ public:
|
||||
return _commands_max;
|
||||
}
|
||||
|
||||
// Present - returns true if there is a mission currently loaded, ignoring home which is stored in index 0
|
||||
bool present() const { return _cmd_total > 1; }
|
||||
|
||||
/// start - resets current commands to point to the beginning of the mission
|
||||
/// To-Do: should we validate the mission first and return true/false?
|
||||
void start();
|
||||
|
Loading…
Reference in New Issue
Block a user