Class Vortex80AEsc¶
Defined in File vortex_80a_esc.hpp
Class Documentation¶
-
class Vortex80AEsc¶
Driver for the Vortex80AEsc involving sending various signals and speed ranges.
Public Functions
-
Vortex80AEsc(tap::gpio::Pwm &pwmDriver, const trap::gpio::PwmData &pwmData, const Directionality &directionality = Directionality::BIDIRECTIONAL)¶
-
void sendArmingSignal()¶
Sends the appropriate arming signal
-
void armingRoutine()¶
This will lock the code for half a second, sending the armin signal This is mainly used for tests. If you have a lot of motors, the code will lock up for that given period.
-
void setSpeed(double speedRangePercentage)¶
-
void setPulseDuration(const Microseconds &duration)¶
This is how long the pwm signal stays high each cycle. You snhould not exceed the cycle period.
-
void setDirectionality(const Directionality &directionality)¶
-
Directionality getDirectionality() const¶
-
Vortex80AEsc(tap::gpio::Pwm &pwmDriver, const trap::gpio::PwmData &pwmData, const Directionality &directionality = Directionality::BIDIRECTIONAL)¶