![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
This class implements the management of Antenna System2 from ISIS. More...
#include <antenna_isis.hpp>
Public Types | |
| enum class | cmd : uint8_t { CANCEL = 0xA9 , DISARM = 0xAC , ARM = 0xAD , DEPLOY_ANT1_OVERRIDE = 0xBA , DEPLOY_ANT2_OVERRIDE = 0xBB , DEPLOY_ANT1_OVERRIDE_BACKUP = 0xBC , DEPLOY_ANT2_OVERRIDE_BACKUP = 0xBD , TEMPERATURE = 0xC0 , DEPLOYMENT_STATUS = 0xC3 , UPTIME = 0xC6 , ALL = 0xC7 } |
| Public Types inherited from satnogs::comms::lib::antenna | |
| enum class | tlm : uint8_t { DEPLOYED , UPTIME , TEMPERATURE , VOLTAGE , CURRENT } |
Public Member Functions | |
| antenna_isis (const etl::istring &name, bsp::i2c &i2c, uint16_t addr, bsp::gpio &pwr) | |
| Construct a new antenna_isis object. | |
| void | enable (bool en) override |
| Enables or disables the antenna subsystem if required. | |
| bool | detect (uint32_t idx) override |
| Returns antenna deployment status. | |
| void | deploy (uint32_t idx, bool en) override |
| Deploy the antenna. | |
| void | telemetry (tlm t, uint32_t &res) |
| void | telemetry (tlm t, float &res) override |
| void | telemetry (tlm t, uint32_t idx, bool &res) override |
| Public Member Functions inherited from satnogs::comms::lib::antenna | |
| antenna (const char *name, uint32_t nelems) | |
| Construct a new generic antenna object. | |
| 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, bool &res) |
| virtual void | telemetry (tlm t, uint32_t idx, float &res) |
| virtual void | telemetry (tlm t, uint32_t idx, uint32_t &res) |
Additional Inherited Members | |
| Protected Attributes inherited from satnogs::comms::lib::antenna | |
| const etl::string< 32 > | m_name |
| const uint32_t | m_nelems |
This class implements the management of Antenna System2 from ISIS.
| N | the number of elements |
Definition at line 41 of file antenna_isis.hpp.
|
strong |
| Enumerator | |
|---|---|
| CANCEL | |
| DISARM | |
| ARM | |
| DEPLOY_ANT1_OVERRIDE | |
| DEPLOY_ANT2_OVERRIDE | |
| DEPLOY_ANT1_OVERRIDE_BACKUP | |
| DEPLOY_ANT2_OVERRIDE_BACKUP | |
| TEMPERATURE | |
| DEPLOYMENT_STATUS | |
| UPTIME | |
| ALL | |
Definition at line 44 of file antenna_isis.hpp.
|
inline |
Construct a new antenna_isis object.
| name | the name of the antenna |
| i2c | the I2C device |
| addr | the I2C address of the antenna |
| pwr | the GPIO to control the power for the antenna |
Definition at line 67 of file antenna_isis.hpp.
|
inlineoverridevirtual |
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 from satnogs::comms::lib::antenna.
Definition at line 89 of file antenna_isis.hpp.
|
inlineoverridevirtual |
Returns antenna deployment status.
| idx | An antenna index. Should be in the range [0, -1] |
Reimplemented from satnogs::comms::lib::antenna.
Definition at line 81 of file antenna_isis.hpp.
|
inlineoverridevirtual |
Enables or disables the antenna subsystem if required.
| en | true to enable, false to disable |
Reimplemented from satnogs::comms::lib::antenna.
Definition at line 75 of file antenna_isis.hpp.
|
inlineoverridevirtual |
Reimplemented from satnogs::comms::lib::antenna.
Definition at line 131 of file antenna_isis.hpp.
|
inlinevirtual |
Reimplemented from satnogs::comms::lib::antenna.
Definition at line 114 of file antenna_isis.hpp.
|
inlineoverridevirtual |
Reimplemented from satnogs::comms::lib::antenna.
Definition at line 173 of file antenna_isis.hpp.