|
MythTV
0.26-pre
|
Rotor class. More...
#include <diseqc.h>
Public Types | |
| enum | dvbdev_rotor_t { kTypeDiSEqC_1_2 = 0, kTypeDiSEqC_1_3 = 1 } |
Public Member Functions | |
| DiSEqCDevRotor (DiSEqCDevTree &tree, uint devid) | |
| ~DiSEqCDevRotor () | |
| virtual void | Reset (void) |
| Resets to the last known settings for this device. | |
| virtual bool | Execute (const DiSEqCDevSettings &, const DTVMultiplex &) |
| Applies DiSEqC settings to this node and any children. | |
| virtual bool | Load (void) |
| Loads this device from the database. | |
| virtual bool | Store (void) const |
| Stores this device to the database. | |
| void | SetType (dvbdev_rotor_t type) |
| void | SetLoSpeed (double speed) |
| void | SetHiSpeed (double speed) |
| void | SetPosMap (const uint_to_dbl_t &posmap) |
| virtual bool | SetChild (uint ordinal, DiSEqCDevDevice *device) |
| Changes the nth child of this node. | |
| void | RotationComplete (void) const |
| dvbdev_rotor_t | GetType (void) const |
| double | GetLoSpeed (void) const |
| double | GetHiSpeed (void) const |
| uint_to_dbl_t | GetPosMap (void) const |
| double | GetProgress (void) const |
| Returns an indication of rotor progress. | |
| bool | IsPositionKnown (void) const |
| Returns true if there is reasonable confidence in the value returned by GetProgress(). | |
| virtual uint | GetChildCount (void) const |
| Retrieves the proper number of children for this node. | |
| virtual bool | IsCommandNeeded (const DiSEqCDevSettings &, const DTVMultiplex &) const |
| Determines if this device or any child will be sending a command for the given configuration chain. | |
| bool | IsMoving (const DiSEqCDevSettings &) const |
| virtual uint | GetVoltage (const DiSEqCDevSettings &, const DTVMultiplex &) const |
| Retrives the desired voltage for this config. | |
| virtual DiSEqCDevDevice * | GetSelectedChild (const DiSEqCDevSettings &) const |
| Retrieves the selected child for this configuration, if any. | |
| virtual DiSEqCDevDevice * | GetChild (uint) |
| Retrieves the nth child of this node. | |
Static Public Member Functions | |
| static QString | RotorTypeToString (dvbdev_rotor_t type) |
| static dvbdev_rotor_t | RotorTypeFromString (const QString &type) |
Protected Member Functions | |
| bool | ExecuteRotor (const DiSEqCDevSettings &, const DTVMultiplex &, double angle) |
| bool | ExecuteUSALS (const DiSEqCDevSettings &, const DTVMultiplex &, double angle) |
| void | StartRotorPositionTracking (double azimuth) |
| double | CalculateAzimuth (double angle) const |
| double | GetApproxAzimuth (void) const |
Private Attributes | |
| dvbdev_rotor_t | m_type |
| double | m_speed_hi |
| double | m_speed_lo |
| dbl_to_uint_t | m_posmap |
| DiSEqCDevDevice * | m_child |
| double | m_last_position |
| double | m_desired_azimuth |
| bool | m_reset |
| double | m_move_time |
| bool | m_last_pos_known |
| double | m_last_azimuth |
Static Private Attributes | |
| static const TypeTable | RotorTypeTable [3] |
| DiSEqCDevRotor::DiSEqCDevRotor | ( | DiSEqCDevTree & | tree, |
| uint | devid | ||
| ) |
Definition at line 1646 of file diseqc.cpp.
Definition at line 1658 of file diseqc.cpp.
| void DiSEqCDevRotor::Reset | ( | void | ) | [virtual] |
Resets to the last known settings for this device.
Device will not actually have commands issued until next Execute() method.
Reimplemented from DiSEqCDevDevice.
Definition at line 1701 of file diseqc.cpp.
Referenced by DiSEqCDevRotor().
| bool DiSEqCDevRotor::Execute | ( | const DiSEqCDevSettings & | , |
| const DTVMultiplex & | |||
| ) | [virtual] |
Applies DiSEqC settings to this node and any children.
| settings | Configuration chain to apply. |
| tuning | Tuning parameters. |
Implements DiSEqCDevDevice.
Definition at line 1664 of file diseqc.cpp.
| bool DiSEqCDevRotor::Load | ( | void | ) | [virtual] |
Loads this device from the database.
Implements DiSEqCDevDevice.
Definition at line 1773 of file diseqc.cpp.
| bool DiSEqCDevRotor::Store | ( | void | ) | const [virtual] |
Stores this device to the database.
Implements DiSEqCDevDevice.
Definition at line 1836 of file diseqc.cpp.
| void DiSEqCDevRotor::SetType | ( | dvbdev_rotor_t | type | ) | [inline] |
Definition at line 299 of file diseqc.h.
Referenced by convert_diseqc_db(), and RotorTypeSetting::Save().
| void DiSEqCDevRotor::SetLoSpeed | ( | double | speed | ) | [inline] |
Definition at line 300 of file diseqc.h.
Referenced by RotorLoSpeedSetting::Save().
| void DiSEqCDevRotor::SetHiSpeed | ( | double | speed | ) | [inline] |
Definition at line 301 of file diseqc.h.
Referenced by RotorHiSpeedSetting::Save().
| void DiSEqCDevRotor::SetPosMap | ( | const uint_to_dbl_t & | posmap | ) |
Definition at line 1962 of file diseqc.cpp.
Referenced by RotorPosMap::Save().
| bool DiSEqCDevRotor::SetChild | ( | uint | , |
| DiSEqCDevDevice * | |||
| ) | [virtual] |
Changes the nth child of this node.
| ordinal | Child number (starting at 0). |
| device | New child device. (may be NULL) |
Reimplemented from DiSEqCDevDevice.
Definition at line 1727 of file diseqc.cpp.
Referenced by Load().
| void DiSEqCDevRotor::RotationComplete | ( | void | ) | const |
Definition at line 2047 of file diseqc.cpp.
Referenced by GetProgress().
| dvbdev_rotor_t DiSEqCDevRotor::GetType | ( | void | ) | const [inline] |
Definition at line 307 of file diseqc.h.
Referenced by DTVDeviceConfigGroup::AddNodes(), RotorTypeSetting::Load(), and RotorConfig::RotorConfig().
| double DiSEqCDevRotor::GetLoSpeed | ( | void | ) | const [inline] |
Definition at line 308 of file diseqc.h.
Referenced by RotorLoSpeedSetting::Load().
| double DiSEqCDevRotor::GetHiSpeed | ( | void | ) | const [inline] |
Definition at line 309 of file diseqc.h.
Referenced by RotorHiSpeedSetting::Load().
| uint_to_dbl_t DiSEqCDevRotor::GetPosMap | ( | void | ) | const |
Definition at line 1952 of file diseqc.cpp.
Referenced by RotorPosMap::Load(), and RotorSetting::RotorSetting().
| double DiSEqCDevRotor::GetProgress | ( | void | ) | const |
Returns an indication of rotor progress.
Definition at line 1917 of file diseqc.cpp.
Referenced by GetApproxAzimuth(), DVBSignalMonitor::GetRotorStatus(), and IsMoving().
| bool DiSEqCDevRotor::IsPositionKnown | ( | void | ) | const |
Returns true if there is reasonable confidence in the value returned by GetProgress().
If this returns false, GetProgress() returns progress toward the time when the position will be approximately known.
Definition at line 1947 of file diseqc.cpp.
| virtual uint DiSEqCDevRotor::GetChildCount | ( | void | ) | const [inline, virtual] |
Retrieves the proper number of children for this node.
Reimplemented from DiSEqCDevDevice.
| bool DiSEqCDevRotor::IsCommandNeeded | ( | const DiSEqCDevSettings & | settings, |
| const DTVMultiplex & | tuning | ||
| ) | const [virtual] |
Determines if this device or any child will be sending a command for the given configuration chain.
| settings | Configuration chain in effect. |
Reimplemented from DiSEqCDevDevice.
Definition at line 1708 of file diseqc.cpp.
| bool DiSEqCDevRotor::IsMoving | ( | const DiSEqCDevSettings & | settings | ) | const |
Definition at line 1747 of file diseqc.cpp.
Referenced by GetVoltage().
| uint DiSEqCDevRotor::GetVoltage | ( | const DiSEqCDevSettings & | , |
| const DTVMultiplex & | |||
| ) | const [virtual] |
Retrives the desired voltage for this config.
| settings | Configuration chain in effect. |
| tuning | Tuning parameters. |
Implements DiSEqCDevDevice.
Definition at line 1756 of file diseqc.cpp.
| DiSEqCDevDevice * DiSEqCDevRotor::GetSelectedChild | ( | const DiSEqCDevSettings & | ) | const [virtual] |
Retrieves the selected child for this configuration, if any.
| settings | Configuration chain in effect. |
Reimplemented from DiSEqCDevDevice.
Definition at line 1722 of file diseqc.cpp.
| virtual DiSEqCDevDevice* DiSEqCDevRotor::GetChild | ( | uint | ) | [inline, virtual] |
Retrieves the nth child of this node.
| ordinal | Child number (starting at 0). |
Reimplemented from DiSEqCDevDevice.
| static QString DiSEqCDevRotor::RotorTypeToString | ( | dvbdev_rotor_t | type | ) | [inline, static] |
| static dvbdev_rotor_t DiSEqCDevRotor::RotorTypeFromString | ( | const QString & | type | ) | [inline, static] |
| bool DiSEqCDevRotor::ExecuteRotor | ( | const DiSEqCDevSettings & | , |
| const DTVMultiplex & | , | ||
| double | angle | ||
| ) | [protected] |
Definition at line 1971 of file diseqc.cpp.
Referenced by Execute().
| bool DiSEqCDevRotor::ExecuteUSALS | ( | const DiSEqCDevSettings & | , |
| const DTVMultiplex & | , | ||
| double | angle | ||
| ) | [protected] |
Definition at line 1990 of file diseqc.cpp.
Referenced by Execute().
| void DiSEqCDevRotor::StartRotorPositionTracking | ( | double | azimuth | ) | [protected] |
Definition at line 2033 of file diseqc.cpp.
Referenced by ExecuteRotor(), and ExecuteUSALS().
| double DiSEqCDevRotor::CalculateAzimuth | ( | double | angle | ) | const [protected] |
Definition at line 2008 of file diseqc.cpp.
Referenced by ExecuteRotor(), and ExecuteUSALS().
| double DiSEqCDevRotor::GetApproxAzimuth | ( | void | ) | const [protected] |
Definition at line 2024 of file diseqc.cpp.
Referenced by StartRotorPositionTracking().
dvbdev_rotor_t DiSEqCDevRotor::m_type [private] |
double DiSEqCDevRotor::m_speed_hi [private] |
Definition at line 343 of file diseqc.h.
Referenced by GetProgress(), Load(), and Store().
double DiSEqCDevRotor::m_speed_lo [private] |
Definition at line 344 of file diseqc.h.
Referenced by GetProgress(), Load(), and Store().
dbl_to_uint_t DiSEqCDevRotor::m_posmap [private] |
Definition at line 345 of file diseqc.h.
Referenced by ExecuteRotor(), GetPosMap(), Load(), SetPosMap(), and Store().
DiSEqCDevDevice* DiSEqCDevRotor::m_child [private] |
Definition at line 346 of file diseqc.h.
Referenced by Execute(), GetSelectedChild(), GetVoltage(), IsCommandNeeded(), Load(), Reset(), SetChild(), Store(), and ~DiSEqCDevRotor().
double DiSEqCDevRotor::m_last_position [private] |
Definition at line 349 of file diseqc.h.
Referenced by Execute(), IsCommandNeeded(), and IsMoving().
double DiSEqCDevRotor::m_desired_azimuth [private] |
Definition at line 350 of file diseqc.h.
Referenced by GetApproxAzimuth(), GetProgress(), RotationComplete(), and StartRotorPositionTracking().
bool DiSEqCDevRotor::m_reset [private] |
Definition at line 351 of file diseqc.h.
Referenced by Execute(), IsCommandNeeded(), and Reset().
double DiSEqCDevRotor::m_move_time [mutable, private] |
Definition at line 354 of file diseqc.h.
Referenced by GetApproxAzimuth(), GetProgress(), RotationComplete(), and StartRotorPositionTracking().
bool DiSEqCDevRotor::m_last_pos_known [mutable, private] |
Definition at line 355 of file diseqc.h.
Referenced by IsMoving(), IsPositionKnown(), RotationComplete(), and StartRotorPositionTracking().
double DiSEqCDevRotor::m_last_azimuth [mutable, private] |
Definition at line 356 of file diseqc.h.
Referenced by GetApproxAzimuth(), GetProgress(), RotationComplete(), and StartRotorPositionTracking().
const DiSEqCDevDevice::TypeTable DiSEqCDevRotor::RotorTypeTable [static, private] |
{
{ "diseqc_1_2", kTypeDiSEqC_1_2 },
{ "diseqc_1_3", kTypeDiSEqC_1_3 },
{ NULL, kTypeDiSEqC_1_3 }
}
1.7.6.1