2021-01-28 14:55:21 +01:00
|
|
|
#ifndef MISSION_DEVICES_PDU1Handler_H_
|
|
|
|
#define MISSION_DEVICES_PDU1Handler_H_
|
|
|
|
|
|
|
|
#include "GomspaceDeviceHandler.h"
|
|
|
|
#include <mission/devices/devicedefinitions/GomspaceDefinitions.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This is the device handler for the PDU1.
|
|
|
|
*
|
|
|
|
* @details The PDU1 controls the
|
|
|
|
* power supply of the following devices:
|
|
|
|
* TCS Board, 3.3V, channel 0
|
|
|
|
* Syrlinks, 12V, channel 1
|
|
|
|
* Star Tracker, 5V, channel 2
|
|
|
|
* MGT, 5V, channel 3
|
|
|
|
* SUS 1-6 Nominal, 3.3V, channel 4
|
|
|
|
* Solar cell experiment, 5V, channel 5
|
|
|
|
* PLOC, 12V, channel 6
|
|
|
|
* ACS 3.3V for Side A group, channel 7
|
|
|
|
* Unoccupied, 5V, channel 8
|
|
|
|
*/
|
|
|
|
class PDU1Handler: public GomspaceDeviceHandler {
|
|
|
|
public:
|
2021-02-06 11:57:45 +01:00
|
|
|
PDU1Handler(object_id_t objectId, object_id_t comIF, CookieIF * comCookie);
|
2021-01-28 14:55:21 +01:00
|
|
|
virtual ~PDU1Handler();
|
|
|
|
protected:
|
|
|
|
/**
|
|
|
|
* @brief In MODE_NORMAL, a command will be built periodically by this function.
|
|
|
|
*/
|
|
|
|
virtual ReturnValue_t buildNormalDeviceCommand(DeviceCommandId_t * id) override;
|
|
|
|
virtual void letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
/** Dataset for the housekeeping table of the PDU1 */
|
2021-02-03 08:09:54 +01:00
|
|
|
PDU1::PDU1HkTableDataset pdu1HkTableDataset;
|
2021-01-28 14:55:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* MISSION_DEVICES_PDU1Handler_H_ */
|