Dominic Clifton
5913266ce0
Update autotune comments, defaults and functional description. Add
...
reference to sources.
2014-05-28 20:36:53 +01:00
Dominic Clifton
7ec0df8abe
Merge branch 'master' into autotune
...
for some union members. remove type
prefix from a typedef.
Conflicts:
obj/cleanflight_OLIMEXINO.hex
src/flight_common.c
Conflicts:
obj/cleanflight_OLIMEXINO.hex
src/flight_common.c
2014-05-28 20:18:38 +01:00
Dominic Clifton
b712e8e325
Updating NAZE binary with autotune eeprom write enable.
2014-05-28 20:13:13 +01:00
Dominic Clifton
695c6a0628
Enable writing to EEPROM when using the autotune switch after landing.
2014-05-28 20:13:13 +01:00
Dominic Clifton
4a23491d49
Introduce better naming consistency for some union members. remove type
...
prefix from a typedef.
Conflicts:
obj/cleanflight_OLIMEXINO.hex
src/flight_common.c
2014-05-28 20:13:13 +01:00
Dominic Clifton
dcbb82c845
Update Development.md
2014-05-28 20:13:06 +01:00
Dominic Clifton
3b347fa839
Introduce better naming consistency for some union members. remove type
...
prefix from a typedef.
2014-05-28 19:49:42 +01:00
Dominic Clifton
bd3d853b61
Reorder code to remove not operator and improve readability.
2014-05-28 19:10:37 +01:00
Dominic Clifton
80d4f80f7d
Update Development.md
2014-05-28 15:11:29 +01:00
Dominic Clifton
d0ec7e25ce
Merge branch 'master' into autotune
...
Conflicts:
obj/cleanflight_CHEBUZZF3.hex
obj/cleanflight_NAZE.hex
obj/cleanflight_OLIMEXINO.hex
2014-05-28 13:37:40 +01:00
dongie
88036ec551
remove unnecessary averaging of PWM/PPM rc input
2014-05-28 17:30:55 +09:00
dongie
0028fa2ce4
re-enable hardware i2c; update NVIC priority to use define from CMSIS instead of magic 0x500 number
2014-05-28 17:29:06 +09:00
Dominic Clifton
342aabeb5d
Latest binaries with autotune.
2014-05-28 03:41:06 +01:00
Dominic Clifton
0acc4ff496
Latest binaries with RSSI ADC.
2014-05-28 03:32:01 +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
bc84f6d5d4
Update autotune so it now actually changes the pid values.
...
This commit also fixes a few missing const keywords after the map file
was inspected.
2014-05-27 21:20:29 +01:00
Dominic Clifton
2cf686b36b
If auto tune was used, and the user landed the aircraft, then before it
...
is used again it must be reset.
Otherwise the first flip of the switch would start the next phase which
could mean that PID settings were restored.
2014-05-27 18:11:55 +01:00
Dominic Clifton
0280e96a9a
Replace unused runtime warning beep code with autotune beep code.
2014-05-27 18:11:55 +01:00
Dominic Clifton
4c764aacf4
Autotune phase changes.
...
Add an additional phase to allow previous pid settings to be restored,
in flight, after auto tuning.
2014-05-27 18:11:55 +01:00
Dominic Clifton
f7c38af7fc
Initial commit for implementation of autotune.
2014-05-27 18:11:55 +01:00
Dominic Clifton
49c283fe59
Update Failsafe.md
...
formatting.
2014-05-27 18:11:54 +01:00
Dominic Clifton
f74a31f800
Update Failsafe.md
2014-05-27 18:11:54 +01:00
Dominic Clifton
4f5d32af36
Disable ADC debug output
2014-05-27 18:11:46 +01:00
Dominic Clifton
4c9f9093b8
Disable ADC debug output
2014-05-27 18:02:26 +01:00
Dominic Clifton
f61232de13
Update Failsafe.md
...
formatting.
2014-05-26 19:59:21 +01:00
Dominic Clifton
2bbbd05cc7
Update Failsafe.md
2014-05-26 19:54:30 +01:00
Dominic Clifton
b957def2f3
Fix powerAdcChannel on STM32F1.
...
Initialisation of ADC was incorrect.
2014-05-26 17:50:33 +01:00
Dominic Clifton
4b58dc110d
Latest binaries.
2014-05-26 13:32:21 +01:00
Dominic Clifton
57aab9ec0c
Disable HoTT debug output.
2014-05-26 13:31:27 +01:00
Dominic Clifton
5ccb0ecf36
Fix PPM support when using 8 channels on STM32F10x.
...
This was broken when 12 channel support was added in combination with
the STM32F3 support.
2014-05-26 13:31:19 +01:00
dongie
09b7268ec1
hardware divider supports up to 8S, make it so in the code as well.
2014-05-26 20:24:14 +09:00
Dominic Clifton
8f6558156f
Update HoTT GPS coordinate calculations.
...
It was broken for South/West values.
Added additional tests for maximum long/lat values.
Requires field testing to make sure values are correct on the telemetry
display.
2014-05-26 02:15:06 +01:00
Dominic Clifton
37051720fd
Updating I term for newpid to be 0.6f for a more locked-in feeling, as
...
per Lux's feedback.
2014-05-26 01:06:03 +01:00
Dominic Clifton
38d554e958
Merge branch 'master' of github.com:hydra/cleanflight
2014-05-26 01:04:15 +01:00
Dominic Clifton
17dd005047
Updating the L3GD20 scale factor and resolution based on Lux's comments
...
and feedback.
Apparently 500 is 'not enough unless you're just hovering'. 2000 is
needed.
Previously the scale factor was guessed, incorrectly.
2014-05-26 01:03:55 +01:00
Dominic Clifton
d5bb662139
Merge pull request #15 from nico-dh/master
...
adding doc for building in windows
2014-05-25 16:18:17 +01:00
Lukas S
cffdfb782c
new Baseflight PID
...
full gyro scale is used now
and a new pid with float calculations was added based on PIDrewrite
eeprom size was also increased from 1kB to 2kB
Conflicts:
src/config.c
src/drivers/accgyro_l3g4200d.c
src/drivers/accgyro_mpu3050.c
src/drivers/accgyro_mpu6050.c
src/flight_imu.c
src/mw.c
src/mw.h
src/serial_cli.c
src/serial_msp.c
src/utils.c
src/utils.h
2014-05-25 15:31:30 +01:00
grunbaum nicolas
9a085bebad
addind doc for building in windows
...
Signed-off-by: grunbaum nicolas <grunbaum@gmail.Com>
2014-05-25 15:27:58 +02:00
Dominic Clifton
1df79e65fc
Updating telemetry documentation.
2014-05-25 03:29:47 +01:00
Dominic Clifton
e40c890183
Latest binaries - Using latest GNU ARM Tools, (2014-q1). F30x targets
...
now with FPU enabled, HoTT GPS telemetry cleanups, MSP Telemetry.
2014-05-25 02:55:41 +01:00
Dominic Clifton
6dc88355b2
Updating developer docs.
2014-05-25 02:53:26 +01:00
Dominic Clifton
88254fa736
Refactor telemetry MSP.
...
BOXNAMES is repeated in case the first transmission is never received.
Each time sendMspTelemetry is called it executes one and only one
command. There was nothing wrong with the old approach which sometimes
sent more than one command each time sendMspTelemetry was called but
this is simpler and there is far less duplication.
2014-05-25 00:44:16 +01:00
Dominic Clifton
41a4f6b5e0
Merge branch 'treymarc-master-cleanflight-msptelemetry'
2014-05-25 00:33:14 +01:00
Dominic Clifton
e5c5339306
Merge branch 'master-cleanflight-msptelemetry' of github.com:treymarc/baseflight into treymarc-master-cleanflight-msptelemetry
...
Conflicts:
src/serial_msp.h
src/telemetry_common.h
2014-05-25 00:32:41 +01:00
Dominic Clifton
e087b37273
Merge pull request #14 from treymarc/fpu
...
use hardware fpu with target stm32f30x
2014-05-25 00:14:28 +01:00
treymarc
ac520b0676
usf hardware fpu with target stm32f30x
2014-05-24 20:40:12 +00:00
Dominic Clifton
10279c0178
Updated GPS logitude/latitude calculation.
...
The existing implementation that was ported over was trying to work with
different values. By writing a unit test for the code that stores
values in GPS_coord it was possible to have known values which could
then also be used to write a unit test for the HoTT telemetry which
finally enabled production code to be written.
Hopefully it will work, unable to test further since my GPS unit is
playing up.
2014-05-24 21:16:02 +01:00
Dominic Clifton
49781b5080
Updating documentation.
2014-05-24 21:04:30 +01:00
Dominic Clifton
d928404919
Updating Development docs.
2014-05-24 17:55:48 +01:00
Dominic Clifton
b0e1c934d4
Adding unit test for some gps conversion code to demystify it.
2014-05-24 17:54:57 +01:00