Skip to content
Snippets Groups Projects
Commit 35a791d0 authored by Nicolò Caruso's avatar Nicolò Caruso Committed by Nicolò Caruso
Browse files

[ARP] Minor fix about atomic bools in Follower

parent 1f711120
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ float minimizeRotation(float angle) ...@@ -52,7 +52,7 @@ float minimizeRotation(float angle)
Follower::Follower(std::chrono::milliseconds updatePeriod) Follower::Follower(std::chrono::milliseconds updatePeriod)
: updatePeriod(static_cast<float>(updatePeriod.count()) / 1000), : updatePeriod(static_cast<float>(updatePeriod.count()) / 1000),
targetAngles({0, 0, 0}), firstAntennaAttitudeSet(false), isInit(false) targetAngles({0, 0, 0})
{ {
} }
......
...@@ -145,14 +145,14 @@ private: ...@@ -145,14 +145,14 @@ private:
// actuation update period [s] // actuation update period [s]
float updatePeriod; float updatePeriod;
// Initialization flag // Initialization flag
std::atomic<bool> isInit; std::atomic<bool> isInit{false};
// max number of retries for GPS data acquisition // max number of retries for GPS data acquisition
const uint8_t maxInitRetries = 120; const uint8_t maxInitRetries = 120;
bool antennaCoordinatesSet = false; bool antennaCoordinatesSet = false;
bool rocketCoordinatesSet = false; bool rocketCoordinatesSet = false;
std::atomic<bool> firstAntennaAttitudeSet; std::atomic<bool> firstAntennaAttitudeSet{false};
VN300Data lastAntennaAttitude; VN300Data lastAntennaAttitude;
miosix::FastMutex lastAntennaAttitudeMutex; miosix::FastMutex lastAntennaAttitudeMutex;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment