M1M3 Support System
|
Represents Telescope Mount Assembly (TMA). More...
#include <TMA.h>
Public Member Functions | |
TMA (token) | |
void | checkTimestamps (bool checkAzimuth, bool checkElevation) |
Checks that TMA azimuth and elevation timestamps are current. | |
void | updateTMAAzimuth (MTMount_azimuthC *data) |
Updates azimuth data to match current TMA data. | |
void | updateTMAElevation (MTMount_elevationC *data) |
Updates elevation data to match current TMA data. | |
double | getElevation (bool forceTelescope=false) |
Returns mirror elevation. | |
void | getMirrorAngularVelocities (double &x, double &y, double &z) |
Returns mirror angular X, Y and Z velocities. | |
void | getMirrorAngularAccelerations (double &ax, double &ay, double &az) |
double | getElevationSin (bool forceTelescope=false) |
Returns elevation sin. | |
double | getElevationCos (bool forceTelescope=false) |
Returns elevation cos. | |
Represents Telescope Mount Assembly (TMA).
Provides functions to retrieve mirror elevation, either from inclinometer readout, or from telescope data.
void TMA::checkTimestamps | ( | bool | checkAzimuth, |
bool | checkElevation ) |
Checks that TMA azimuth and elevation timestamps are current.
checkAzimuth | true if azimuth timestamp shall be checked |
checkElevation | true if elevation timestamp shall be checked |
double TMA::getElevation | ( | bool | forceTelescope = false | ) |
Returns mirror elevation.
Uses either telescope provided data, or internal inclinometer readout.
forceTelescope | if true, telescope elevation angle is provided |
|
inline |
Returns elevation cos.
forceTelescope | if true, telescope elevation angle is provided |
|
inline |
Returns elevation sin.
forceTelescope | if true, telescope elevation angle is provided |
void TMA::getMirrorAngularVelocities | ( | double & | x, |
double & | y, | ||
double & | z ) |
Returns mirror angular X, Y and Z velocities.
Those are calculated from azimuth and elevation velocities.
void TMA::updateTMAAzimuth | ( | MTMount_azimuthC * | data | ) |
Updates azimuth data to match current TMA data.
Should be called on reception of new azimuth data.
data | MTMount_azimuth data |
void TMA::updateTMAElevation | ( | MTMount_elevationC * | data | ) |
Updates elevation data to match current TMA data.
Should be called on reception of new elevation data.
data | MTMount_elevation data |