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
f8a1ca55fc
Updating todo list.
2014-07-16 01:37:16 +01:00
Dominic Clifton
6ea447b777
Update LED documentation to reflect the current implementation.
2014-07-16 01:36:51 +01:00
Dominic Clifton
bca37a163e
Latest binary with i-term zeroing fix.
2014-07-16 01:27:47 +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
95ef639b84
Deleting compiler output file that should not have been committed.
2014-07-01 18:53:02 +01:00
Dominic Clifton
623da881bc
Removed apparently unneeded PRECIOUS statement (OSX).
...
Output files were being left in the working directory.
Build needs to be tested on cygwin, if it fails find a different
solution or revert this commit.
2014-07-01 18:52:11 +01:00
Dominic Clifton
364ada8110
Keep .s files so that compiler output can be easily verified.
2014-07-01 18:50:26 +01:00
Dominic Clifton
54b702eb83
Latest binary, flight tested.
2014-06-30 21:43:35 +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
d2ff7550ac
Merge remote-tracking branch 'multiwii/master'
2014-06-19 00:08:37 +01:00
Dominic Clifton
f96bdf0965
remove unnecessary variable. unroll loop for better code size.
2014-06-18 23:44:35 +01:00
dongie
f22c09630c
Merge pull request #123 from treymarc/patch-9
...
unroll loop for better code size
2014-06-12 11:03:37 +09:00
dongie
009fe86833
Merge pull request #122 from treymarc/patch-7
...
remove unnecessary variable
2014-06-12 10:50:57 +09:00