GPS and RW handler improvements
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
parent
8fc144b595
commit
397e1433fd
2
fsfw
2
fsfw
@ -1 +1 @@
|
||||
Subproject commit dccc2f0ba77184933e3d551d95950a5b0801d2f2
|
||||
Subproject commit e1a85b47c5018590e58b9b1130b1754b0079450f
|
@ -60,10 +60,8 @@ ReturnValue_t GPSHyperionHandler::buildCommandFromCommand(
|
||||
PoolReadGuard pg(&gpsSet);
|
||||
// Set HK entries invalid
|
||||
gpsSet.setValidity(false, true);
|
||||
// The user needs to implement this. Don't touch states for now, the device should
|
||||
// quickly reboot and send valid strings again.
|
||||
actionHelper.finish(true, getCommanderQueueId(deviceCommand), deviceCommand);
|
||||
return resetCallback(resetCallbackArgs);
|
||||
resetCallback(resetCallbackArgs);
|
||||
return HasActionsIF::EXECUTION_FINISHED;
|
||||
}
|
||||
return DeviceHandlerIF::COMMAND_NOT_IMPLEMENTED;
|
||||
}
|
||||
@ -210,3 +208,7 @@ ReturnValue_t GPSHyperionHandler::initialize() {
|
||||
// Enable reply immediately for now
|
||||
return updatePeriodicReply(true, GpsHyperion::GPS_REPLY);
|
||||
}
|
||||
|
||||
ReturnValue_t GPSHyperionHandler::acceptExternalDeviceCommands() {
|
||||
return DeviceHandlerBase::acceptExternalDeviceCommands();
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ public:
|
||||
using gpioResetFunction_t = ReturnValue_t (*) (void* args);
|
||||
|
||||
void setResetPinTriggerFunction(gpioResetFunction_t resetCallback, void*args);
|
||||
ReturnValue_t acceptExternalDeviceCommands() override;
|
||||
|
||||
ReturnValue_t initialize() override;
|
||||
protected:
|
||||
|
@ -184,6 +184,7 @@ ReturnValue_t RwHandler::scanForReply(const uint8_t *start, size_t remainingSize
|
||||
default: {
|
||||
sif::warning << "RwHandler::scanForReply: Reply contains invalid command code" <<
|
||||
std::endl;
|
||||
*foundLen = remainingSize;
|
||||
return RETURN_FAILED;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user