![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
Generic antenna definition. More...
#include <antenna.hpp>
Public Types | |
| enum class | tlm : uint8_t { DEPLOYED , UPTIME , TEMPERATURE , VOLTAGE , CURRENT } |
Public Member Functions | |
| antenna (const char *name, uint32_t nelems) | |
| Construct a new generic antenna object. | |
| virtual void | enable (bool en) |
| Enables or disables the antenna subsystem if required. | |
| virtual bool | detect (uint32_t idx) |
| Returns antenna deployment status. | |
| virtual void | deploy (uint32_t idx, bool en) |
| Deploy the antenna. | |
| virtual void | deploy_backup (uint32_t idx, bool en) |
| Deploy the antenna using the backup method if exists. | |
| const char * | name () const |
| Retrieves the name of the antenna. | |
| uint32_t | nelems () const |
| Retrieves the number of available elements of the antenna. | |
| virtual void | telemetry (tlm t, float &res) |
| virtual void | telemetry (tlm t, uint32_t &res) |
| virtual void | telemetry (tlm t, bool &res) |
| virtual void | telemetry (tlm t, uint32_t idx, float &res) |
| virtual void | telemetry (tlm t, uint32_t idx, uint32_t &res) |
| virtual void | telemetry (tlm t, uint32_t idx, bool &res) |
Protected Attributes | |
| const etl::string< 32 > | m_name |
| const uint32_t | m_nelems |
Generic antenna definition.
The goal of this class is to provide a common generic interface that will simplify implementations of antenna deployment. The class is not intended to be used directly, rather than be inherited by classes implementing the actual interaction with the hardware (e.g GPIO, SPI, I2C, etc)
Definition at line 45 of file antenna.hpp.
|
strong |
| Enumerator | |
|---|---|
| DEPLOYED | |
| UPTIME | |
| TEMPERATURE | |
| VOLTAGE | |
| CURRENT | |
Definition at line 48 of file antenna.hpp.
| satnogs::comms::lib::antenna::antenna | ( | const char * | name, |
| uint32_t | nelems ) |
Construct a new generic antenna object.
| name | the name of the antenna |
| nelems | the number of elements that are controlled/deployed independently. (e.g 2 for dipole, 4 for turnstile, etc) |
Definition at line 34 of file antenna.cpp.
|
virtual |
Deploy the antenna.
| idx | An antenna index. Should be in the range [0, -1] |
| en | true to deploy, false to stop trying to deploy. |
Reimplemented in satnogs::comms::lib::antenna_gpio< N >, and satnogs::comms::lib::antenna_isis< N >.
Definition at line 68 of file antenna.cpp.
|
virtual |
Deploy the antenna using the backup method if exists.
| idx | An antenna index. Should be in the range [0, -1] |
| en | true to deploy, false to stop trying to deploy. |
Definition at line 79 of file antenna.cpp.
|
virtual |
Returns antenna deployment status.
| idx | An antenna index. Should be in the range [0, -1] |
Reimplemented in satnogs::comms::lib::antenna_gpio< N >, and satnogs::comms::lib::antenna_isis< N >.
Definition at line 56 of file antenna.cpp.
|
virtual |
Enables or disables the antenna subsystem if required.
| en | true to enable, false to disable |
Reimplemented in satnogs::comms::lib::antenna_isis< N >.
Definition at line 45 of file antenna.cpp.
| const char * satnogs::comms::lib::antenna::name | ( | ) | const |
Retrieves the name of the antenna.
Definition at line 89 of file antenna.cpp.
| uint32_t satnogs::comms::lib::antenna::nelems | ( | ) | const |
Retrieves the number of available elements of the antenna.
Definition at line 100 of file antenna.cpp.
|
virtual |
Definition at line 118 of file antenna.cpp.
|
virtual |
Reimplemented in satnogs::comms::lib::antenna_isis< N >.
Definition at line 106 of file antenna.cpp.
|
virtual |
Reimplemented in satnogs::comms::lib::antenna_isis< N >.
Definition at line 112 of file antenna.cpp.
|
virtual |
Reimplemented in satnogs::comms::lib::antenna_isis< N >.
Definition at line 124 of file antenna.cpp.
|
virtual |
Definition at line 130 of file antenna.cpp.
|
virtual |
Definition at line 136 of file antenna.cpp.
|
protected |
Definition at line 96 of file antenna.hpp.
|
protected |
Definition at line 97 of file antenna.hpp.