PLOC SUPV periodic HK
This commit is contained in:
parent
6919ab9455
commit
af5f51928b
@ -35,6 +35,7 @@ will consitute of a breaking change warranting a new major release:
|
|||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
||||||
|
- The PLOC SUPV HK set is requested and downlinked periodically if the SUPV is on now.
|
||||||
- SGP4 Propagator is now used for propagating the position of EIVE. It will only work once
|
- SGP4 Propagator is now used for propagating the position of EIVE. It will only work once
|
||||||
a TLE has been uploaded with the newly added action command for the ACS Controller. In
|
a TLE has been uploaded with the newly added action command for the ACS Controller. In
|
||||||
return the actual GPS data will be ignored once SPG4 is running. However, by setting the
|
return the actual GPS data will be ignored once SPG4 is running. However, by setting the
|
||||||
|
@ -155,12 +155,15 @@ void PlocSupervisorHandler::doStartUp() {
|
|||||||
startupState = StartupState::ON;
|
startupState = StartupState::ON;
|
||||||
}
|
}
|
||||||
if (startupState == StartupState::ON) {
|
if (startupState == StartupState::ON) {
|
||||||
|
hkset.setReportingEnabled(true);
|
||||||
setMode(_MODE_TO_ON);
|
setMode(_MODE_TO_ON);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlocSupervisorHandler::doShutDown() {
|
void PlocSupervisorHandler::doShutDown() {
|
||||||
setMode(_MODE_POWER_DOWN);
|
setMode(_MODE_POWER_DOWN);
|
||||||
|
hkset.setReportingEnabled(false);
|
||||||
|
hkset.setValidity(false, true);
|
||||||
shutdownCmdSent = false;
|
shutdownCmdSent = false;
|
||||||
packetInBuffer = false;
|
packetInBuffer = false;
|
||||||
nextReplyId = supv::NONE;
|
nextReplyId = supv::NONE;
|
||||||
@ -170,6 +173,10 @@ void PlocSupervisorHandler::doShutDown() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t PlocSupervisorHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
|
ReturnValue_t PlocSupervisorHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
|
||||||
|
if (not commandIsExecuting(GET_HK_REPORT)) {
|
||||||
|
*id = GET_HK_REPORT;
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
return NOTHING_TO_SEND;
|
return NOTHING_TO_SEND;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -790,6 +797,8 @@ ReturnValue_t PlocSupervisorHandler::initializeLocalDataPool(localpool::DataPool
|
|||||||
localDataPoolMap.emplace(supv::ADC_ENG_14, new PoolEntry<uint16_t>({0}));
|
localDataPoolMap.emplace(supv::ADC_ENG_14, new PoolEntry<uint16_t>({0}));
|
||||||
localDataPoolMap.emplace(supv::ADC_ENG_15, new PoolEntry<uint16_t>({0}));
|
localDataPoolMap.emplace(supv::ADC_ENG_15, new PoolEntry<uint16_t>({0}));
|
||||||
|
|
||||||
|
poolManager.subscribeForRegularPeriodicPacket(
|
||||||
|
subdp::RegularHkPeriodicParams(hkset.getSid(), false, 10.0));
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ void EiveSystem::handleEventMessages() {
|
|||||||
if (event.getParameter1() == pdec::FRAME_DIRTY_RETVAL) {
|
if (event.getParameter1() == pdec::FRAME_DIRTY_RETVAL) {
|
||||||
frameDirtyErrorCounter++;
|
frameDirtyErrorCounter++;
|
||||||
// Check whether threshold was reached after 10 seconds.
|
// Check whether threshold was reached after 10 seconds.
|
||||||
if(frameDirtyErrorCounter == 1) {
|
if (frameDirtyErrorCounter == 1) {
|
||||||
frameDirtyCheckCd.resetTimer();
|
frameDirtyCheckCd.resetTimer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user