Fetching the data from a rangefinder and applying a command for a servo

i have a reading of a distance sensor, and i would like to apply a command for a servo>

Example: if the the distance less than 10 cm, the servo turns once

yes you should find everything you need in the set servo example and the rangefinder example.

1 Like

Can i do it just using the parameter list in Mission planner ?

there is no parameter for turning a servo when i rangefinder distance is below a set value.

1 Like