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
luggi
40392d06b8
fixed negative currents messing up the mAh counter
...
now there is no virtually limit for the mAh drawn counter.
The outpout is limited by the mwii serial protocol tough (~65Ah)
2014-06-01 15:38:17 +02: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
Dominic Clifton
3a537d8ef9
Align F1 and F3 ADC code.
2014-05-30 15:15:29 +01:00
Dominic Clifton
7e9db61103
Fix buzzer durations and make it so that all buzzer durations are linked
...
so they never become out of alignment with each other.
2014-05-30 15:14:42 +01:00
Dominic Clifton
08d998e9a4
Fix editor mishap in battery warning activation code.
2014-05-30 15:12:30 +01:00
dongie
3c0f0f7ed4
fixed frsky temeletry gps output to match with what is actually expected. props to KC_703 for spotting this stuff.
2014-05-30 21:37:22 +09:00
dongie
d7c77c3fe2
formatting fixes and rename one of ADC channels.
2014-05-30 19:28:46 +09:00
Dominic Clifton
0ec5c2cdca
Use debug outputs to show ADC readings.
2014-05-30 11:10:23 +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
dongie
a3476cf59c
Remove FY90Q support.
...
Conflicts:
Makefile
src/board.h
src/drivers/adc_fy90q.c
src/drivers/pwm_fy90q.c
src/drv_adc.h
src/sensors.c
src/startup/startup_stm32f10x_md_fy90q.s
2014-05-30 09:45:15 +01:00
dongie
0e80dbf025
reformat I2C driver and align comments. add timeout checking and move hardware reinit common code into separate function.
...
moved nvic priority group init into drv_system, where it belongs
Conflicts:
src/drivers/system_common.c
src/drv_i2c.c
2014-05-30 09:38:03 +01:00
dongie
31297de7fa
remove i2c driver function calls and directly read/write I2C->DR
...
Conflicts:
src/drivers/bus_i2c_stm32f10x.c
2014-05-30 09:29:43 +01:00
Dominic Clifton
4e7aa1b4b6
Merge remote-tracking branch 'origin/autotune'
2014-05-30 09:04:13 +01:00
Dominic Clifton
e083a3266d
Decreasing autotune max oscillation value since a value of 4 was found
...
to always cause P to increase.
2014-05-30 09:01:37 +01:00
luggi
5cc9750d12
current sensor support added
...
also optimized the vbat code a bit
2014-05-30 08:58:54 +02:00