запущен тест между есп с перемычкой
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
enum class AppState : uint8_t {
|
||||
IDLE, MENU, SOLO_MEASURE, MASTER_DISCOVER, MASTER_WAIT_READY,
|
||||
MASTER_WAIT_RESULT, SLAVE_READY, SLAVE_WAIT_START, SLAVE_MEASURE,
|
||||
MASTER_WAIT_RESULT, MASTER_FINALIZE, SLAVE_READY, SLAVE_WAIT_START, SLAVE_MEASURE,
|
||||
SLAVE_WAIT_ACK, FINISHED
|
||||
};
|
||||
|
||||
@@ -24,21 +24,26 @@ class App {
|
||||
void changeMenu(int direction);
|
||||
void sanitizeRange();
|
||||
void startTest();
|
||||
bool armSlave();
|
||||
bool prepareStage();
|
||||
bool armSlave(bool preserveDisplay = false);
|
||||
bool prepareStage(bool showProgress = true);
|
||||
bool startLocalMeasurement(float hz, float duty);
|
||||
void startMasterDiscovery();
|
||||
void handleRadio();
|
||||
void updateMaster();
|
||||
void updateSlave();
|
||||
void stagePassed();
|
||||
void finish(bool pass, FailReason reason);
|
||||
void finish(bool pass, FailReason reason, bool preserveDisplay = false);
|
||||
void abortTest();
|
||||
void sendAbort();
|
||||
void sendAbort(FailReason reason = FailReason::ABORTED);
|
||||
void printConfiguration();
|
||||
void printStageStats(const StageStats &s, uint32_t hz);
|
||||
void showStageResult(const StageStats &s);
|
||||
void showRemoteResult(const ProtocolPacket &packet);
|
||||
void fillMeasuredResult(ProtocolPacket &packet, const StageStats &stats) const;
|
||||
void showStageProgress();
|
||||
uint64_t actualNominalTotalUs();
|
||||
ProtocolPacket makePacket(MessageType type) const;
|
||||
bool sendLinked(ProtocolPacket packet);
|
||||
void sendCurrent(MessageType type);
|
||||
void updateHeartbeat();
|
||||
bool packetForCurrent(const ProtocolPacket &p) const;
|
||||
@@ -69,4 +74,5 @@ class App {
|
||||
bool initialized_ = false, bootResetCandidate_ = false;
|
||||
uint32_t bootCheckStartedMs_ = 0;
|
||||
uint32_t slaveRearmAtMs_ = 0;
|
||||
bool stageStartConfirmed_ = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user