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
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
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
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
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
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
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
Dominic Clifton
d0d53ac95f
NAZE32PRO - Update timer configuration. Work in progress.
2014-06-02 13:09:58 +01:00
Dominic Clifton
e828dec9d0
STM32F30x - Ensure static constructors are called.
2014-06-02 02:24:33 +01:00
Dominic Clifton
3f8a6c0e20
Add VCP driver (work in progress)
2014-06-02 01:54:25 +01:00
Dominic Clifton
294f09bc91
Update F303 chip id.
2014-06-02 01:32:14 +01:00
Dominic Clifton
b91538b44d
Actually fix the editor mishap properly this time.
2014-06-01 19:36:45 +01:00
Dominic Clifton
3e0370ff09
Updating known issues.
2014-06-01 19:29:38 +01:00
Dominic Clifton
350b6a5864
Updating CLI commands for consistency.
2014-06-01 19:29:11 +01:00
Dominic Clifton
18046013a4
Decouple sticks processing code from main mw loops.
...
Decouple led ring driver from non-driver code.
2014-06-01 18:36:33 +01:00
Dominic Clifton
fd0b7cdf80
Remove unused vario feature and option. Move warning led code into
...
statusindicator.c/h
2014-06-01 17:20:01 +01:00
Dominic Clifton
4b437e8e08
Relocate battery code to sensors directory.
2014-06-01 16:58:16 +01:00
Dominic Clifton
3f7960849a
Merge remote-tracking branch 'multiwii/master'
...
Conflicts:
obj/baseflight.hex
src/main/io/serial_msp.c
src/mw.c
src/mw.h
2014-06-01 16:54:54 +01:00
Dominic Clifton
83d4e1e3fa
Refactor FrSky GPS coordinate to use a structure since the two arguments
...
are always used together.
This also improves code readability by replacing tmp1/tmp2 with a well
named variable.
2014-05-31 23:18:07 +01:00
Dominic Clifton
b5f2a007d0
Merge branch 'master' of github.com:Crashpilot1000/cleanflight into Crashpilot1000-master
2014-05-31 23:09:51 +01:00
Dominic Clifton
14448f4734
Merge branch 'naze32pro' - work in progress
...
Conflicts:
Makefile
2014-05-31 22:50:05 +01:00
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