mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Updates sonar so that it can be used together with ADC current meter
Check if ADC current meter is enabled in sonarInit() and change sonar pins to pwm 5 and 6 if it is. Same as when RX_PARALLEL is enabled.
This commit is contained in:
parent
6e8d081c45
commit
b83b9040f9
4 changed files with 10 additions and 9 deletions
|
@ -16,8 +16,9 @@
|
|||
*/
|
||||
|
||||
#pragma once
|
||||
#include "sensors/battery.h"
|
||||
|
||||
void sonarInit(void);
|
||||
void sonarInit(batteryConfig_t *batteryConfig);
|
||||
void sonarUpdate(void);
|
||||
|
||||
int32_t sonarRead(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue