some tweaks for acs brd devs
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Robin Müller 2023-03-06 14:25:26 +01:00
parent ff9a5fc1bf
commit e7a1c9f402
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
6 changed files with 9 additions and 10 deletions

View File

@ -48,7 +48,7 @@ void GyrAdis1650XHandler::doShutDown() {
updatePeriodicReply(false, adis1650x::REPLY); updatePeriodicReply(false, adis1650x::REPLY);
internalState = InternalState::NONE; internalState = InternalState::NONE;
commandExecuted = false; commandExecuted = false;
setMode(_MODE_POWER_DOWN); setMode(MODE_OFF);
} }
} }
@ -90,7 +90,8 @@ void GyrAdis1650XHandler::fillCommandAndReplyMap() {
ReturnValue_t GyrAdis1650XHandler::scanForReply(const uint8_t *start, size_t remainingSize, ReturnValue_t GyrAdis1650XHandler::scanForReply(const uint8_t *start, size_t remainingSize,
DeviceCommandId_t *foundId, size_t *foundLen) { DeviceCommandId_t *foundId, size_t *foundLen) {
if (breakCountdown.isBusy() or getMode() == _MODE_WAIT_OFF or getMode() == _MODE_WAIT_ON) { if (breakCountdown.isBusy() or getMode() == _MODE_WAIT_OFF or getMode() == _MODE_WAIT_ON or
getMode() == _MODE_POWER_DOWN) {
return IGNORE_FULL_PACKET; return IGNORE_FULL_PACKET;
} }
if (remainingSize != sizeof(acs::Adis1650XReply)) { if (remainingSize != sizeof(acs::Adis1650XReply)) {

View File

@ -44,7 +44,7 @@ void GyrL3gCustomHandler::doShutDown() {
internalState = InternalState::NONE; internalState = InternalState::NONE;
updatePeriodicReply(false, l3gd20h::REPLY); updatePeriodicReply(false, l3gd20h::REPLY);
commandExecuted = false; commandExecuted = false;
setMode(_MODE_POWER_DOWN); setMode(MODE_OFF);
} }
} }
@ -100,7 +100,7 @@ ReturnValue_t GyrL3gCustomHandler::buildCommandFromCommand(DeviceCommandId_t dev
ReturnValue_t GyrL3gCustomHandler::scanForReply(const uint8_t *start, size_t len, ReturnValue_t GyrL3gCustomHandler::scanForReply(const uint8_t *start, size_t len,
DeviceCommandId_t *foundId, size_t *foundLen) { DeviceCommandId_t *foundId, size_t *foundLen) {
if (getMode() == _MODE_WAIT_OFF or getMode() == _MODE_WAIT_ON) { if (getMode() == _MODE_WAIT_OFF or getMode() == _MODE_WAIT_ON or getMode() == _MODE_POWER_DOWN) {
return IGNORE_FULL_PACKET; return IGNORE_FULL_PACKET;
} }
if (len != sizeof(acs::GyroL3gReply)) { if (len != sizeof(acs::GyroL3gReply)) {

View File

@ -37,7 +37,7 @@ void MgmLis3CustomHandler::doShutDown() {
updatePeriodicReply(false, REPLY); updatePeriodicReply(false, REPLY);
commandExecuted = false; commandExecuted = false;
internalState = InternalState::NONE; internalState = InternalState::NONE;
setMode(_MODE_POWER_DOWN); setMode(MODE_OFF);
} }
} }

View File

@ -38,7 +38,7 @@ void MgmRm3100CustomHandler::doShutDown() {
} }
if (internalState == InternalState::SHUTDOWN and commandExecuted) { if (internalState == InternalState::SHUTDOWN and commandExecuted) {
updatePeriodicReply(false, REPLY); updatePeriodicReply(false, REPLY);
setMode(_MODE_POWER_DOWN); setMode(MODE_OFF);
commandExecuted = false; commandExecuted = false;
} }
} }

View File

@ -51,6 +51,4 @@ ReturnValue_t ImtqAssembly::checkAndHandleHealthState(Mode_t deviceMode, Submode
return OK; return OK;
} }
void ImtqAssembly::handleChildrenLostMode(ReturnValue_t result) { void ImtqAssembly::handleChildrenLostMode(ReturnValue_t result) { startTransition(mode, submode); }
startTransition(mode, submode);
}

2
tmtc

@ -1 +1 @@
Subproject commit 208d328683a9911ecaa1d60abd3b8a9e3a841c37 Subproject commit 9462a6e2459e11ac03c2bb9694772959ac228cd0