fixes for scheduling
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2023-02-06 10:20:22 +01:00
parent fd7709ea81
commit 4d6215f546
3 changed files with 68 additions and 55 deletions

View File

@ -32,6 +32,7 @@ class GpsHyperionLinuxController : public ExtendedControllerBase {
using gpioResetFunction_t = ReturnValue_t (*)(const uint8_t* actionData, size_t len, void* args);
ReturnValue_t performOperation(uint8_t opCode) override;
void setResetPinTriggerFunction(gpioResetFunction_t resetCallback, void* args);
ReturnValue_t handleCommandMessage(CommandMessage* message) override;
void performControlOperation() override;
@ -66,7 +67,10 @@ class GpsHyperionLinuxController : public ExtendedControllerBase {
uint32_t timeIsConstantCounter = 0;
Countdown timeUpdateCd = Countdown(60);
void readGpsDataFromGpsd();
// Returns true if data was read and function should be called again
// immediately, and false if the gps_waiting blocked for 0.2 seconds
// without new data arriving.
bool readGpsDataFromGpsd();
};
#endif /* MISSION_DEVICES_GPSHYPERIONHANDLER_H_ */