mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 00:33:56 -04:00
Copter: flowhold formatting fixes
This commit is contained in:
parent
4eee1fc06a
commit
01c48f6c76
@ -4,7 +4,7 @@
|
|||||||
#if !HAL_MINIMIZE_FEATURES && OPTFLOW == ENABLED
|
#if !HAL_MINIMIZE_FEATURES && OPTFLOW == ENABLED
|
||||||
|
|
||||||
/*
|
/*
|
||||||
implement FLOWHOLD mode, for position hold using opttical flow
|
implement FLOWHOLD mode, for position hold using optical flow
|
||||||
without rangefinder
|
without rangefinder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -190,7 +190,6 @@ void Copter::ModeFlowHold::flowhold_flow_to_angle(Vector2f &bf_angles, bool stic
|
|||||||
ef_output.zero();
|
ef_output.zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ef_output += xy_I;
|
ef_output += xy_I;
|
||||||
ef_output *= copter.aparm.angle_max;
|
ef_output *= copter.aparm.angle_max;
|
||||||
|
|
||||||
@ -366,7 +365,6 @@ void Copter::ModeFlowHold::run()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
update height estimate using integrated accelerometer ratio with optical flow
|
update height estimate using integrated accelerometer ratio with optical flow
|
||||||
*/
|
*/
|
||||||
@ -520,4 +518,3 @@ void Copter::ModeFlowHold::update_height_estimate(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // OPTFLOW == ENABLED
|
#endif // OPTFLOW == ENABLED
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user