mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Moved function declarations out of main. Tidied drivers.
This commit is contained in:
parent
c50efe6352
commit
1c997abaaf
31 changed files with 112 additions and 96 deletions
|
@ -17,12 +17,16 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "sensors/battery.h"
|
||||
|
||||
#define SONAR_OUT_OF_RANGE (-1)
|
||||
|
||||
extern int16_t sonarMaxRangeCm;
|
||||
extern int16_t sonarCfAltCm;
|
||||
extern int16_t sonarMaxAltWithTiltCm;
|
||||
|
||||
struct sonarHardware_s;
|
||||
const struct sonarHardware_s *sonarGetHardwareConfiguration(currentSensor_e currentSensor);
|
||||
void sonarInit(void);
|
||||
void sonarUpdate(void);
|
||||
int32_t sonarRead(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue