mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Scripting: add support for dependencty on manual methods, remove handling of mission commands without AP_Mission
This commit is contained in:
committed by
Andrew Tridgell
parent
77e2d07979
commit
105801c5b0
@@ -304,6 +304,7 @@ void AP_Scripting::thread(void) {
|
||||
|
||||
void AP_Scripting::handle_mission_command(const AP_Mission::Mission_Command& cmd_in)
|
||||
{
|
||||
#if AP_MISSION_ENABLED
|
||||
if (!_enable) {
|
||||
return;
|
||||
}
|
||||
@@ -328,6 +329,7 @@ void AP_Scripting::handle_mission_command(const AP_Mission::Mission_Command& cmd
|
||||
AP_HAL::millis()};
|
||||
|
||||
mission_data->push(cmd);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool AP_Scripting::arming_checks(size_t buflen, char *buffer) const
|
||||
|
||||
Reference in New Issue
Block a user