Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::motor::Vortex80AEsc Class Reference

#include <vortex_80a_esc.hpp>

Public Member Functions

 Vortex80AEsc (tap::gpio::Pwm &pwmDriver, const trap::gpio::PwmData &pwmData, const Directionality &directionality=Directionality::BIDIRECTIONAL)
 
void sendArmingSignal ()
 
void armingRoutine ()
 
void setSpeed (double speedRangePercentage)
 
void setPulseDuration (const Microseconds &duration)
 
void setDirectionality (const Directionality &directionality)
 
Directionality getDirectionality () const
 

Detailed Description

Driver for the Vortex80AEsc involving sending various signals and speed ranges.

Constructor & Destructor Documentation

◆ Vortex80AEsc()

fang::motor::Vortex80AEsc::Vortex80AEsc ( tap::gpio::Pwm pwmDriver,
const trap::gpio::PwmData pwmData,
const Directionality directionality = Directionality::BIDIRECTIONAL 
)

Member Function Documentation

◆ armingRoutine()

void fang::motor::Vortex80AEsc::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.

◆ getDirectionality()

Directionality fang::motor::Vortex80AEsc::getDirectionality ( ) const

◆ sendArmingSignal()

void fang::motor::Vortex80AEsc::sendArmingSignal ( )

Sends the appropriate arming signal

◆ setDirectionality()

void fang::motor::Vortex80AEsc::setDirectionality ( const Directionality directionality)

◆ setPulseDuration()

void fang::motor::Vortex80AEsc::setPulseDuration ( const Microseconds duration)

This is how long the pwm signal stays high each cycle. You snhould not exceed the cycle period.

◆ setSpeed()

void fang::motor::Vortex80AEsc::setSpeed ( double  speedRangePercentage)

The documentation for this class was generated from the following files: