|
RSeries astromech firmware
|
|
Go to the documentation of this file.
41 virtual void stop()
override
51 virtual void motor(
float m)
override
53 m =
map(m, -1.0f, 1.0f, 0.0f, 1.0f);
57 static float map(
float x,
float in_min,
float in_max,
float out_min,
float out_max)
59 return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
virtual void setup() override
Subclasses must implement this function to perform any necessary setup that cannot happen in the cons...
Definition: DomeDrivePWM.h:37
virtual void stop()
Definition: DomeDrive.h:225
void moveTo(uint16_t num, uint32_t startDelay, uint32_t moveTime, float pos)
Definition: ServoDispatch.h:132
virtual void stop() override
Definition: DomeDrivePWM.h:41
DomeDrivePWM(ServoDispatch &dispatch, uint8_t pwmNum, JoystickController &domeStick)
Constructor.
Definition: DomeDrivePWM.h:29
void setMaxSpeed(float modifier)
Definition: DomeDrive.h:153
Servo interace implemented eitehr by ServoDispatchPCA9685 or ServoDispatchDirect.
Definition: ServoDispatch.h:83
ServoDispatch & fDispatch
Definition: DomeDrivePWM.h:48
void domeStick(JoystickController *stick, float speedModifier)
Definition: DomeDrive.h:370
Definition: JoystickController.h:4
Base template of automatic forwarder from i2c to CommandEvent.
Definition: DomeDrivePWM.h:22
virtual void motor(float m) override
Definition: DomeDrivePWM.h:51
uint8_t fPWM
Definition: DomeDrivePWM.h:49
Base template of automatic forwarder from i2c to CommandEvent.
Definition: DomeDrive.h:66
static float map(float x, float in_min, float in_max, float out_min, float out_max)
Definition: DomeDrivePWM.h:57