AP_Mission: rename starts_with_takeoff_cmd

This commit is contained in:
Randy Mackay 2016-05-19 19:32:48 +09:00
parent 26e41fee7a
commit 54731a139f
2 changed files with 5 additions and 3 deletions

View File

@ -113,8 +113,8 @@ void AP_Mission::resume()
} }
} }
// return false if next command in the mission is not takeoff /// check mission starts with a takeoff command
bool AP_Mission::check_takeoff_cmd() bool AP_Mission::starts_with_takeoff_cmd()
{ {
Mission_Command cmd = {}; Mission_Command cmd = {};
uint16_t cmd_index; uint16_t cmd_index;

View File

@ -304,7 +304,9 @@ public:
/// start_or_resume - if MIS_AUTORESTART=0 this will call resume(), otherwise it will call start() /// start_or_resume - if MIS_AUTORESTART=0 this will call resume(), otherwise it will call start()
void start_or_resume(); void start_or_resume();
bool check_takeoff_cmd();
/// check mission starts with a takeoff command
bool starts_with_takeoff_cmd();
/// reset - reset mission to the first command /// reset - reset mission to the first command
void reset(); void reset();