mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Copter: rename landing_gear.pde
This commit is contained in:
parent
62b5f32643
commit
5f3c2bcd11
@ -19,7 +19,7 @@ static void landinggear_update(){
|
|||||||
|
|
||||||
// send event message to datalog if status has changed
|
// send event message to datalog if status has changed
|
||||||
if (landinggear.deployed() != last_deploy_status){
|
if (landinggear.deployed() != last_deploy_status){
|
||||||
if (landinggear.deployed()){
|
if (landinggear.deployed()) {
|
||||||
Log_Write_Event(DATA_LANDING_GEAR_DEPLOYED);
|
Log_Write_Event(DATA_LANDING_GEAR_DEPLOYED);
|
||||||
} else {
|
} else {
|
||||||
Log_Write_Event(DATA_LANDING_GEAR_RETRACTED);
|
Log_Write_Event(DATA_LANDING_GEAR_RETRACTED);
|
||||||
@ -29,4 +29,3 @@ static void landinggear_update(){
|
|||||||
last_deploy_status = landinggear.deployed();
|
last_deploy_status = landinggear.deployed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user