1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 07:15:18 +03:00
Commit graph

14581 commits

Author SHA1 Message Date
Dominic Clifton
582503c0e6 Delete unused pwm rssi code - rssi adc is used instead since the rate
used (8khz) by some frsky receivers is too fast to be detected using the
pwm rssi code without bogging down the cpu in interrupt handlers.
2014-08-02 01:38:09 +01:00
Dominic Clifton
58e0900d5e CC3D - fixing two unused variable compiler warnings. 2014-08-02 00:46:01 +01:00
Dominic Clifton
d762da7dac Fix build relating to inverter/pwm rssi compiler errors. 2014-08-02 00:43:39 +01:00
Dominic Clifton
25ede3e6e0 Fix PWM in RSSI - accidentally excluded when adding CJMCU support. 2014-08-02 00:43:06 +01:00
Dominic Clifton
4d9a672d9c CC3D / NAZE - Adding support for hardware controlled inverter for use by
SBUS RX.
2014-08-02 00:43:06 +01:00
Dominic Clifton
f08760634e Cleanup GPS compilation warnings from
ca746d2ff47c8eb589386045b91bbccdd76246d1
2014-08-02 00:43:06 +01:00
norem
74c3e28a12 Update gps.c
correctly verifies checksum before modifying read NMEA gps data
2014-08-01 22:54:01 +01:00
luggi
7917e44293 slow change althold now controls velocity directly
The throttle stick input now directly sets the vertical velocity
setpoint of the copter. (alt_hold_fast_change = 0)

Conflicts:

	src/imu.c
	src/mw.c
	src/mw.h
2014-08-01 22:52:08 +01:00
Dominic Clifton
ff82839f89 Fixing alt hold constraints to be 8192 instead of 8196.
The previous code before 5b1de9cce966c033ae7b01d9318161e0e40e08a8 was
using (x / 8) and then constraining using +/- 1024.  Removing the / 8 in
commit 5b1de9cce966c033ae7b01d9318161e0e40e08a8 should have meant the
new constraint values were (1024 * 8) = 8192.
2014-08-01 22:43:01 +01:00
luggi
75f94aa11b althold constants updated
baro velocity now limited to 15m/s
d-term is now smaller

Conflicts:

	src/imu.c
2014-08-01 22:39:23 +01:00
luggi
1bf806f54c make the accZ lpf used for althold configurable
set the variable accz_lpf_cutoff to the desired cutoff frequency
this can help to make althold smoother on copters with lots of
vibrations

Conflicts:

	src/cli.c
	src/config.c
	src/imu.c
	src/mw.h
2014-08-01 22:31:22 +01:00
Dominic Clifton
c53268b7be Remove out of date Keil files. 2014-08-01 22:16:23 +01:00
Dominic Clifton
ff71a32eed Update STM32F303 startup script to handle recent changes to make file.
See 941b42a269
2014-08-01 21:44:27 +01:00
Dominic Clifton
193c4db508 making timer lists const. 2014-08-01 21:17:34 +01:00
Dominic Clifton
38cbe28e0f Apply accz pt1 element fixes.
See:
f7132b9d33211a55b8bd2c92f14da59f35b715a4
b1f58bc01fcf1632b3c3947a5ed0e807c2763a30
5832e2f67fcd2ee93044b300fda37a420c595813
a5961aeda657225fa843a115a94229313db4b2db
2014-08-01 21:10:26 +01:00
Dominic Clifton
9a9ff9b1ad Cleanup various compiler warnings that were appearing since the
additional compiler flags were added.
2014-08-01 20:02:10 +01:00
Dominic Clifton
ee5211c5ad Fix merge of a753661c23c428ede8c2b72e95d3e31f6c8b894e when building for
targets that use telemetry.
2014-08-01 18:43:45 +01:00
Dominic Clifton
5451d45f5f OLIMEXINO - Fix build when LEDs not used. 2014-08-01 18:40:10 +01:00
Paul Fertser
941b42a269 Makefile: link with -nostartfiles
This saves a bit more space and a reasonable thing to do since a
custom startup is used anyway.

Build-tested only.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2014-08-01 12:28:55 +01:00
Paul Fertser
76f4f31cf3 Make code warnings-free with -pedantic
This removes a function that's no longer used, and inline specifiers
from include file (where they're useless anyway). This makes the whole
default project warnings-free with -Wall -pedantic.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2014-08-01 12:28:44 +01:00
luggi
8e8e48032d add current sensor support to frsky telemetry
this lets the naze emulate the FAS100 current sensor and also transmits
the internally calculated mAh drawn via the fuel level data.

Conflicts:
	src/main/telemetry/frsky.c

Conflicts:
	src/main/telemetry/frsky.c
2014-08-01 12:28:21 +01:00
Dominic Clifton
9cad163030 OLIMEXINO - Use I2C2. 2014-08-01 01:26:36 +01:00
Dominic Clifton
53623d4d7f Update led strip compile in/out. 2014-08-01 01:15:05 +01:00
Dominic Clifton
326a10b1dc Allow autotune to be compiled in/out. 2014-08-01 01:14:23 +01:00
Dominic Clifton
1d5ef51373 CJMCU - Add compass driver. Update I2C configuration. Use PPM and
Brushed motors by default.
2014-08-01 00:56:28 +01:00
Dominic Clifton
5e045616fa Delete remaining LED Ring code. Please use generic WS2812 LEDs instead. 2014-08-01 00:54:30 +01:00
Dominic Clifton
f59c8c3b25 NAZE - Make beeper hack Naze specific now that it's clear why the code
existed.
2014-08-01 00:53:22 +01:00
Dominic Clifton
125f6d1450 CJMCU - Allow various features to be compiled out to support. 2014-08-01 00:18:37 +01:00
Dominic Clifton
fc93be394f Merge branch 'master' into cjmcu 2014-07-31 23:54:37 +01:00
Dominic Clifton
9f1a0fcb4c Cleanup line endings. 2014-07-31 23:53:34 +01:00
Dominic Clifton
2238f535be Use smaller type for small_angle. 2014-07-31 23:51:35 +01:00
Dominic Clifton
8f473f9b20 Initial support for CJMCU target (work-in-progress, compiles but doesn't link yet) 2014-07-31 14:01:01 +01:00
Dominic Clifton
3d65e4ff96 Changes missed from last commit. 2014-07-31 13:47:46 +01:00
treymarc
9cf90fa230 smallAngle configurable, user can arm/disarm with swith in any
orientation
Conflicts:

	src/cli.c
	src/config.c
	src/imu.c
	src/mw.c
	src/mw.h
2014-07-31 00:25:24 +01:00
Dominic Clifton
3b629d58a0 GPS can now be conditionally compiled in. 2014-07-30 23:35:33 +01:00
dongie
b3a718882c updated I2C driver to allow using I2C2 or I2C1 at compile time - call i2cInit with I2CDEV_1 or _2.
Applied same to SOFT_I2C driver (but the pin config is compile-time #define)

Conflicts:

	src/board.h
	src/drv_i2c.h
	src/drv_system.c
	src/main/drivers/bus_i2c_soft.c
	src/main/drivers/bus_i2c_stm32f10x.c
2014-07-30 22:38:59 +01:00
Dominic Clifton
0ac2b51c60 Make ppm/pwm input filtering configurable. 2014-07-30 22:02:34 +01:00
Dominic Clifton
10790a7378 Fix use of incorrect preprocessor define. 2014-07-30 21:19:08 +01:00
Dominic Clifton
cbb17dae59 Dynamically determine flash size on STM32F10X_MD 2014-07-30 21:17:57 +01:00
Dominic Clifton
a39ae9929d Adjust i-term yaw zeroing.
See fe5a864 and b9e5a37.
2014-07-26 21:26:04 +01:00
Dominic Clifton
5086b46f1f Add simple LED animation when disarmed. Fixed led grid size
calculation.
2014-07-26 18:21:58 +01:00
Dominic Clifton
c9b5334f16 Fix WS2812 LED initialisation.
The timer was not being initialised correctly, it only worked by
accident due to timer configuration of other timer channels.  This
explained why TIM3 didn't work in the mapping exclusion for the CC3D and
why for the LEDs to work correctly TIM2 had to be specified so that TIM3
was actually accidentally initialised still.
2014-07-26 17:45:05 +01:00
Dominic Clifton
4e284b3e41 Calculate led grid size dynamically. 2014-07-26 16:23:26 +01:00
Dominic Clifton
960f8c11c0 Merge branch 'master' into cc3d 2014-07-26 15:14:33 +01:00
Dominic Clifton
997c427e09 CC3D - Add WS2812 Led Strip Support (on S5_OUT) 2014-07-26 14:12:05 +01:00
Dominic Clifton
4b0fed8f07 Ported OpenPilot PPM frame validation.
On the CC3D it was observed that jitters were present, this code
validates each frame.

Prior to this, on other boards (Naze32/Flip32+/Olimexino/etc) it was
observed that when using an 8 channel RX AUX5-8 would sometimes be set
due to bad PPM data.

This code fixes both issues.
2014-07-26 13:01:02 +01:00
Dominic Clifton
a5ec1355d4 CC3D - Support PPM input on IN_S1.
This required timer overflow events to be used in the calculation of PPM
channel data.

CC3D tested, other targets may be unstable as a result. Needs further
testing.
2014-07-22 21:29:00 +01:00
Dominic Clifton
440e942af4 STM32F3DISCOVERY - Fix build, MPU6000 not supported on this target yet. 2014-07-22 21:26:02 +01:00
Dominic Clifton
e56535f4f3 Fix builds on targets that do not have sonar support. 2014-07-22 21:25:03 +01:00
Dominic Clifton
1d48fdafc9 CC3D - Delete old SPI code. 2014-07-22 21:23:30 +01:00