RSeries astromech firmware
DomePosition Class Reference

#include <drive/DomePosition.h>

+ Inheritance diagram for DomePosition:

Public Types

enum  Mode { kOff = 1, kHome, kRandom, kTarget }
 

Public Member Functions

 DomePosition (DomePositionProvider &provider)
 
bool ready ()
 
Mode getDomeMode ()
 
Mode getDomeDefaultMode ()
 
void setDomeMode (Mode mode)
 
void setDomeDefaultMode (Mode mode)
 
bool getDomeFlip ()
 
float getDomeSpeed ()
 
float getDomeSpeedHome ()
 
float getDomeSpeedTarget ()
 
float getDomeMinSpeed ()
 
float getDomeAutoSpeed ()
 
unsigned getDomeFudge ()
 
unsigned getDomeAutoLeft ()
 
unsigned getDomeAutoRight ()
 
unsigned getDomeAutoMinDelay ()
 
unsigned getDomeAutoMaxDelay ()
 
unsigned getDomeHomeMinDelay ()
 
unsigned getDomeHomeMaxDelay ()
 
unsigned getDomeTargetMinDelay ()
 
unsigned getDomeTargetMaxDelay ()
 
unsigned getDomeMinDelay ()
 
unsigned getDomeMaxDelay ()
 
unsigned getDomeHome ()
 
unsigned getDomeTargetPosition ()
 
long getDomeRelativeTargetPosition ()
 
int shortestDistance (int origin, int target)
 
unsigned getDomePosition ()
 
int getRelativeDegrees ()
 
void resetDefaultMode ()
 
void resetWatchdog ()
 
void setTimeout (uint8_t timeout)
 
bool isTimeout ()
 
unsigned getHomeRelativeDomePosition ()
 
long normalize (long degrees)
 
bool isAtPosition (long degrees)
 
void setDomeHomePosition (long degrees)
 
void setDomeTargetPosition (long degrees)
 
void setDomeRelativeTargetPosition (long degrees)
 
void setDomeHomeRelativeTargetPosition (long degrees)
 
void setDomeHomeRelativeHomePosition (long degrees)
 
void setDomeHomeSpeed (uint8_t speed)
 
void setDomeTargetSpeed (uint8_t speed)
 
void setDomeMinSpeed (uint8_t speed)
 
void setDomeAutoSpeed (uint8_t speed)
 
void setDomeAutoMinDelay (uint8_t sec)
 
void setDomeAutoMaxDelay (uint8_t sec)
 
void setDomeHomeMinDelay (uint8_t sec)
 
void setDomeHomeMaxDelay (uint8_t sec)
 
void setDomeTargetMinDelay (uint8_t sec)
 
void setDomeTargetMaxDelay (uint8_t sec)
 
void setDomeFudgeFactor (uint8_t fudge)
 
void setDomeAutoLeftDegrees (uint8_t degrees)
 
void setDomeAutoRightDegrees (uint8_t degrees)
 
void setTargetReached (void(*reached)())
 
void setHomeTargetReached (void(*reached)())
 
void setAutoTargetReached (void(*reached)())
 
void reachedTarget ()
 
void reachedHomeTarget ()
 
void reachedAutoTarget ()
 

Member Enumeration Documentation

◆ Mode

Enumerator
kOff 
kHome 
kRandom 
kTarget 

Constructor & Destructor Documentation

◆ DomePosition()

DomePosition::DomePosition ( DomePositionProvider provider)
inline

Member Function Documentation

◆ getDomeAutoLeft()

unsigned DomePosition::getDomeAutoLeft ( )
inline

◆ getDomeAutoMaxDelay()

unsigned DomePosition::getDomeAutoMaxDelay ( )
inline

◆ getDomeAutoMinDelay()

unsigned DomePosition::getDomeAutoMinDelay ( )
inline

◆ getDomeAutoRight()

unsigned DomePosition::getDomeAutoRight ( )
inline

◆ getDomeAutoSpeed()

float DomePosition::getDomeAutoSpeed ( )
inline

◆ getDomeDefaultMode()

Mode DomePosition::getDomeDefaultMode ( )
inline

◆ getDomeFlip()

bool DomePosition::getDomeFlip ( )
inline

◆ getDomeFudge()

unsigned DomePosition::getDomeFudge ( )
inline

◆ getDomeHome()

unsigned DomePosition::getDomeHome ( )
inline

◆ getDomeHomeMaxDelay()

unsigned DomePosition::getDomeHomeMaxDelay ( )
inline

◆ getDomeHomeMinDelay()

unsigned DomePosition::getDomeHomeMinDelay ( )
inline

◆ getDomeMaxDelay()

unsigned DomePosition::getDomeMaxDelay ( )
inline

◆ getDomeMinDelay()

unsigned DomePosition::getDomeMinDelay ( )
inline

◆ getDomeMinSpeed()

float DomePosition::getDomeMinSpeed ( )
inline

◆ getDomeMode()

Mode DomePosition::getDomeMode ( )
inline

◆ getDomePosition()

unsigned DomePosition::getDomePosition ( )
inline

◆ getDomeRelativeTargetPosition()

long DomePosition::getDomeRelativeTargetPosition ( )
inline

◆ getDomeSpeed()

float DomePosition::getDomeSpeed ( )
inline

◆ getDomeSpeedHome()

float DomePosition::getDomeSpeedHome ( )
inline

◆ getDomeSpeedTarget()

float DomePosition::getDomeSpeedTarget ( )
inline

◆ getDomeTargetMaxDelay()

unsigned DomePosition::getDomeTargetMaxDelay ( )
inline

◆ getDomeTargetMinDelay()

unsigned DomePosition::getDomeTargetMinDelay ( )
inline

◆ getDomeTargetPosition()

unsigned DomePosition::getDomeTargetPosition ( )
inline

◆ getHomeRelativeDomePosition()

unsigned DomePosition::getHomeRelativeDomePosition ( )
inline

◆ getRelativeDegrees()

int DomePosition::getRelativeDegrees ( )
inline

◆ isAtPosition()

bool DomePosition::isAtPosition ( long  degrees)
inline

◆ isTimeout()

bool DomePosition::isTimeout ( )
inline

◆ normalize()

long DomePosition::normalize ( long  degrees)
inline

◆ reachedAutoTarget()

void DomePosition::reachedAutoTarget ( )
inline

◆ reachedHomeTarget()

void DomePosition::reachedHomeTarget ( )
inline

◆ reachedTarget()

void DomePosition::reachedTarget ( )
inline

◆ ready()

bool DomePosition::ready ( )
inline

◆ resetDefaultMode()

void DomePosition::resetDefaultMode ( )
inline

◆ resetWatchdog()

void DomePosition::resetWatchdog ( )
inline

◆ setAutoTargetReached()

void DomePosition::setAutoTargetReached ( void(*)()  reached)
inline

◆ setDomeAutoLeftDegrees()

void DomePosition::setDomeAutoLeftDegrees ( uint8_t  degrees)
inline

◆ setDomeAutoMaxDelay()

void DomePosition::setDomeAutoMaxDelay ( uint8_t  sec)
inline

◆ setDomeAutoMinDelay()

void DomePosition::setDomeAutoMinDelay ( uint8_t  sec)
inline

◆ setDomeAutoRightDegrees()

void DomePosition::setDomeAutoRightDegrees ( uint8_t  degrees)
inline

◆ setDomeAutoSpeed()

void DomePosition::setDomeAutoSpeed ( uint8_t  speed)
inline

◆ setDomeDefaultMode()

void DomePosition::setDomeDefaultMode ( Mode  mode)
inline

◆ setDomeFudgeFactor()

void DomePosition::setDomeFudgeFactor ( uint8_t  fudge)
inline

◆ setDomeHomeMaxDelay()

void DomePosition::setDomeHomeMaxDelay ( uint8_t  sec)
inline

◆ setDomeHomeMinDelay()

void DomePosition::setDomeHomeMinDelay ( uint8_t  sec)
inline

◆ setDomeHomePosition()

void DomePosition::setDomeHomePosition ( long  degrees)
inline

◆ setDomeHomeRelativeHomePosition()

void DomePosition::setDomeHomeRelativeHomePosition ( long  degrees)
inline

◆ setDomeHomeRelativeTargetPosition()

void DomePosition::setDomeHomeRelativeTargetPosition ( long  degrees)
inline

◆ setDomeHomeSpeed()

void DomePosition::setDomeHomeSpeed ( uint8_t  speed)
inline

◆ setDomeMinSpeed()

void DomePosition::setDomeMinSpeed ( uint8_t  speed)
inline

◆ setDomeMode()

void DomePosition::setDomeMode ( Mode  mode)
inline

◆ setDomeRelativeTargetPosition()

void DomePosition::setDomeRelativeTargetPosition ( long  degrees)
inline

◆ setDomeTargetMaxDelay()

void DomePosition::setDomeTargetMaxDelay ( uint8_t  sec)
inline

◆ setDomeTargetMinDelay()

void DomePosition::setDomeTargetMinDelay ( uint8_t  sec)
inline

◆ setDomeTargetPosition()

void DomePosition::setDomeTargetPosition ( long  degrees)
inline

◆ setDomeTargetSpeed()

void DomePosition::setDomeTargetSpeed ( uint8_t  speed)
inline

◆ setHomeTargetReached()

void DomePosition::setHomeTargetReached ( void(*)()  reached)
inline

◆ setTargetReached()

void DomePosition::setTargetReached ( void(*)()  reached)
inline

◆ setTimeout()

void DomePosition::setTimeout ( uint8_t  timeout)
inline

◆ shortestDistance()

int DomePosition::shortestDistance ( int  origin,
int  target 
)
inline

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