mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 15:55:48 +03:00
implemented using one of RC inputs as ADC channel for power meter.
added MSP_ACC_TRIM stuff for android GUI. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@231 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
e59f639951
commit
23acf529d7
14 changed files with 3007 additions and 2936 deletions
|
@ -1,7 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
void adcInit(void);
|
||||
uint16_t adcGetBattery(void);
|
||||
#define ADC_BATTERY 0
|
||||
#define ADC_CURRENT 1
|
||||
|
||||
typedef struct drv_adc_config_t {
|
||||
uint8_t powerAdcChannel; // which channel used for current monitor, allowed PA1, PB1 (ADC_Channel_1, ADC_Channel_9)
|
||||
} drv_adc_config_t;
|
||||
|
||||
|
||||
void adcInit(drv_adc_config_t *init);
|
||||
uint16_t adcGetChannel(uint8_t channel);
|
||||
#ifdef FY90Q
|
||||
void adcSensorInit(sensor_t *acc, sensor_t *gyro);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue