26 err =
_set(axisMask, speed);
48 return ((input * (range_max - range_min)) / 65535) + range_min;
err_t set(axis_mask_t axisMask, int16_t speed)
Set the speed of the motors directly.
static double convert_range(uint16_t input, float range_max=100.f, float range_min=0.f)
Convert uint16 to a new range.
uint16_t get_speed()
Get the current speed of Actuator.
err_t set_axis(axis_mask_t new_axis)
Set the axis that this Actuator is capable in moving in.
Actuator(axis_mask_t axis=axis_mask_t::NONE)
Actuator object, used by the movement module for vehicle movement.
axis_mask_t get_axis()
get the movement modes that this driver supports.
virtual err_t _set(axis_mask_t axisMask, int16_t speed)=0
Implementation of axis movement, this function is called from set(...).