My Project
|
Public Member Functions | |
ServoCommsSa (SpecificShare *share, std::string name, bool sim) | |
ServoCommsSa () | |
~ServoCommsSa () | |
void | setAzEl (gcp::util::Angle &az, gcp::util::Angle &el) |
void | setAzEl (gcp::util::Angle &az, gcp::util::Angle &el, gcp::util::Angle &az1, gcp::util::Angle &el1, gcp::util::Angle &az2, gcp::util::Angle &el2, gcp::util::TimeVal &mjd) |
void | haltAntenna () |
void | hardStopAntenna () |
void | initializeAntenna () |
void | queryStatus () |
void | queryStatus (gcp::util::TimeVal &currTime) |
void | queryAntPositions () |
void | queryAntPositions (gcp::util::TimeVal &currTime) |
bool | readPosition (AxisPositions *axes, Model *model) |
void | commandNewPosition (PmacTarget *pmac) |
void | commandNewPosition (PmacTarget *pmac, PmacTarget *pmac1, PmacTarget *pmac2, gcp::util::TimeVal &mjd) |
bool | isCircuitBreakerTripped () |
bool | isThermalTripped () |
bool | isLidOpen () |
bool | isBrakeOn () |
bool | isInitialized () |
bool | isPartOneComplete () |
void | finishInitialization () |
void | fillUtc (gcp::util::TimeVal &currTime) |
bool | connect () |
void | disconnect () |
bool | servoIsConnected () |
void | sendCommand (ServoCommandSa &command) |
int | readResponse (ServoCommandSa &command) |
bool | isBusy () |
unsigned | readPositionFault () |
int | writeString (std::string message) |
ServoCommandSa | issueCommand (ServoCommandSa::Request req, std::vector< float > &values) |
ServoCommandSa | issueCommand (ServoCommandSa::Request req) |
ServoCommsSa (SpecificShare *share, std::string name, bool sim) | |
ServoCommsSa () | |
~ServoCommsSa () | |
void | setAzEl (gcp::util::Angle &az, gcp::util::Angle &el) |
void | setAzEl (gcp::util::Angle &az, gcp::util::Angle &el, gcp::util::Angle &az1, gcp::util::Angle &el1, gcp::util::Angle &az2, gcp::util::Angle &el2, gcp::util::TimeVal &mjd) |
void | haltAntenna () |
void | hardStopAntenna () |
void | initializeAntenna () |
void | queryStatus () |
void | queryStatus (gcp::util::TimeVal &currTime) |
void | queryAntPositions () |
void | queryAntPositions (gcp::util::TimeVal &currTime) |
bool | readPosition (AxisPositions *axes, Model *model) |
void | commandNewPosition (PmacTarget *pmac) |
void | commandNewPosition (PmacTarget *pmac, PmacTarget *pmac1, PmacTarget *pmac2, gcp::util::TimeVal &mjd) |
bool | isCircuitBreakerTripped () |
bool | isThermalTripped () |
bool | isLidOpen () |
bool | isBrakeOn () |
bool | isInitialized () |
bool | isPartOneComplete () |
void | finishInitialization () |
void | fillUtc (gcp::util::TimeVal &currTime) |
bool | connect () |
void | disconnect () |
bool | servoIsConnected () |
void | sendCommand (ServoCommandSa &command) |
int | readResponse (ServoCommandSa &command) |
bool | isBusy () |
unsigned | readPositionFault () |
int | writeString (std::string message) |
ServoCommandSa | issueCommand (ServoCommandSa::Request req, std::vector< float > &values) |
ServoCommandSa | issueCommand (ServoCommandSa::Request req) |
ServoCommsSa (SpecificShare *share, std::string name, bool sim) | |
ServoCommsSa () | |
~ServoCommsSa () | |
void | setAzEl (gcp::util::Angle &az, gcp::util::Angle &el) |
void | setAzEl (gcp::util::Angle &az, gcp::util::Angle &el, gcp::util::Angle &az1, gcp::util::Angle &el1, gcp::util::Angle &az2, gcp::util::Angle &el2, gcp::util::TimeVal &mjd) |
void | haltAntenna () |
void | hardStopAntenna () |
void | initializeAntenna () |
void | queryStatus () |
void | queryStatus (gcp::util::TimeVal &currTime) |
void | queryAntPositions () |
void | queryAntPositions (gcp::util::TimeVal &currTime) |
bool | readPosition (AxisPositions *axes, Model *model) |
void | commandNewPosition (PmacTarget *pmac) |
void | commandNewPosition (PmacTarget *pmac, PmacTarget *pmac1, PmacTarget *pmac2, gcp::util::TimeVal &mjd) |
bool | isCircuitBreakerTripped () |
bool | isThermalTripped () |
bool | isLidOpen () |
bool | isBrakeOn () |
bool | isSim () |
bool | isInitialized () |
bool | isPartOneComplete () |
void | finishInitialization () |
void | fillUtc (gcp::util::TimeVal &currTime) |
bool | connect () |
void | disconnect () |
bool | servoIsConnected () |
void | sendCommand (ServoCommandSa &command) |
int | readResponse (ServoCommandSa &command) |
bool | isBusy () |
unsigned | readPositionFault () |
int | writeString (std::string message) |
ServoCommandSa | issueCommand (ServoCommandSa::Request req, std::vector< float > &values) |
ServoCommandSa | issueCommand (ServoCommandSa::Request req) |
![]() | |
Board (SpecificShare *share, std::string name) | |
Board (SpecificShare *share, gcp::util::AntNum ant) | |
Board (SpecificShare *share) | |
Board () | |
virtual | ~Board () |
RegMapBlock * | findReg (char *name) |
bool | isReachable () |
virtual void | reset () |
int | getIndex () |
virtual void | readRegNoLock (RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *value) |
virtual void | readReg (RegMapBlock *blk, unsigned int first, unsigned int nreg, unsigned int *value) |
virtual void | readReg (RegMapBlock *blk, unsigned int first, unsigned int nreg, float *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, signed char *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, unsigned char *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, signed short *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, unsigned short *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, int *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, unsigned int *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, float *value) |
virtual void | writeRegNoLock (RegMapBlock *blk, unsigned first, unsigned nreg, double *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, signed char *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, unsigned char *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, signed short *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, unsigned short *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, int *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, unsigned int *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, float *value) |
virtual void | writeReg (RegMapBlock *blk, unsigned first, unsigned nreg, double *value) |
Public Attributes | |
ServoCommandSa | command_ |
Additional Inherited Members | |
![]() | |
SpecificShare * | share_ |
RegMapBoard * | board_ |
bool | hasBoard_ |
gcp::antenna::control::ServoCommsSa::ServoCommsSa | ( | SpecificShare * | share, |
std::string | name, | ||
bool | sim | ||
) |
Constructor with pointer to shared resources.
ServoCommsSa::ServoCommsSa | ( | ) |
Constructor.
....................................................................... Constructor with no shared resources.
ServoCommsSa::~ServoCommsSa | ( | ) |
Destructor.
....................................................................... Destructor
gcp::antenna::control::ServoCommsSa::ServoCommsSa | ( | SpecificShare * | share, |
std::string | name, | ||
bool | sim | ||
) |
Constructor with pointer to shared resources.
gcp::antenna::control::ServoCommsSa::ServoCommsSa | ( | ) |
Constructor.
gcp::antenna::control::ServoCommsSa::~ServoCommsSa | ( | ) |
Destructor.
gcp::antenna::control::ServoCommsSa::ServoCommsSa | ( | SpecificShare * | share, |
std::string | name, | ||
bool | sim | ||
) |
Constructor with pointer to shared resources.
gcp::antenna::control::ServoCommsSa::ServoCommsSa | ( | ) |
Constructor.
gcp::antenna::control::ServoCommsSa::~ServoCommsSa | ( | ) |
Destructor.
void ServoCommsSa::commandNewPosition | ( | PmacTarget * | pmac, |
PmacTarget * | pmac1, | ||
PmacTarget * | pmac2, | ||
gcp::util::TimeVal & | mjd | ||
) |
....................................................................... Tell the PMAC to read a new position
bool ServoCommsSa::connect | ( | ) |
Connect to the servo.
Returns true on success.
....................................................................... Connect to the servo port.
bool gcp::antenna::control::ServoCommsSa::connect | ( | ) |
Connect to the servo.
Returns true on success.
bool gcp::antenna::control::ServoCommsSa::connect | ( | ) |
Connect to the servo.
Returns true on success.
void ServoCommsSa::disconnect | ( | ) |
Disconnect from the servo.
....................................................................... Disconnect from the servo port.
void gcp::antenna::control::ServoCommsSa::disconnect | ( | ) |
Disconnect from the servo.
void gcp::antenna::control::ServoCommsSa::disconnect | ( | ) |
Disconnect from the servo.
void ServoCommsSa::fillUtc | ( | gcp::util::TimeVal & | currTime | ) |
Fill the utc register with the time stamps appropriate for the data just read back from the servo box
....................................................................... Fill the utc register with the time stamps appropriate for the data just read back from the servo box
void gcp::antenna::control::ServoCommsSa::fillUtc | ( | gcp::util::TimeVal & | currTime | ) |
Fill the utc register with the time stamps appropriate for the data just read back from the servo box
void gcp::antenna::control::ServoCommsSa::fillUtc | ( | gcp::util::TimeVal & | currTime | ) |
Fill the utc register with the time stamps appropriate for the data just read back from the servo box
void ServoCommsSa::finishInitialization | ( | ) |
last few steps of the initialization
............................................................ Finish the initialization
void gcp::antenna::control::ServoCommsSa::finishInitialization | ( | ) |
last few steps of the initialization
void gcp::antenna::control::ServoCommsSa::finishInitialization | ( | ) |
last few steps of the initialization
void ServoCommsSa::haltAntenna | ( | ) |
............................................................ haltAntenna – This command queries for the current antenna location and re-issues it to have the antenna stop.
void ServoCommsSa::hardStopAntenna | ( | ) |
............................................................ hardStopAntenna – Disengages the drives
void ServoCommsSa::initializeAntenna | ( | ) |
............................................................ Initialize the antenna
bool ServoCommsSa::isBrakeOn | ( | ) |
............................................................ Check if circuit braked is tripped
bool gcp::antenna::control::ServoCommsSa::isCircuitBreakerTripped | ( | ) |
Commands to probe parts of the status
bool gcp::antenna::control::ServoCommsSa::isCircuitBreakerTripped | ( | ) |
Commands to probe parts of the status
bool ServoCommsSa::isCircuitBreakerTripped | ( | ) |
Commands to probe parts of the status
............................................................ Check if circuit breaker is tripped
bool ServoCommsSa::isInitialized | ( | ) |
............................................................ Check if everything's initialized
bool ServoCommsSa::isLidOpen | ( | ) |
............................................................ Check if circuit braked is tripped
bool ServoCommsSa::isSim | ( | ) |
....................................................................... Return true if we are connected to the servo.
ServoCommandSa ServoCommsSa::issueCommand | ( | ServoCommandSa::Request | req, |
std::vector< float > & | values | ||
) |
Issue a command, get a response, and check that it is valid.
ServoCommandSa gcp::antenna::control::ServoCommsSa::issueCommand | ( | ServoCommandSa::Request | req, |
std::vector< float > & | values | ||
) |
Issue a command, get a response, and check that it is valid.
ServoCommandSa ServoCommsSa::issueCommand | ( | ServoCommandSa::Request | req | ) |
....................................................................... issue the command, get response, check that it is valid.
ServoCommandSa gcp::antenna::control::ServoCommsSa::issueCommand | ( | ServoCommandSa::Request | req, |
std::vector< float > & | values | ||
) |
Issue a command, get a response, and check that it is valid.
bool ServoCommsSa::isThermalTripped | ( | ) |
............................................................ Check if circuit braked is tripped
void ServoCommsSa::queryAntPositions | ( | ) |
............................................................ Query Antenna Locations from Previous Second
void ServoCommsSa::queryAntPositions | ( | gcp::util::TimeVal & | currTime | ) |
............................................................ Query Antenna Locations from Previous Second
void ServoCommsSa::queryStatus | ( | ) |
............................................................ Query Status of Antenna and Amplifier and write to register map
void ServoCommsSa::queryStatus | ( | gcp::util::TimeVal & | currTime | ) |
............................................................ Query Status of Antenna and Amplifier and write to register map
bool ServoCommsSa::readPosition | ( | AxisPositions * | axes, |
Model * | model | ||
) |
....................................................................... Read the previously obtained servo monitor data to update our view of where the telescope axes are currently positioned.
Returns a boolean: is the antenna tracking ok?
int gcp::antenna::control::ServoCommsSa::readResponse | ( | ServoCommandSa & | command | ) |
Read a response from the SERVO. Does not check that a response is available, and may block waiting for one, depending on how the socket was configured.
int ServoCommsSa::readResponse | ( | ServoCommandSa & | command | ) |
Read a response from the SERVO. Does not check that a response is available, and may block waiting for one, depending on how the socket was configured.
....................................................................... Private version to read a response into our internal message container.
int gcp::antenna::control::ServoCommsSa::readResponse | ( | ServoCommandSa & | command | ) |
Read a response from the SERVO. Does not check that a response is available, and may block waiting for one, depending on how the socket was configured.
void gcp::antenna::control::ServoCommsSa::sendCommand | ( | ServoCommandSa & | command | ) |
Send a single command to the SERVO.
void ServoCommsSa::sendCommand | ( | ServoCommandSa & | command | ) |
Send a single command to the SERVO.
....................................................................... Send a command to the servo.
void gcp::antenna::control::ServoCommsSa::sendCommand | ( | ServoCommandSa & | command | ) |
Send a single command to the SERVO.
bool gcp::antenna::control::ServoCommsSa::servoIsConnected | ( | ) |
Return true if the servo is connected.
bool ServoCommsSa::servoIsConnected | ( | ) |
Return true if the servo is connected.
....................................................................... Return true if we are connected to the servo.
bool gcp::antenna::control::ServoCommsSa::servoIsConnected | ( | ) |
Return true if the servo is connected.
void gcp::antenna::control::ServoCommsSa::setAzEl | ( | gcp::util::Angle & | az, |
gcp::util::Angle & | el | ||
) |
Command set – commands called by higher functions
void gcp::antenna::control::ServoCommsSa::setAzEl | ( | gcp::util::Angle & | az, |
gcp::util::Angle & | el | ||
) |
Command set – commands called by higher functions
void gcp::antenna::control::ServoCommsSa::setAzEl | ( | gcp::util::Angle & | az, |
gcp::util::Angle & | el | ||
) |
Command set – commands called by higher functions
void ServoCommsSa::setAzEl | ( | gcp::util::Angle & | az, |
gcp::util::Angle & | el, | ||
gcp::util::Angle & | az1, | ||
gcp::util::Angle & | el1, | ||
gcp::util::Angle & | az2, | ||
gcp::util::Angle & | el2, | ||
gcp::util::TimeVal & | mjd | ||
) |
............................................................ setAzEl;
int gcp::antenna::control::ServoCommsSa::writeString | ( | std::string | message | ) |
write message to serial port
int ServoCommsSa::writeString | ( | std::string | message | ) |
write message to serial port
....................................................................... write a message to the port
int gcp::antenna::control::ServoCommsSa::writeString | ( | std::string | message | ) |
write message to serial port
ServoCommandSa gcp::antenna::control::ServoCommsSa::command_ |
A not-so-private message container used for sending and receiving data from the SERVO. need it to be public to check the presence of 1PPS