diff --git a/src/shared/algorithms/Follower/Follower.cpp b/src/shared/algorithms/Follower/Follower.cpp index e652bac3cd9545dfa8ede7a3e9c0f012fcd7c3d5..18c0575b5c3510a4e02e9173ba5686f38d7dd9e1 100644 --- a/src/shared/algorithms/Follower/Follower.cpp +++ b/src/shared/algorithms/Follower/Follower.cpp @@ -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}) { } diff --git a/src/shared/algorithms/Follower/Follower.h b/src/shared/algorithms/Follower/Follower.h index 073453a1b93d65bf9b936c62c0e08510bd8d8e0b..2f84b00e31af71808150ade8e01fe5d2d82326a3 100644 --- a/src/shared/algorithms/Follower/Follower.h +++ b/src/shared/algorithms/Follower/Follower.h @@ -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;