Martin Budden
9059254db6
Minor tidy of sensor code
2016-06-29 15:17:49 +01:00
Martin Budden
d069945f89
Improved gyroSetCalibrationCycles parameters.
2016-06-26 21:43:04 +01:00
Martin Budden
75237dd209
Fixed up gyro init.
2016-06-26 16:15:06 +01:00
Martin Budden
4d238b27d5
Moved targetLooptime into gyro_t, tidied gyro_sync and gyro
2016-06-26 16:15:06 +01:00
blckmn
d779daad2d
Fixed array out of bounds issue - not all set.
2016-06-26 08:59:32 +10:00
borisbstyle
3d9b180b33
Fix Configurator Pid Controller Reset // Fix luxfloat no filter bug // Defaults for Version 2.9.0
2016-06-26 00:30:45 +02:00
borisbstyle
f3f7827c33
Apply gyro zero before filtering // Fix Luxfloat Drift
2016-05-16 21:26:06 +02:00
rav-rav
f62ec043cf
fix error in biquad coefficients calculation
...
improve biquad precision and performance by using direct form 2 transposed instead of direct form 1
keep float results for luxfloat pid controller, instead of casting twice
2016-05-04 22:44:33 +02:00
borisbstyle
03cc5fa438
Function for calculating calibration cycles
2016-03-09 22:31:16 +01:00
borisbstyle
1187c575ed
Gyro Calibration scaled to looptime setting
2016-03-08 22:52:55 +01:00
borisbstyle
f30a188937
Add selectable debug options
2016-02-26 00:22:08 +01:00
borisbstyle
974274b748
cleanup code
2016-02-17 14:57:42 +01:00
borisbstyle
881a448255
Convert gyroADC and accADC to int32_t
2016-02-14 22:03:19 +01:00
borisbstyle
eebacc2542
Refactor BiQuad // Set filters to floats
2016-02-03 13:46:56 +01:00
borisbstyle
a105af1225
Filter Cleanup CF coding style// Remove Old pt1 for acc etc // F1 slower acc update
2016-01-18 00:51:20 +01:00
borisbstyle
1dddd65e67
BiQuad Cleanup Code
2016-01-14 16:18:35 +01:00
borisbstyle
93d917af3b
Configurable Soft LPF values (gyro_lpf_hz and dterm_lpf_hz)
2016-01-14 14:34:46 +01:00
borisbstyle
56098a63ca
Full Filter Rework FIR replaced by BiQuad
2016-01-12 01:47:09 +01:00
borisbstyle
2ee55ece3c
D filter rewrite to FIR
2016-01-10 03:38:57 +01:00
borisbstyle
a3fe45d774
2khz Support Added
2015-12-24 00:47:45 +01:00
borisbstyle
8f0d7de791
Simplify filters
2015-12-10 21:43:59 +01:00
borisbstyle
6f4d741cd0
Remove filter unnecessery code // Simplify selection
2015-12-10 21:43:58 +01:00
borisbstyle
054868e0a4
Gyro Soft LPF Rework // Filter rework
...
remove 3 point average
lux optimize
2015-11-24 15:23:29 +01:00
borisbstyle
d076a60eb5
Cleanup // Reorganisation
2015-10-22 17:27:26 +02:00
Dominic Clifton
c6f5b98a79
Improve failure LED status flashing. Now users can identify and report
...
hardware failures by counting the number of long flashes.
Fix up sensor read API so that code that uses sensors can detect
malfunctions.
If a failure mode occurs in a debug mode the code reboots the system
rather than rebooting to the bootloader.
2015-09-12 01:33:19 +01:00
Dominic Clifton
e6733b4dfc
Cleanup status indicator code.
...
This primarily is to avaoid stalling the main loop when beeping and
flashing.
This is needed because oneshot ESCs do not receive updates when the main
loop is stalled.
Additionally the beeper code for sticks held in disarm position is
changed since it also clashed with profile selection. Now profile
selections can be seen and heard clearly.
Other subsections of the system that changed the LED0 state while the
main loop is running have been updated to use the status indicator API
instead of blindly hitting the hardware which previously caused lots of
odd LED flashing behaviour - now it is consistent.
2015-05-29 23:37:33 +01:00
Dominic Clifton
55cac2bdeb
Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
...
Relocate more code.
2015-02-01 00:39:38 +01:00
Dominic Clifton
8cc9e8ca37
More relocation of variables.
2015-02-01 00:03:46 +01:00
Dominic Clifton
01b2ce0b36
IMU naming cleanup.
2015-01-31 22:23:38 +01:00
Dominic Clifton
183c5f8e16
Add MPU9150 mag support and mag autodetection. Add AK8975 mag driver.
...
Note: not working on the sparky, MPU9150 needs passthough enabling but
when enabled the mag and gyro won't ack on the default addresses. Needs
further investigation.
2014-12-21 23:40:48 +00:00
Dominic Clifton
fed6df275f
Add MPU9150 driver.
...
This is a almost a complete clone of the 6050 - needs cleanup and
de-duplication.
2014-12-09 03:12:37 +00:00
Pierre-A
d545ab545f
Remove profanity from comments (issue #43 )
2014-11-02 14:53:57 +01:00
Dominic Clifton
d60183d91d
Normalize all the line endings
2014-09-15 23:40:17 +01:00
Dominic Clifton
e867af8c4b
Correct project name in GPL notices.
2014-06-05 00:47:47 +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
d19a5e7046
Cleanup project structure. Update unit test Makefile to place object
...
files in obj/test
2014-05-31 22:43:06 +01:00