Optical Flow
1
Ardupilot Parameters
Optical flow
FLOW_TYPE 5 # MAVLink optical flow source
FLOW_FXSCALER <computed below>
FLOW_FYSCALER <computed below>
FLOW_ORIENT_YAW 0 # 0 if camera +X aligns with vehicle +X; 180 if reversed
FLOW_DELAY 30 # ms; bump to 50 if post-flight XKFR innovations are biased
EK3_FLOW_USE 1
## for the following params you may use a different source if wanted
EK3_SRC1_VELXY 5 # OPTFLOW
EK3_SRC1_POSXY 0 # none (flow gives velocity, not absolute position)
EK3_SRC1_POSZ 1 # baro
RC7_OPTION 90 # EKF_SOURCE_SET — flip SRC1↔SRC2 from the TX in flightSynthetic Rangefinder
RNGFND1_TYPE 10 # MAVLink rangefinder
RNGFND1_ORIENT 25 # PITCH_270 (down)
RNGFND1_ADDR 0
RNGFND1_MIN_CM 5
RNGFND1_MAX_CM <ceiling, e.g. 5000 for 50 m>
## this value (MAX_CM) varies depending on you use case (see below)Last updated


