mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 00:00:35 +08:00
refactor start of gps into separate function
This commit is contained in:
committed by
Mathieu Bresciani
parent
7eb2b08eed
commit
310b989c9a
+1
-10
@@ -514,16 +514,7 @@ void Ekf::controlGpsFusion()
|
||||
|
||||
// If the heading is valid start using gps aiding
|
||||
if (_control_status.flags.yaw_align) {
|
||||
resetHorizontalPositionToGps();
|
||||
|
||||
// when adding with optical flow,
|
||||
// velocity reset is not necessary
|
||||
if (!_control_status.flags.opt_flow) {
|
||||
resetVelocityToGps();
|
||||
}
|
||||
|
||||
ECL_INFO_TIMESTAMPED("starting GPS fusion");
|
||||
_control_status.flags.gps = true;
|
||||
startGpsFusion();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user