2021-01-28 14:55:21 +01:00
|
|
|
#ifndef MISSION_DEVICES_P60DOCKHANDLER_H_
|
|
|
|
#define MISSION_DEVICES_P60DOCKHANDLER_H_
|
|
|
|
|
|
|
|
#include "GomspaceDeviceHandler.h"
|
2021-02-03 08:09:54 +01:00
|
|
|
#include <mission/devices/devicedefinitions/GomspaceDefinitions.h>
|
2021-01-28 14:55:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Device handler for the P60Dock. The P60Dock serves as carrier for the ACU, PDU1 and
|
|
|
|
* PDU2. Via the P60Dock each of these modules can be turned on and off individually.
|
|
|
|
*/
|
|
|
|
class P60DockHandler: public GomspaceDeviceHandler {
|
|
|
|
public:
|
2021-02-06 11:57:45 +01:00
|
|
|
P60DockHandler(object_id_t objectId, object_id_t comIF, CookieIF * comCookie);
|
2021-01-28 14:55:21 +01:00
|
|
|
virtual ~P60DockHandler();
|
|
|
|
|
2021-02-09 10:31:40 +01:00
|
|
|
virtual ReturnValue_t initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
|
|
|
|
LocalDataPoolManager& poolManager) override;
|
|
|
|
|
2021-01-28 14:55:21 +01:00
|
|
|
protected:
|
2021-02-12 10:20:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief As soon as the device is in MODE_NORMAL, this function is executed periodically.
|
|
|
|
*/
|
|
|
|
virtual ReturnValue_t buildNormalDeviceCommand(DeviceCommandId_t * id) override;
|
|
|
|
|
2021-01-28 14:55:21 +01:00
|
|
|
virtual void letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) override;
|
2021-02-03 08:09:54 +01:00
|
|
|
|
2021-09-20 11:47:19 +02:00
|
|
|
/**
|
|
|
|
* This command handles printing the HK table to the console. This is useful for debugging
|
|
|
|
* purposes
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
ReturnValue_t printStatus(DeviceCommandId_t cmd) override;
|
|
|
|
|
|
|
|
void printHkTable();
|
2021-02-03 08:09:54 +01:00
|
|
|
private:
|
|
|
|
P60Dock::HkTableDataset p60dockHkTableDataset;
|
2021-02-12 10:20:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Function extracts the hk table information from the received csp packet and stores
|
|
|
|
* the values in the p60dockHkTableDataset.
|
|
|
|
*/
|
|
|
|
void parseHkTableReply(const uint8_t *packet);
|
2021-01-28 14:55:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* MISSION_DEVICES_P60DOCKHANDLER_H_ */
|