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
950c4e56
Commit
950c4e56
authored
2 years ago
by
Matteo Pignataro
Browse files
Options
Downloads
Patches
Plain Diff
[Payload] Fixed pitot
parent
99746a2a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/boards/Payload/Configs/RadioConfig.h
+1
-1
1 addition, 1 deletion
src/boards/Payload/Configs/RadioConfig.h
src/boards/Payload/Sensors/Sensors.cpp
+3
-0
3 additions, 0 deletions
src/boards/Payload/Sensors/Sensors.cpp
with
4 additions
and
1 deletion
src/boards/Payload/Configs/RadioConfig.h
+
1
−
1
View file @
950c4e56
...
...
@@ -34,7 +34,7 @@ namespace RadioConfig
// Mavlink driver template parameters
constexpr
uint32_t
RADIO_PKT_LENGTH
=
255
;
constexpr
uint32_t
RADIO_OUT_QUEUE_SIZE
=
1
0
;
constexpr
uint32_t
RADIO_OUT_QUEUE_SIZE
=
2
0
;
constexpr
uint32_t
RADIO_MAV_MSG_LENGTH
=
MAVLINK_MAX_DIALECT_PAYLOAD_SIZE
;
// Mavlink driver parameters
...
...
This diff is collapsed.
Click to expand it.
src/boards/Payload/Sensors/Sensors.cpp
+
3
−
0
View file @
950c4e56
...
...
@@ -26,6 +26,7 @@
#include
<Payload/Buses.h>
#include
<Payload/Configs/SensorsConfig.h>
#include
<Payload/FlightStatsRecorder/FlightStatsRecorder.h>
#include
<common/ReferenceConfig.h>
#include
<common/events/Events.h>
#include
<drivers/interrupt/external_interrupts.h>
#include
<drivers/usart/USART.h>
...
...
@@ -34,6 +35,7 @@
using
namespace
std
;
using
namespace
Boardcore
;
using
namespace
Common
;
using
namespace
ReferenceConfig
;
using
namespace
Payload
::
SensorsConfig
;
// BMX160 Watermark interrupt
...
...
@@ -471,6 +473,7 @@ void Sensors::pitotInit()
[
&
]()
{
return
ms5803
->
getLastSample
().
pressure
;
});
pitot
=
new
Pitot
(
getPitotPressure
,
getStaticPressure
);
pitot
->
setReferenceValues
(
defaultReferenceValues
);
SensorInfo
info
(
"PITOT"
,
SAMPLE_PERIOD_ADS1118
*
4
,
...
...
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