mostly done with gomspacehandlers, some todos left
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
This commit is contained in:
parent
da2acd1fa8
commit
aaeb101442
2
fsfw
2
fsfw
@ -1 +1 @@
|
||||
Subproject commit 3782d8eb74171343dce845606f91885e87dc54f4
|
||||
Subproject commit d634bdb7753282f009bd2581945b861d9836c1a4
|
@ -13,7 +13,7 @@ ACUHandler::~ACUHandler() {}
|
||||
|
||||
ReturnValue_t ACUHandler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
||||
*id = GomspaceCommands::REQUEST_HK_TABLE;
|
||||
return buildCommandFromCommand(*id, NULL, 0);
|
||||
return requestHkTableAction.handle();
|
||||
}
|
||||
|
||||
void ACUHandler::fillCommandAndReplyMap() { GomspaceDeviceHandler::fillCommandAndReplyMap(); }
|
||||
|
@ -284,6 +284,7 @@ ReturnValue_t GomspaceDeviceHandler::handleAction(ParamGetAction* action) {
|
||||
}
|
||||
|
||||
ReturnValue_t GomspaceDeviceHandler::handleAction(PingAction* action) {
|
||||
action->pingData = 12;
|
||||
CspPingCommand cspPingCommand(&action->pingData.value, 1); // TODO array
|
||||
size_t cspPacketLen = 0;
|
||||
uint8_t* buffer = cspPacket;
|
||||
|
@ -123,6 +123,7 @@ class GomspaceDeviceHandler : public DeviceHandlerBase {
|
||||
* This command handles printing the HK table to the console. This is useful for debugging
|
||||
* purposes
|
||||
* @return
|
||||
* TODO replace by overriding the handleAction()?
|
||||
*/
|
||||
virtual ReturnValue_t printStatus(DeviceCommandId_t cmd);
|
||||
|
||||
|
@ -16,7 +16,7 @@ P60DockHandler::~P60DockHandler() {}
|
||||
|
||||
ReturnValue_t P60DockHandler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
||||
*id = GomspaceCommands::REQUEST_HK_TABLE;
|
||||
return buildCommandFromCommand(*id, NULL, 0);
|
||||
return requestHkTableAction.handle();
|
||||
}
|
||||
|
||||
void P60DockHandler::letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) {
|
||||
|
@ -16,7 +16,7 @@ PDU1Handler::~PDU1Handler() {}
|
||||
|
||||
ReturnValue_t PDU1Handler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
||||
*id = GomspaceCommands::REQUEST_HK_TABLE;
|
||||
return buildCommandFromCommand(*id, NULL, 0);
|
||||
return requestHkTableAction.handle();
|
||||
}
|
||||
|
||||
void PDU1Handler::letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) {
|
||||
|
@ -16,7 +16,7 @@ PDU2Handler::~PDU2Handler() {}
|
||||
|
||||
ReturnValue_t PDU2Handler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
||||
*id = GomspaceCommands::REQUEST_HK_TABLE;
|
||||
return buildCommandFromCommand(*id, NULL, 0);
|
||||
return requestHkTableAction.handle();
|
||||
}
|
||||
|
||||
void PDU2Handler::letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) {
|
||||
|
@ -334,7 +334,7 @@ class Pdu2FullTableReply : public SerialLinkedListAdapter<SerializeIF> {
|
||||
|
||||
class SetParamMessageCache {
|
||||
public:
|
||||
SetParamMessageCache(): address(0), parameter(0), parameterSize(1) {}
|
||||
SetParamMessageCache() : address(0), parameter(0), parameterSize(1) {}
|
||||
|
||||
void set(uint16_t address, uint32_t parameter, uint8_t parameterSize) {
|
||||
this->address = address;
|
||||
|
Loading…
Reference in New Issue
Block a user