5 #ifndef ARUNA_MOVEMENTACTUATOR_H 6 #define ARUNA_MOVEMENTACTUATOR_H 25 static double convert_range(uint16_t input,
float range_max = 100.f,
float range_min = 0.f);
94 #endif //ARUNA_MOVEMENTACTUATOR_H
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.
err_t startup_error
error when constructing gets put here, read before usage.
virtual err_t _set(axis_mask_t axisMask, int16_t speed)=0
Implementation of axis movement, this function is called from set(...).