new MGM polling
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2023-02-27 11:44:52 +01:00
parent c7bed10bdf
commit e9514b1c97
11 changed files with 507 additions and 30 deletions

View File

@ -15,7 +15,7 @@ GyrL3gCustomHandler::GyrL3gCustomHandler(object_id_t objectId, object_id_t devic
GyrL3gCustomHandler::~GyrL3gCustomHandler() = default;
void GyrL3gCustomHandler::doStartUp() {
if (internalState == InternalState::NONE) {
if (internalState != InternalState::STARTUP) {
internalState = InternalState::STARTUP;
updatePeriodicReply(true, l3gd20h::REPLY);
commandExecuted = false;
@ -28,6 +28,8 @@ void GyrL3gCustomHandler::doStartUp() {
} else {
setMode(_MODE_TO_ON);
}
internalState == InternalState::NONE;
commandExecuted = false;
}
}
}
@ -37,7 +39,7 @@ void GyrL3gCustomHandler::doShutDown() {
internalState = InternalState::SHUTDOWN;
commandExecuted = false;
}
if (commandExecuted) {
if (internalState == InternalState::SHUTDOWN and commandExecuted) {
internalState = InternalState::NONE;
updatePeriodicReply(false, l3gd20h::REPLY);
commandExecuted = false;