Dominic Clifton
45d9678a39
Use adjustment index rather than function to track state.
2014-10-24 15:10:28 +01:00
Dominic Clifton
02c93f1c1a
Fix rc_controls_unittest to use midrc.
2014-10-24 14:57:46 +01:00
Dominic Clifton
6d7035819f
First cut of allowing a 3POS switch on AUX3 to change rc rate.
...
rcRate is decreased when low, increased when HIGH and no change when the
switch is in the middle.
The rcRate ticks up/down at 0.01 every 500ms if the switch is left on.
If using a momentary switch and if you can toggle the switch between
middle and low or middle and high more frequently than 500ms then the
rate will be increased accordingly. Similar to how a keyboard repeat
behaves.
2014-10-22 23:10:40 +01:00
Dominic Clifton
cfcd4792bb
Determine with an aux range is used to arm.
2014-10-12 21:02:45 +01:00
Dominic Clifton
b43fa247de
Handle channel boundaries better.
...
More efficient, less code, easier to understand.
2014-10-12 18:31:59 +01:00
Dominic Clifton
2369a63df0
First cut of code that passed the unit tests for mod activations,
...
however it uses / operations and doesn't handle the case where the
channel value is on the boundary between two ranges.
2014-10-12 18:15:44 +01:00
Dominic Clifton
107a3425cf
Updating unit test to verify expected values with the new maximum
...
vbatscale value. See #104 .
2014-10-07 21:12:04 +01:00
Dominic Clifton
2f2e1a8d42
Update LEDSTRIP unit test.
...
The recently added throttle mode broke compilation of it.
2014-09-20 01:01:20 +01:00
Dominic Clifton
e847a6347d
Improve speed of LED STRIP code.
...
Shaved about 150us each strip update.
This commit leaves in some timing trace code for the CC3D target, the
results of which can be seen in the debug variables for the sections
being timed.
A later commit will remove/disable the timing code.
2014-09-20 01:00:13 +01:00
Dominic Clifton
72eac8048a
Allow colors to be configurable via the cli.
...
color x h,s,v
x = 0-15
h = 0-359
s = 0-255
v = 0-255
2014-09-19 00:08:40 +01:00
Dominic Clifton
4b06592ce7
Update ledstrip unit test.
2014-09-18 23:04:58 +01:00
Dominic Clifton
d60183d91d
Normalize all the line endings
2014-09-15 23:40:17 +01:00
Dominic Clifton
a287f9247d
Allow led strip to show failsafe state. Closes #76 .
2014-09-15 23:24:08 +01:00
Dominic Clifton
6ce5736990
Update LED strip code to allow configurable LED strips.
...
See documentation for details.
2014-09-15 03:15:11 +01:00
Dominic Clifton
5a36db26c9
Fix bug where aux configuration for channels 5-8 were ignored.
...
The bug was introduced by a recent refactor which was in error.
Fixed using TDD by first creating a failing unit test and then fixing
the code.
2014-09-06 00:28:48 +01:00
Dominic Clifton
ca72890964
Adding unit test for updateRcOptions
2014-09-05 23:44:06 +01:00
Dominic Clifton
5b3d86e966
Update unit tests.
2014-09-05 22:46:33 +01:00
Dominic Clifton
9f1a0fcb4c
Cleanup line endings.
2014-07-31 23:53:34 +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
0b9c326ffe
Complete decoupling of imu code from config.
...
The giant list of unrelated includes is now gone and the dependencies
are now clear.
2014-06-07 02:44:06 +01:00
Dominic Clifton
deda79cb14
Update unit tests to reflect new location of battery.c/h
2014-06-07 02:39:38 +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