FlowHold Mode¶
FlowHold mode uses an optical flow sensor to hold position without the need for a GPS nor a downward facing Lidar. Better performance can be achieved by attaching a rangefinder and using regular Loiter mode instead
Warning
With many vehicles this mode results in wobbling and unstable position hold. If possible we recommend attaching a rangefinder and using regular Loiter instead
FlowHold mode is similar to PosHold mode in that the pilot directly controls the vehicle’s lean angles with the roll and pitch sticks. When the user releases the sticks, the optical flow sensor is used by the autopilot to bring the vehicle to a stop.
Because no Lidar is used in this mode, the optical flow sensor is used both to estimate the vehicle’s height above the surface and the vehicle’s speed. Soon after takeoff or after there have been large changes in the height above the surface the vehicle may wobble as it learns the new height and velocity.
The following parameters can be used to tune FlowHold’s performance:
FHLD_BRAKE_RATE controls the desired deceleration rate when the pilot releases the sticks
FHLD_FILT_HZ is the filter applied to the optical flow sensor data
FHLD_FLOW_MAX is the optical flow sensor’s maximum rate (in m/s) used when stopping
FHLD_QUAL_MIN is the minimum flow quality used. If the flow sensor quality falls below this value, FlowHold will act just like AltHold
FHLD_XY_P, FHLD_XY_I, FHLD_XY_IMAX and FHLD_XY_FILT_HZ gains to tune the stopping response