Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Skyward Boardcore
Commits
35a791d0
Commit
35a791d0
authored
5 months ago
by
Nicolò Caruso
Committed by
Nicolò Caruso
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[ARP] Minor fix about atomic bools in Follower
parent
1f711120
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/shared/algorithms/Follower/Follower.cpp
+1
-1
1 addition, 1 deletion
src/shared/algorithms/Follower/Follower.cpp
src/shared/algorithms/Follower/Follower.h
+2
-2
2 additions, 2 deletions
src/shared/algorithms/Follower/Follower.h
with
3 additions
and
3 deletions
src/shared/algorithms/Follower/Follower.cpp
+
1
−
1
View file @
35a791d0
...
@@ -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
})
{
{
}
}
...
...
This diff is collapsed.
Click to expand it.
src/shared/algorithms/Follower/Follower.h
+
2
−
2
View file @
35a791d0
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment