mostly done with gomspacehandlers, some todos left
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Ulrich Mohr 2022-08-24 18:13:03 +02:00
parent da2acd1fa8
commit aaeb101442
8 changed files with 9 additions and 7 deletions

2
fsfw

@ -1 +1 @@
Subproject commit 3782d8eb74171343dce845606f91885e87dc54f4
Subproject commit d634bdb7753282f009bd2581945b861d9836c1a4

View File

@ -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(); }

View File

@ -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;

View File

@ -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);

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -334,8 +334,8 @@ 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;
this->parameter = parameter;