Dominic Clifton
0ac2b51c60
Make ppm/pwm input filtering configurable.
2014-07-30 22:02:34 +01:00
Dominic Clifton
10790a7378
Fix use of incorrect preprocessor define.
2014-07-30 21:19:08 +01:00
Dominic Clifton
cbb17dae59
Dynamically determine flash size on STM32F10X_MD
2014-07-30 21:17:57 +01:00
Dominic Clifton
a39ae9929d
Adjust i-term yaw zeroing.
...
See fe5a864
and b9e5a37.
2014-07-26 21:26:04 +01:00
Dominic Clifton
5086b46f1f
Add simple LED animation when disarmed. Fixed led grid size
...
calculation.
2014-07-26 18:21:58 +01:00
Dominic Clifton
c9b5334f16
Fix WS2812 LED initialisation.
...
The timer was not being initialised correctly, it only worked by
accident due to timer configuration of other timer channels. This
explained why TIM3 didn't work in the mapping exclusion for the CC3D and
why for the LEDs to work correctly TIM2 had to be specified so that TIM3
was actually accidentally initialised still.
2014-07-26 17:45:05 +01:00
Dominic Clifton
4e284b3e41
Calculate led grid size dynamically.
2014-07-26 16:23:26 +01:00
Dominic Clifton
960f8c11c0
Merge branch 'master' into cc3d
2014-07-26 15:14:33 +01:00
Dominic Clifton
997c427e09
CC3D - Add WS2812 Led Strip Support (on S5_OUT)
2014-07-26 14:12:05 +01:00
Dominic Clifton
4b0fed8f07
Ported OpenPilot PPM frame validation.
...
On the CC3D it was observed that jitters were present, this code
validates each frame.
Prior to this, on other boards (Naze32/Flip32+/Olimexino/etc) it was
observed that when using an 8 channel RX AUX5-8 would sometimes be set
due to bad PPM data.
This code fixes both issues.
2014-07-26 13:01:02 +01:00
Dominic Clifton
a5ec1355d4
CC3D - Support PPM input on IN_S1.
...
This required timer overflow events to be used in the calculation of PPM
channel data.
CC3D tested, other targets may be unstable as a result. Needs further
testing.
2014-07-22 21:29:00 +01:00
Dominic Clifton
440e942af4
STM32F3DISCOVERY - Fix build, MPU6000 not supported on this target yet.
2014-07-22 21:26:02 +01:00
Dominic Clifton
e56535f4f3
Fix builds on targets that do not have sonar support.
2014-07-22 21:25:03 +01:00
Dominic Clifton
1d48fdafc9
CC3D - Delete old SPI code.
2014-07-22 21:23:30 +01:00
Dominic Clifton
f342560da2
CC3D - Fix builds that use l3gd20 - duplicate SPI code removed.
2014-07-22 21:21:22 +01:00
Dominic Clifton
053a28dc62
CC3D - Hack to enable a simple quad configuration using PPM input to be
...
tested.
PPM and motor outputs conflict since they use the same timers so this
just avoids conflicts.
2014-07-17 23:52:49 +01:00
Dominic Clifton
668e8f1298
CC3D - Disable I2C for now.
2014-07-17 23:50:14 +01:00
Dominic Clifton
79e1b3683f
Replace tab with space.
2014-07-17 23:49:55 +01:00
Dominic Clifton
5f16cfb72a
CC3D - Support MPU6000 Gyro/Acc and SPI 1/2.
2014-07-17 22:12:21 +01:00
Dominic Clifton
fe5a864a85
i-term zeroing fixed
...
http://www.multiwii.com/forum/viewtopic.php?p=53441#p53402
2014-07-16 01:26:58 +01:00
Dominic Clifton
1fb75890d5
Initial OpenPilot CC3D commit.
2014-07-16 01:06:09 +01:00
treymarc
ae0f842266
rename/removed global var sonarAngle to tiltAngle , fix spaces/lines
...
Conflicts:
src/imu.c
src/main/drivers/sonar_hcsr04.c
2014-07-15 14:12:28 +01:00
treymarc
5253064b46
sonar althold
...
Conflicts:
src/imu.c
2014-07-14 14:17:04 +01:00
Dominic Clifton
f5baefea5b
Adding debug declaration to allow imu unit tests to compile.
2014-07-08 13:27:49 +01:00
Dominic Clifton
0f47c7e2be
Merge branch 'ledupdate'
2014-07-02 23:51:59 +01:00
Dominic Clifton
21c8fdc69b
Update led config so it's possible to show which LEDs show the arm
...
state. Mutually exclusive with leds that show MODE.
Use blue to indicate armed, green for disarmed.
Leds not configured for ARM_STATE or MODE will be off by default.
The example combines corner LEDs with ARM_STATE and INDICATOR. This
results in the corner leds showing arm state and then being overridden
with an indicator color as needed.
2014-07-02 23:50:39 +01:00
Dominic Clifton
3ce33f0455
Update battery warning and turn indicators to use led config.
...
Cleaned up the battery warning checking as it was being calculated twice
instead of just once per battery warning state cycle.
Updated the code so that modes are shown when disarmed. Any led's
without the MODE flag will then show the armed state. In the config in
this commit that results in the corner LEDs being GREEN when disarmed
and OFF when armed.
2014-07-02 23:38:19 +01:00
Dominic Clifton
36990951df
Adding code to change led colors based on mode and armed state.
2014-07-02 21:53:50 +01:00
Dominic Clifton
de04acd7e1
First cut of programmatically orientation lights using an LED strip
...
configuration that defines each LED's functions, orientation and
position in a grid.
2014-07-02 20:40:26 +01:00
Dominic Clifton
af87cff18f
Fix debug output of alt-hold data, accSum was reset prior to output.
2014-07-02 18:51:27 +01:00
Dominic Clifton
af2f9a2655
Work-in-progress
2014-07-02 08:58:10 +01:00
Dominic Clifton
596ac71861
Fixing barometer related warnings when compiling without barometer
...
support.
2014-07-01 18:56:43 +01:00
Dominic Clifton
07547d35aa
Initialisation order meant that useServos was always false, the problem
...
was introduced in fd59a4cd52
.
2014-06-30 19:41:46 +01:00
Dominic Clifton
b364a0ea31
Fix initialisation of useUart2 when Parallel PWM is used. Additionally
...
we now ensure that pwm_params is initialized before use.
2014-06-30 00:22:44 +01:00
Dominic Clifton
2150fb4a08
Fixing missed multiwii scale factor accidentally removed from
...
432c43bab7
during merge.
2014-06-26 00:40:19 +01:00
Dominic Clifton
668772f1f3
Explicitly use float literals in velocity calculation.
2014-06-24 00:30:58 +01:00
Dominic Clifton
f127847bf2
Some baro cleanups to avoid using or exposing incomplete and
...
uninitialised baro data.
imu code size reduction (treym)
2014-06-24 00:14:30 +01:00
Dominic Clifton
2413130c0f
Prevent bad data being used during early system startup.
2014-06-23 22:08:29 +01:00
Dominic Clifton
e30a373c92
Disable ADC debug output and enable AltHold debugging output.
2014-06-23 22:06:17 +01:00
Dominic Clifton
91bfdf05ca
Move mw loop() code into separate methods. Cleanup related code.
...
If a given feature or mode is off the next task is not processed in the
current loop but will be processed during the next loop iteration for
simplification, this allowed the cleanup of return values in other code.
2014-06-23 00:47:45 +01:00
Dominic Clifton
8d0509dbfb
Move altitude hold code into separate files.
2014-06-21 23:57:14 +01:00
Dominic Clifton
aeca17a0a9
Extract Altitude Hold code from mw main loop into methods.
2014-06-21 23:42:11 +01:00
Dominic Clifton
9afcb20b7e
Cleanup mismatch of buzzer/beeper terminology. Beep and Beeper should
...
be used from now on.
2014-06-21 23:32:58 +01:00
Dominic Clifton
bcc7f10e26
Shorten warning beeps.
2014-06-21 23:22:29 +01:00
Dominic Clifton
ed3e0769cf
Renamed alt_hold_throttle_neutral to alt_hold_deadband for consistency.
2014-06-21 22:40:30 +01:00
Dominic Clifton
f96bdf0965
remove unnecessary variable. unroll loop for better code size.
2014-06-18 23:44:35 +01:00
Dominic Clifton
fd59a4cd52
Update mixer to use servo count from results of pwm mapping.
...
Also ensure that only aux channels for which there are available servos
are used when forwarding channels.
Removed magic number usage.
2014-06-11 19:13:40 +01:00
Dominic Clifton
1730e3dfd3
Relocated led strip user code into separate file.
...
Added documentation.
Added LED_STRIP feature, can only be enabled under certain circumstances
depending on target due to pin/timer mappings - see documentation.
2014-06-09 19:11:31 +01:00
Dominic Clifton
3c09b6a8c7
STM32F30x - Support WS2811 LEDs.
2014-06-08 15:43:00 +01:00
Dominic Clifton
5a010c6b21
Remove unnecessary includes.
2014-06-08 15:43:00 +01:00