mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Initial IO remapping capability
This commit is contained in:
parent
5f47fc311b
commit
46a6e560f1
28 changed files with 506 additions and 382 deletions
|
@ -18,6 +18,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "sensors/battery.h"
|
||||
#include "drivers/sonar_hcsr04.h"
|
||||
|
||||
#define SONAR_OUT_OF_RANGE (-1)
|
||||
|
||||
|
@ -27,7 +28,7 @@ extern int16_t sonarMaxAltWithTiltCm;
|
|||
|
||||
struct sonarHardware_s;
|
||||
const struct sonarHardware_s *sonarGetHardwareConfiguration(currentSensor_e currentSensor);
|
||||
void sonarInit(void);
|
||||
void sonarInit(sonarConfig_t *sonarConfig);
|
||||
void sonarUpdate(void);
|
||||
int32_t sonarRead(void);
|
||||
int32_t sonarCalculateAltitude(int32_t sonarDistance, float cosTiltAngle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue