15 #ifndef CARMA_ANTENNA_BIMA_MOTOR_H
16 #define CARMA_ANTENNA_BIMA_MOTOR_H
31 class Motor :
public TelemetryClient
33 typedef enum { RECEIVER, FOCUS, DRIVE, MMOSC } MotorType;
34 typedef enum { ABOVE, BELOW, EITHER } StepFrom;
37 std::string _fullname;
47 std::string *_dir_addr;
68 Motor( std::string properName, Configuration& config );
70 int getCoast() {
return _coast; };
72 void moveUp(
unsigned short target );
73 void moveDown(
unsigned short target );
74 void moveToTarget(
unsigned short target,
75 StepFrom = Motor::EITHER );
78 void limitTarget(
unsigned short& target );
80 void setDirection(
unsigned char dir );
83 short position(
float &focus );
84 const char *getName();
86 static const unsigned char UP = 0xff;
87 static const unsigned char DOWN = 0x00;
88 static const unsigned short _upperlimit = 32740;
89 static const unsigned short _lowerlimit = 25;
96 #endif // CARMA_ANTENNA_BIMA_MOTOR_H
Class definition for TelemetryClient on the BIMA antennas.