added back self-test support

This commit is contained in:
2023-02-20 02:32:48 +01:00
parent 641c069664
commit 2bacf1efa0
5 changed files with 293 additions and 225 deletions

View File

@ -116,11 +116,7 @@ class ImtqHandler : public DeviceHandlerBase {
bool goToNormalMode = false;
bool debugMode = false;
imtq::RequestType requestStep = imtq::RequestType::MEASURE;
// enum class StartupStep { NONE, COMMAND_SELF_TEST, GET_SELF_TEST_RESULT };
// StartupStep startupStep = StartupStep::COMMAND_SELF_TEST;
imtq::RequestType requestStep = imtq::RequestType::MEASURE_WITH_ACTUATION;
/**
* @brief In case of a status reply to a single axis self test command, this function
@ -148,22 +144,6 @@ class ImtqHandler : public DeviceHandlerBase {
void fillSystemStateIntoDataset(const uint8_t* packet);
/**
* @brief This function sends a command reply to the requesting queue.
*
* @param data Pointer to the data to send.
* @param dataSize Size of the data to send.
* @param relplyId Reply id which will be inserted at the beginning of the action message.
*/
void handleDeviceTM(const uint8_t* data, size_t dataSize, DeviceCommandId_t replyId);
/**
* @brief This function handles the reply containing the commanded dipole.
*
* @param packet Pointer to the reply data.
*/
void handleGetCommandedDipoleReply(const uint8_t* packet);
/**
* @brief This function parses the reply containing the calibrated MTM measurement and writes
* the values to the appropriate dataset.