Skip to content
Snippets Groups Projects
Commit de703f32 authored by Nicolò Caruso's avatar Nicolò Caruso Committed by Matteo Pancotti
Browse files

[ARP] Minor fix about atomic bools in Follower

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