Go to the documentation of this file.
10 #ifndef __POSITIONER_H
11 #define __POSITIONER_H
46 void SetCapabilities(
int Capabilities) {
capabilities = Capabilities; }
49 int Frontend(
void)
const {
return frontend; }
89 void SetFrontend(
int Frontend) {
frontend = Frontend; }
109 virtual cString Error(
void)
const {
return NULL; }
122 virtual void Halt(
void) {}
127 virtual void DisableLimits(
void) {}
129 virtual void EnableLimits(
void) {}
131 virtual void StorePosition(uint Number) {}
135 virtual void RecalcPositions(uint Number) {}
171 #endif //__POSITIONER_H
static void DestroyPositioner(void)
Destroys a previously created positioner.
static int NormalizeAngle(int Angle)
Normalizes the given Angle into the range -1800...1800.
int HardLimitLongitude(ePositionerDirection Direction) const
Returns the longitude of the positioner's hard limit in the given Direction.
virtual void GotoPosition(uint Number, int Longitude)
Move the dish to the satellite position stored under the given Number.
virtual int CurrentLongitude(void) const
Returns the longitude the dish currently points to.
static cPositioner * positioner
static cPositioner * GetPositioner(void)
Returns a previously created positioner.
virtual bool IsMoving(void) const
Returns true if the dish is currently moving as a result of a call to GotoPosition() or GotoAngle().
A steerable satellite dish generally points to the south on the northern hemisphere,...
virtual void GotoAngle(int Longitude)
Move the dish to the given angular position.
static int HorizonLongitude(ePositionerDirection Direction)
Returns the longitude of the satellite position that is just at the horizon when looking in the given...
static int CalcLongitude(int HourAngle)
Returns the longitude of the satellite position the dish points at when the positioner is moved to th...
void StartMovementTimer(int Longitude)
Starts a timer that estimates how long it will take to move the dish from the current position to the...
static int CalcHourAngle(int Longitude)
Takes the longitude and latitude of the dish location from the system setup and the given Longitude t...