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

18780 commits

Author SHA1 Message Date
Dominic Clifton
da52b2d67c Hack WS2811 led strip. Proof-of-concept. 2014-06-08 12:58:18 +01:00
Dominic Clifton
ad1b7dd216 Update Olimexo to support a 10DOF board.
Sensors on it are: MPU6050 HMC5883L BMP085.

BMP085 not connected to GPIO pins.
2014-06-08 12:57:30 +01:00
Dominic Clifton
e17048a2f6 Merge remote-tracking branch 'multiwii/master' 2014-06-08 10:37:30 +01:00
luggi
432c43bab7 yaw improvement
this should stop the copter from carrying on spinning at high yaw rates.

Conflicts:
	src/mw.c
2014-06-08 10:34:00 +01:00
Trey Marc
d6545efa10 do not include serial nor telemetry handler in cycletime calculation
Conflicts:
	src/mw.c
2014-06-08 10:28:03 +01:00
Dominic Clifton
bb356057fc Ensure battery cell detection happens after everything has powered up.
Previously, on the OLIMEXINO at least, initial readings are lower than
normal readings and that meant that the battery warning voltage was
incorrectly set.
2014-06-08 03:03:24 +01:00
dongie
e35c92b0da Merge pull request #120 from luggi/yaw
yaw improvement
2014-06-08 08:44:32 +09:00
Dominic Clifton
a8874dc499 Prevent the first 8 usages of updateBatteryVoltage/vbat from being
incorrect due to insufficient samples being taken.

Reduce the amount of samples from 32 to 8 but increase the delay between
samples.
2014-06-07 23:50:55 +01:00
Dominic Clifton
7505b53bdc Remove old FIXMEs from light_ledring.c 2014-06-07 16:56:12 +01:00
Dominic Clifton
fd9d58110b Disable unused LED ring code.
Although it was compiled in for the NAZE target the ledringDetect()
method is never called.  Removing the feature for now too.
2014-06-07 16:53:25 +01:00
Dominic Clifton
0d3353c080 Update Olimexino shield notes. 2014-06-07 16:45:32 +01:00
luggi
20b7a9fbfb yaw improvement
this should stop the copter from carrying on spinning at high yaw rates.
2014-06-07 15:32:08 +02:00
dongie
51e7c71bb0 Merge pull request #119 from treymarc/patch-3
remove heading duplicate declaration
2014-06-07 14:30:18 +09:00
Trey Marc
e487fe2488 remove heading duplicate declaration
extern int16_t heading; duplicate declaration line 363
2014-06-07 07:26:15 +02:00
Dominic Clifton
1020e5f6de Updating readme. 2014-06-07 03:01:58 +01:00
Dominic Clifton
0b9c326ffe Complete decoupling of imu code from config.
The giant list of unrelated includes is now gone and the dependencies
are now clear.
2014-06-07 02:44:06 +01:00
Dominic Clifton
deda79cb14 Update unit tests to reflect new location of battery.c/h 2014-06-07 02:39:38 +01:00
Dominic Clifton
5f18926a79 Add missing include statement from
ab0296c991
2014-06-07 02:30:18 +01:00
Dominic Clifton
2bbbf9937d Decoupling imu from config - acc_unarmedcal. 2014-06-07 02:27:07 +01:00
Dominic Clifton
5f4a464f50 Updating basflight migration instructions. 2014-06-06 21:42:28 +01:00
Dominic Clifton
3643c08475 Decoupling imu from config - acc deadband. 2014-06-06 21:37:41 +01:00
Dominic Clifton
51eee3d62c Decoupling imu from config - barometer config. 2014-06-06 20:59:59 +01:00
Dominic Clifton
82bb6b7982 Decoupling imu from config - pid profile. 2014-06-06 20:45:59 +01:00
Dominic Clifton
da73be1b2d Start decoupling imu from config. 2014-06-06 20:40:00 +01:00
Dominic Clifton
9b6e8feeea Ensure that Lux's pid controller observes the max_angle_inclination
setting.
2014-06-06 20:40:00 +01:00
Dominic Clifton
ab0296c991 Fix bug that prevented throttle angle correction working correctly when
using different values in different.

The cause was the IMU init code which triggered calculation was never
called after switching profiles - it couldn't be called twice because it
also initialised the compass.

The solution was to decouple compass initialisation from IMU
initialisation and extract the code to recalculate throttle angle scale
to a new method.
2014-06-06 20:39:59 +01:00
Dominic Clifton
64a43c77ca Use the enum type for navigationMode_e in the GPS code. 2014-06-06 19:54:52 +01:00
dongie
f4a08baac3 Merge pull request #118 from treymarc/patch-2
Update mw.c
2014-06-06 19:54:26 +09:00
Trey Marc
ea3f4cc3e4 Update mw.c
do not include serial nor telemetry handler in cycletime calculation
2014-06-06 12:53:31 +02:00
Dominic Clifton
877e849093 Latest binary. 2014-06-05 09:46:23 +01:00
Dominic Clifton
f8bdc79a9f Fix CLI bug where incorrect variables would be set when similarly named
variables are used.

Previously the following was broken:

set option = 1
set option_extra = 2

Instead of setting 'option_extra' to two 'option' was set to 2 if
'option' appeared before 'option_extra' in the list of settings.
2014-06-05 09:27:41 +01:00
Dominic Clifton
e867af8c4b Correct project name in GPL notices. 2014-06-05 00:47:47 +01:00
Dominic Clifton
fab23debe8 Removing old FIXME comment from uartPort_t now that the structure it was
previously referring to has been cleaned up.
2014-06-04 23:02:03 +01:00
Dominic Clifton
63e16494bb Fix long-standing bug which prevented using UBLOX gps via DMA.
This was noticed when updating the UBLOX code in a commit from a couple
of days ago and Dilbert66 from #cleanflight tracked it down.
2014-06-04 23:00:31 +01:00
Dominic Clifton
6a72b86ccf Adding a GPL license notice to config.c. 2014-06-04 20:12:47 +01:00
Dominic Clifton
d718f5b9d6 Support configuring AUX 5 to 8.
The MSP is changed in a way that might provide some backwards
compatibility.  The first 4 channels are sent/read as before followed by
the next 4 channels.

If I client ignores extra data received it should be backwards
compatible.

Clients can looks for the new capability bit which indicates the MSP
protocol supports AUX 1-8.
2014-06-04 19:50:12 +01:00
Dominic Clifton
68f428d73a Merge remote-tracking branch 'multiwii/master' 2014-06-04 16:49:58 +01:00
Dominic Clifton
0bbcd6570f Updated source files to include the GPL v3 notices. Include a copy of
the GPL v3.
2014-06-04 16:48:23 +01:00
Dominic Clifton
32622da0ab Continuation of extracting peripheral configuration into drivers. 2014-06-04 14:53:34 +01:00
Dominic Clifton
78ca635d26 Comment cleanup in F3 uart driver 2014-06-04 11:18:44 +01:00
Dominic Clifton
16528cf0d9 Move some clock initialisation code into the drivers. 2014-06-04 11:14:13 +01:00
dongie
d25564e26b Update README.md 2014-06-04 15:09:15 +09:00
Dominic Clifton
b07a284f4e Latest binaries. 2014-06-03 18:04:09 +01:00
Dominic Clifton
fabd376f41 Allow GPS SBAS mode to be configurable.
It was noticed that GPS startup time increased when the change was made
from using EGNOS by default to using AUTO by default.

The default is still AUTO but faster GPS startup times may be achieved
by telling the GPS receiver what region you are in.

This also removes more unfinished MTK gps provider support.
2014-06-03 13:38:41 +01:00
Dominic Clifton
09a1739ce6 Separate UBLOX GPS SBAS configuration from GPS init.
Extracted NMEA and UBLOX code from the GPS hardware init method into
separate methods.  Introduced a state for changing baud rate rather than
re-using state_position.
2014-06-03 13:09:45 +01:00
Dominic Clifton
0dc476a999 Allow all buad rates via VCP since baud rate doesn't matter for VCP. 2014-06-03 13:05:18 +01:00
Dominic Clifton
8f2da892a6 Extract led and buzzer hardware initialisation from system.c. 2014-06-02 19:57:49 +01:00
Dominic Clifton
d407a4d15e Start to break up drv/system.c to avoid #ifdef. 2014-06-02 18:43:47 +01:00
Dominic Clifton
c7cd7adee9 Move #ifdef'd code from platform.h into target.h for each target. 2014-06-02 18:36:31 +01:00
Dominic Clifton
7f027e7e24 Update makefile to use target specific files.
This is an alternative to #ifdef's everywhere which is getting out of
hand.

Confirmed that the VCP is working on the STM32F3Discovery board and
ChebuzzF3 variant.
2014-06-02 18:13:28 +01:00