1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00
Commit graph

9 commits

Author SHA1 Message Date
Dominic Clifton
d19a5e7046 Cleanup project structure. Update unit test Makefile to place object
files in obj/test
2014-05-31 22:43:06 +01:00
Dominic Clifton
3a537d8ef9 Align F1 and F3 ADC code. 2014-05-30 15:15:29 +01:00
Dominic Clifton
e79438d930 Fix editor mishap in current meter conflict resolution.
See e6fdfd3c32
2014-05-30 11:09:41 +01:00
luggi
e6fdfd3c32 current sensor support added
also optimized the vbat code a bit

Conflicts:
	src/config.c
	src/drv_adc.c
	src/drv_adc.h
	src/mw.c
	src/mw.h
	src/sensors.c
	src/serial_cli.c
2014-05-30 10:46:14 +01:00
dongie
4e3ab221ac increased ADC sample time to 239.5 cycles (~10uS at 24MHz ADC clock). 2014-05-30 09:49:16 +01:00
Dominic Clifton
5484e5fddd Replace PWM RSSI with ADC RSSI.
The primary reason is to support the D4R-II with it's much faster PWM
frequency.  The PWM RSSI code could not keep up, and since there are no
timers free for using capture compare of PWM signals in hardware one
solution is to use the ADC at a slow sample rate.

RC2 is used as before and it expects a signal between 0 and 3.3v.  An
inline smoothing capacitor may help.

This commit also removes the cli command adc_power_channel since the
reading was never actually exposed anywhere.
2014-05-28 03:30:53 +01:00
Dominic Clifton
b957def2f3 Fix powerAdcChannel on STM32F1.
Initialisation of ADC was incorrect.
2014-05-26 17:50:33 +01:00
Dominic Clifton
4c4c7b311f STM32F103 - Fix ADC initialisation, somehow the changes got lost when
implementing the STM32F303 ADC code.  Now this is inline with the
STM32F303 initialisation.

This also deletes some redundant code due to better initialisation
sequence.
2014-05-12 14:13:23 +01:00
Dominic Clifton
4be9d953ac CHEBUZZF3 - Implement ADC driver for 3 ADC channels. Use STM32F3 linker
script so it uses the right values for RAM and FLASH size.
2014-05-12 00:17:14 +01:00