mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-25 20:27:18 +02:00
different tx-offests for 4ch HM
* discord 0.8.6803 * tx+3 for 4ch-HM, tx+2 for other Inverters
This commit is contained in:
parent
e5ce1f5094
commit
bba82d8b3a
7 changed files with 76 additions and 27 deletions
|
@ -14,7 +14,22 @@
|
|||
class HeuristicInv {
|
||||
public:
|
||||
HeuristicInv() {
|
||||
clear();
|
||||
}
|
||||
|
||||
void clear() {
|
||||
memset(txRfQuality, 0, RF_MAX_CHANNEL_ID);
|
||||
txRfChId = 0;
|
||||
lastBestTxChId = 0;
|
||||
testPeriodSendCnt = 0;
|
||||
testPeriodFailCnt = 0;
|
||||
testChId = 0;
|
||||
saveOldTestQuality = -6;
|
||||
lastRxFragments = 0;
|
||||
}
|
||||
|
||||
bool isTxAtMax(void) const {
|
||||
return (RF_MAX_QUALITY == txRfQuality[txRfChId]);
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue