ploc supervisor mode change soc check
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
This commit is contained in:
parent
cbfcee0b1c
commit
59bc783045
@ -1993,6 +1993,20 @@ uint32_t PlocSupervisorHandler::getTransitionDelayMs(Mode_t modeFrom, Mode_t mod
|
|||||||
return 7000;
|
return 7000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ReturnValue_t PlocSupervisorHandler::checkModeCommand(Mode_t commandedMode,
|
||||||
|
Submode_t commandedSubmode,
|
||||||
|
uint32_t* msToReachTheMode) {
|
||||||
|
if (commandedMode != MODE_OFF) {
|
||||||
|
PoolReadGuard pg(&enablePl);
|
||||||
|
if (pg.getReadResult() == returnvalue::OK) {
|
||||||
|
if (enablePl.plUseAllowed.isValid() and not enablePl.plUseAllowed.value) {
|
||||||
|
return NON_OP_SOC;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return DeviceHandlerBase::checkModeCommand(commandedMode, commandedSubmode, msToReachTheMode);
|
||||||
|
}
|
||||||
|
|
||||||
// ReturnValue_t PlocSupervisorHandler::checkMramPacketApid() {
|
// ReturnValue_t PlocSupervisorHandler::checkMramPacketApid() {
|
||||||
// uint16_t apid = (spacePacketBuffer[0] << 8 | spacePacketBuffer[1]) & supv::APID_MASK;
|
// uint16_t apid = (spacePacketBuffer[0] << 8 | spacePacketBuffer[1]) & supv::APID_MASK;
|
||||||
// TODO: Fix
|
// TODO: Fix
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <linux/payload/PlocSupvUartMan.h>
|
#include <linux/payload/PlocSupvUartMan.h>
|
||||||
#include <linux/payload/plocSupvDefs.h>
|
#include <linux/payload/plocSupvDefs.h>
|
||||||
|
#include <mission/controller/controllerdefinitions/PowerCtrlDefinitions.h>
|
||||||
|
|
||||||
#include "OBSWConfig.h"
|
#include "OBSWConfig.h"
|
||||||
#include "devices/powerSwitcherList.h"
|
#include "devices/powerSwitcherList.h"
|
||||||
@ -395,6 +396,10 @@ class PlocSupervisorHandler : public DeviceHandlerBase {
|
|||||||
void handleExecutionFailureReport(ExecutionReport& report);
|
void handleExecutionFailureReport(ExecutionReport& report);
|
||||||
|
|
||||||
void printAckFailureInfo(uint16_t statusCode, DeviceCommandId_t commandId);
|
void printAckFailureInfo(uint16_t statusCode, DeviceCommandId_t commandId);
|
||||||
|
|
||||||
|
pwrctrl::EnablePl enablePl = pwrctrl::EnablePl(objects::POWER_CONTROLLER);
|
||||||
|
ReturnValue_t checkModeCommand(Mode_t commandedMode, Submode_t commandedSubmode,
|
||||||
|
uint32_t* msToReachTheMode) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* MISSION_DEVICES_PLOCSUPERVISORHANDLER_H_ */
|
#endif /* MISSION_DEVICES_PLOCSUPERVISORHANDLER_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user