new MGM polling
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
@ -15,6 +15,10 @@ GyrAdis1650XHandler::GyrAdis1650XHandler(object_id_t objectId, object_id_t devic
|
||||
}
|
||||
|
||||
void GyrAdis1650XHandler::doStartUp() {
|
||||
if (internalState != InternalState::STARTUP) {
|
||||
internalState = InternalState::STARTUP;
|
||||
commandExecuted = false;
|
||||
}
|
||||
// Initial 310 ms start up time after power-up
|
||||
if (internalState == InternalState::STARTUP) {
|
||||
if (not commandExecuted) {
|
||||
@ -29,19 +33,9 @@ void GyrAdis1650XHandler::doStartUp() {
|
||||
} else {
|
||||
setMode(MODE_ON);
|
||||
}
|
||||
internalState = InternalState::NONE;
|
||||
}
|
||||
}
|
||||
|
||||
// // Read all configuration registers first
|
||||
// if (internalState == InternalState::CONFIG) {
|
||||
// if (commandExecuted) {
|
||||
// commandExecuted = false;
|
||||
// internalState = InternalState::IDLE;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (internalState == InternalState::IDLE) {
|
||||
// }
|
||||
}
|
||||
|
||||
void GyrAdis1650XHandler::doShutDown() {
|
||||
@ -50,8 +44,10 @@ void GyrAdis1650XHandler::doShutDown() {
|
||||
primaryDataset.setValidity(false, true);
|
||||
internalState = InternalState::SHUTDOWN;
|
||||
}
|
||||
if (commandExecuted) {
|
||||
if (internalState == InternalState::SHUTDOWN and commandExecuted) {
|
||||
updatePeriodicReply(false, adis1650x::REPLY);
|
||||
internalState = InternalState::NONE;
|
||||
commandExecuted = false;
|
||||
setMode(_MODE_POWER_DOWN);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user