Copter: only log home when first set
We should also log home when we arm
This commit is contained in:
parent
b0c777259f
commit
d589c591a6
@ -74,9 +74,6 @@ static bool set_home(const Location& loc)
|
|||||||
scaleLongUp = 1.0f/scaleLongDown;
|
scaleLongUp = 1.0f/scaleLongDown;
|
||||||
// record home is set
|
// record home is set
|
||||||
set_home_state(HOME_SET_NOT_LOCKED);
|
set_home_state(HOME_SET_NOT_LOCKED);
|
||||||
}
|
|
||||||
|
|
||||||
// To-Do: doing the stuff below constantly while armed could lead to lots of logging or performance hit?
|
|
||||||
|
|
||||||
// log new home position which mission library will pull from ahrs
|
// log new home position which mission library will pull from ahrs
|
||||||
if (should_log(MASK_LOG_CMD)) {
|
if (should_log(MASK_LOG_CMD)) {
|
||||||
@ -85,6 +82,7 @@ static bool set_home(const Location& loc)
|
|||||||
Log_Write_Cmd(temp_cmd);
|
Log_Write_Cmd(temp_cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// return success
|
// return success
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user