AP_Scripting: log disarm method
This commit is contained in:
parent
7b9cdd6d06
commit
1e82ae4676
@ -38,7 +38,7 @@ singleton AP_AHRS method airspeed_estimate boolean float'Null
|
||||
include AP_Arming/AP_Arming.h
|
||||
|
||||
singleton AP_Arming alias arming
|
||||
singleton AP_Arming method disarm boolean
|
||||
singleton AP_Arming method disarm boolean AP_Arming::Method::SCRIPTING'literal
|
||||
singleton AP_Arming method is_armed boolean
|
||||
singleton AP_Arming method arm boolean AP_Arming::Method::SCRIPTING'literal
|
||||
|
||||
|
@ -1743,7 +1743,7 @@ static int AP_Arming_disarm(lua_State *L) {
|
||||
}
|
||||
|
||||
binding_argcheck(L, 1);
|
||||
const bool data = ud->disarm();
|
||||
const bool data = ud->disarm( AP_Arming::Method::SCRIPTING);
|
||||
|
||||
lua_pushboolean(L, data);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user