mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Add CRSF baro altitude sensor (#13840)
* Add CRSF baro altitude sensor * Thanks Ledvinap * Fix parenthesis * Review bkleiner * Review karate * Rename getVerticalSpeedPacked
This commit is contained in:
parent
2c4d76c920
commit
69f75b55f6
5 changed files with 84 additions and 6 deletions
|
@ -51,6 +51,7 @@ extern "C" {
|
|||
#include "sensors/battery.h"
|
||||
#include "sensors/sensors.h"
|
||||
#include "sensors/acceleration.h"
|
||||
#include "sensors/barometer.h"
|
||||
|
||||
#include "config/config.h"
|
||||
|
||||
|
@ -399,6 +400,7 @@ extern "C" {
|
|||
uint8_t armingFlags;
|
||||
uint8_t stateFlags;
|
||||
uint16_t flightModeFlags;
|
||||
baro_t baro;
|
||||
|
||||
uint32_t microsISR(void) {return 0; }
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ extern "C" {
|
|||
#include "telemetry/msp_shared.h"
|
||||
#include "telemetry/smartport.h"
|
||||
#include "sensors/acceleration.h"
|
||||
#include "sensors/barometer.h"
|
||||
|
||||
rssiSource_e rssiSource;
|
||||
bool handleMspFrame(uint8_t *frameStart, uint8_t frameLength, uint8_t *skipsBeforeResponse);
|
||||
|
@ -96,7 +97,7 @@ extern "C" {
|
|||
extern struct mspPacket_s responsePacket;
|
||||
|
||||
uint32_t dummyTimeUs;
|
||||
|
||||
baro_t baro;
|
||||
}
|
||||
|
||||
#include "unittest_macros.h"
|
||||
|
|
|
@ -58,6 +58,7 @@ extern "C" {
|
|||
#include "sensors/battery.h"
|
||||
#include "sensors/sensors.h"
|
||||
#include "sensors/acceleration.h"
|
||||
#include "sensors/barometer.h"
|
||||
|
||||
#include "msp/msp_serial.h"
|
||||
|
||||
|
@ -67,6 +68,7 @@ extern "C" {
|
|||
|
||||
rssiSource_e rssiSource;
|
||||
bool airMode;
|
||||
baro_t baro;
|
||||
|
||||
uint16_t testBatteryVoltage = 0;
|
||||
int32_t testAmperage = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue