Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
On-Board Software
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
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
On-Board Software
Commits
0aea016d
Commit
0aea016d
authored
1 year ago
by
Angelo Prete
Browse files
Options
Downloads
Patches
Plain Diff
[Parafoil] Updated GPS config in SensorsConfig.h
parent
98467b85
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#8139
failed
1 year ago
Stage: build-release
Stage: build-debug
Stage: lint
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/boards/Parafoil/Configs/SensorsConfig.h
+5
-4
5 additions, 4 deletions
src/boards/Parafoil/Configs/SensorsConfig.h
src/boards/Parafoil/Sensors/Sensors.cpp
+1
-1
1 addition, 1 deletion
src/boards/Parafoil/Sensors/Sensors.cpp
with
6 additions
and
5 deletions
src/boards/Parafoil/Configs/SensorsConfig.h
+
5
−
4
View file @
0aea016d
...
...
@@ -75,8 +75,10 @@ constexpr Boardcore::LPS22DF::ODR LPS22DF_ODR = Boardcore::LPS22DF::ODR_100;
constexpr
uint32_t
LPS22DF_PERIOD
=
20
;
// [ms] 50Hz
// UBXGPS
constexpr
uint8_t
UBXGPS_SAMPLE_RATE
=
10
;
constexpr
uint32_t
UBXGPS_PERIOD
=
1000
/
UBXGPS_SAMPLE_RATE
;
// [ms]
constexpr
uint8_t
UBXGPS_SAMPLE_RATE
=
5
;
// The +5 is needed because GPS data must be read faster than it is produced (to
// not cause delays)
constexpr
uint32_t
UBXGPS_PERIOD
=
1000
/
(
UBXGPS_SAMPLE_RATE
+
5
);
// [ms]
// ADS
constexpr
Boardcore
::
ADS131M08Defs
::
OversamplingRatio
...
...
@@ -84,7 +86,6 @@ constexpr Boardcore::ADS131M08Defs::OversamplingRatio
Boardcore
::
ADS131M08Defs
::
OversamplingRatio
::
OSR_8192
;
constexpr
bool
ADS131M08_GLOBAL_CHOP_MODE
=
true
;
constexpr
uint32_t
ADS131M08_PERIOD
=
10
;
// [ms] 100Hz
//
// UNUSED - How many bytes go into the fifo each second
constexpr
unsigned
int
BMX160_FIFO_FILL_RATE
=
...
...
This diff is collapsed.
Click to expand it.
src/boards/Parafoil/Sensors/Sensors.cpp
+
1
−
1
View file @
0aea016d
...
...
@@ -347,7 +347,7 @@ void Sensors::ubxGpsInit()
// Create sensor instance with configured parameters
ubxGps
=
new
UBXGPSSpi
(
modules
.
get
<
Buses
>
()
->
spi1
,
miosix
::
sensors
::
ubxgps
::
cs
::
getPin
(),
config
,
5
);
miosix
::
sensors
::
ubxgps
::
cs
::
getPin
(),
config
,
UBXGPS_SAMPLE_RATE
);
// Emplace the sensor inside the map
SensorInfo
info
(
"UBXGPS"
,
UBXGPS_PERIOD
,
...
...
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