* added event when transmitter is turned on due to bitlock detection

* added event when tx timer has expired
This commit is contained in:
Jakob Meier
2023-02-27 07:49:09 +01:00
parent 7af7eff316
commit 316971c6bc
4 changed files with 15 additions and 5 deletions

View File

@ -166,6 +166,7 @@ void ComSubsystem::handleBitLockEvent() {
rememberBitLock = true;
return;
}
triggerEvent(BIT_LOCK_TX_ON);
startRxAndTxLowRateSeq();
}
@ -183,6 +184,7 @@ void ComSubsystem::startRxAndTxLowRateSeq() {
void ComSubsystem::checkTransmitterCountdown() {
if (transmitterCountdown.hasTimedOut()) {
triggerEvent(TX_TIMER_EXPIRED, transmitterTimeout);
startTransition(com::Submode::RX_ONLY, SUBMODE_NONE);
countdownActive = false;
}