vdr
2.4.1
|
#include <diseqc.h>
Public Member Functions | |
cDiseqcPositioner (void) | |
virtual void | Drive (ePositionerDirection Direction) |
virtual void | Step (ePositionerDirection Direction, uint Steps=1) |
virtual void | Halt (void) |
virtual void | SetLimit (ePositionerDirection Direction) |
virtual void | DisableLimits (void) |
virtual void | EnableLimits (void) |
virtual void | StorePosition (uint Number) |
virtual void | RecalcPositions (uint Number) |
virtual void | GotoPosition (uint Number, int Longitude) |
virtual void | GotoAngle (int Longitude) |
![]() | |
int | HardLimitLongitude (ePositionerDirection Direction) const |
virtual int | CurrentLongitude (void) const |
virtual bool | IsMoving (void) const |
Private Member Functions | |
void | SendDiseqc (uint8_t *Codes, int NumCodes) |
Additional Inherited Members | |
![]() | |
enum | ePositionerCapabilities { pcCanNothing = 0x0000, pcCanDrive = 0x0001, pcCanStep = 0x0002, pcCanHalt = 0x0004, pcCanSetLimits = 0x0008, pcCanDisableLimits = 0x0010, pcCanEnableLimits = 0x0020, pcCanStorePosition = 0x0040, pcCanRecalcPositions = 0x0080, pcCanGotoPosition = 0x0100, pcCanGotoAngle = 0x0200 } |
enum | ePositionerDirection { pdLeft, pdRight } |
![]() | |
static int | NormalizeAngle (int Angle) |
static int | HorizonLongitude (ePositionerDirection Direction) |
static cPositioner * | GetPositioner (void) |
static void | DestroyPositioner (void) |
![]() | |
cPositioner (void) | |
virtual | ~cPositioner () |
void | StartMovementTimer (int Longitude) |
![]() | |
static int | CalcHourAngle (int Longitude) |
static int | CalcLongitude (int HourAngle) |
cDiseqcPositioner::cDiseqcPositioner | ( | void | ) |
Definition at line 51 of file diseqc.c.
References cPositioner::pcCanDisableLimits, cPositioner::pcCanDrive, cPositioner::pcCanEnableLimits, cPositioner::pcCanGotoAngle, cPositioner::pcCanGotoPosition, cPositioner::pcCanHalt, cPositioner::pcCanRecalcPositions, cPositioner::pcCanSetLimits, cPositioner::pcCanStep, and cPositioner::pcCanStorePosition.
|
virtual |
Definition at line 105 of file diseqc.c.
References SendDiseqc().
|
virtual |
Definition at line 78 of file diseqc.c.
References cPositioner::pdLeft, and SendDiseqc().
|
virtual |
Definition at line 111 of file diseqc.c.
References SendDiseqc().
|
virtual |
Move the dish to the given angular position.
Longitude can be in the range -1800...+1800. A positive sign indicates a position east of Greenwich, while western positions have a negative sign. The absolute value is in "degrees * 10", which allows for a resolution of 1/10 of a degree. A derived class must call the base class function to have the target longitude stored.
Reimplemented from cPositioner.
Definition at line 136 of file diseqc.c.
References cPositioner::CalcHourAngle(), cPositioner::GotoAngle(), and SendDiseqc().
|
virtual |
Move the dish to the satellite position stored under the given Number.
Number must be one of the values previously used with StorePosition(). The special value 0 shall move the dish to a "reference position", which usually is due south (or north, if you're on the southern hemisphere). Longitude will be used to calculate how long it takes to move the dish from its current position to the given Longitude. A derived class must call the base class function to have the target longitude stored.
Reimplemented from cPositioner.
Definition at line 129 of file diseqc.c.
References cPositioner::GotoPosition(), and SendDiseqc().
|
virtual |
Definition at line 93 of file diseqc.c.
References SendDiseqc().
|
virtual |
Definition at line 123 of file diseqc.c.
References SendDiseqc().
|
private |
Definition at line 66 of file diseqc.c.
Referenced by DisableLimits(), Drive(), EnableLimits(), GotoAngle(), GotoPosition(), Halt(), RecalcPositions(), SetLimit(), Step(), and StorePosition().
|
virtual |
Definition at line 99 of file diseqc.c.
References cPositioner::pdLeft, and SendDiseqc().
|
virtual |
Definition at line 84 of file diseqc.c.
References min(), cPositioner::pdLeft, and SendDiseqc().
|
virtual |
Definition at line 117 of file diseqc.c.
References SendDiseqc().