nav_algo.servo module

Bases: object

Returns value based on a linear map of MIN -> MAX to a value ENDMIN -> ENDMAX

Just instantiate the class then enter an angle into “servo”_angle as an int SAIL_MIN_ANGLE -> SAIL_MAX_ANGLE degrees

Just instantiate the class then enter an angle into “servo”_angle as an int TAIL_MIN_ANGLE -> TAIL_MAX_ANGLE degrees

Puts the servo driver to sleep to conserve energy.

Parameters

sleep (bool) – turns off oscillator if True, if false it runs in normal operation.