RSeries astromech firmware
DomeSensorAnalogPosition Class Reference

#include <drive/DomeSensorAnalogPosition.h>

+ Inheritance diagram for DomeSensorAnalogPosition:
+ Collaboration diagram for DomeSensorAnalogPosition:

Public Member Functions

 DomeSensorAnalogPosition (uint8_t analogPin)
 
bool ready ()
 
virtual Mode getDomeMode () override
 
virtual void setDomeMode (Mode mode) override
 
virtual bool getDomeFlip () override
 
virtual float easingMethod (float completion)
 
virtual float getDomeSpeedHome () override
 
virtual unsigned getDomeFudge () override
 
virtual unsigned getDomeSeekLeft () override
 
virtual unsigned getDomeSeekRight () override
 
virtual unsigned getDomeMinDelay () override
 
virtual unsigned getDomeMaxDelay () override
 
virtual unsigned getDomeHome () override
 
virtual unsigned getDomeTargetPosition () override
 
virtual unsigned getDomePosition () override
 
- Public Member Functions inherited from DomePosition
 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 ()
 

Protected Attributes

AnalogMonitor fDomePosition
 
Mode fDomeMode = kOff
 
bool fDomeFlip = false
 
uint16_t fDomeHome = 0
 
uint16_t fDomeTargetPos = fDomeHome
 
uint8_t fDomeMinDelay = 6
 
uint8_t fDomeMaxDelay = 8
 
uint8_t fDomeSeekRight = 80
 
uint8_t fDomeSeekLeft = 80
 
uint8_t fDomeFudge = 5
 
uint8_t fDomeSpeedHome = 40
 
uint8_t fDomeSpeedSeek = 30
 

Additional Inherited Members

- Public Types inherited from DomePosition
enum  Mode { kOff = 1, kHome, kRandom, kTarget }
 

Constructor & Destructor Documentation

◆ DomeSensorAnalogPosition()

DomeSensorAnalogPosition::DomeSensorAnalogPosition ( uint8_t  analogPin)
inline

Member Function Documentation

◆ easingMethod()

virtual float DomeSensorAnalogPosition::easingMethod ( float  completion)
inlinevirtual

◆ getDomeFlip()

virtual bool DomeSensorAnalogPosition::getDomeFlip ( )
inlineoverridevirtual

◆ getDomeFudge()

virtual unsigned DomeSensorAnalogPosition::getDomeFudge ( )
inlineoverridevirtual

◆ getDomeHome()

virtual unsigned DomeSensorAnalogPosition::getDomeHome ( )
inlineoverridevirtual

◆ getDomeMaxDelay()

virtual unsigned DomeSensorAnalogPosition::getDomeMaxDelay ( )
inlineoverridevirtual

◆ getDomeMinDelay()

virtual unsigned DomeSensorAnalogPosition::getDomeMinDelay ( )
inlineoverridevirtual

◆ getDomeMode()

virtual Mode DomeSensorAnalogPosition::getDomeMode ( )
inlineoverridevirtual

◆ getDomePosition()

virtual unsigned DomeSensorAnalogPosition::getDomePosition ( )
inlineoverridevirtual

◆ getDomeSeekLeft()

virtual unsigned DomeSensorAnalogPosition::getDomeSeekLeft ( )
inlineoverridevirtual

◆ getDomeSeekRight()

virtual unsigned DomeSensorAnalogPosition::getDomeSeekRight ( )
inlineoverridevirtual

◆ getDomeSpeedHome()

virtual float DomeSensorAnalogPosition::getDomeSpeedHome ( )
inlineoverridevirtual

◆ getDomeTargetPosition()

virtual unsigned DomeSensorAnalogPosition::getDomeTargetPosition ( )
inlineoverridevirtual

◆ ready()

bool DomeSensorAnalogPosition::ready ( )
inline

◆ setDomeMode()

virtual void DomeSensorAnalogPosition::setDomeMode ( Mode  mode)
inlineoverridevirtual

Member Data Documentation

◆ fDomeFlip

bool DomeSensorAnalogPosition::fDomeFlip = false
protected

◆ fDomeFudge

uint8_t DomeSensorAnalogPosition::fDomeFudge = 5
protected

◆ fDomeHome

uint16_t DomeSensorAnalogPosition::fDomeHome = 0
protected

◆ fDomeMaxDelay

uint8_t DomeSensorAnalogPosition::fDomeMaxDelay = 8
protected

◆ fDomeMinDelay

uint8_t DomeSensorAnalogPosition::fDomeMinDelay = 6
protected

◆ fDomeMode

Mode DomeSensorAnalogPosition::fDomeMode = kOff
protected

◆ fDomePosition

AnalogMonitor DomeSensorAnalogPosition::fDomePosition
protected

◆ fDomeSeekLeft

uint8_t DomeSensorAnalogPosition::fDomeSeekLeft = 80
protected

◆ fDomeSeekRight

uint8_t DomeSensorAnalogPosition::fDomeSeekRight = 80
protected

◆ fDomeSpeedHome

uint8_t DomeSensorAnalogPosition::fDomeSpeedHome = 40
protected

◆ fDomeSpeedSeek

uint8_t DomeSensorAnalogPosition::fDomeSpeedSeek = 30
protected

◆ fDomeTargetPos

uint16_t DomeSensorAnalogPosition::fDomeTargetPos = fDomeHome
protected

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