Dominic Clifton
8f196420ca
Fix unit test compiler warnings on rc_controls_unittest
2014-11-01 10:50:30 +00:00
Dominic Clifton
715c175aad
Add basic MPU6000 auto detection code. De-duplictate repeated code in
...
MPU6000.
2014-11-01 10:45:44 +00:00
Dominic Clifton
0ba2933611
Add MSP_SET_ADJUSTMENT_RANGE and MSP_ADJUSTMENT_RANGES commands.
2014-11-01 10:24:32 +00:00
Dominic Clifton
ec92a8e6ba
Avoid unused variable warning for targets with no beeper.
2014-11-01 09:15:33 +00:00
Dominic Clifton
00e0bf806a
Adding a compile to option to allow users to compile with serial port 1
...
and 2 defaults switched.
This is helpful if you fry a serial port.
Compile with `OPTIONS=SWAP_SERIAL_PORT_1_AND_2_DEFAULTS`.
2014-10-31 21:00:53 +00:00
Pierre-A
3592429ed5
RSSI_ADC configurable scale in CLI
2014-10-30 21:29:56 +01:00
Dominic Clifton
84384e61af
Ensure control rate profiles get initialised correctly.
2014-10-30 00:22:37 +00:00
Dominic Clifton
00ca237886
Rename default_rateProfile_index to defaultRateProfileIndex.
2014-10-29 23:56:28 +00:00
Dominic Clifton
ef7f5321da
Add Profile OLED display page that shows the current profile and rate
...
profile.
2014-10-29 23:55:12 +00:00
Dominic Clifton
28f9fa629c
Add rate profiles and inflight switching between them. See Profiles and
...
Inflight Adjustment documentation for details.
2014-10-29 23:36:34 +00:00
Dominic Clifton
cac814923c
Update RC Controls so that functions with different modes can be
...
applied. The existing modes are 'step'. A new mode is 'select'.
The other unit tests need fixing up so that appropriate code is compiled
as C and not C++ code.
2014-10-29 20:52:44 +00:00
Dominic Clifton
8f80f86bc9
Reduce serial port memory usage.
...
The largest MSP command is 160 bytes.
2014-10-29 19:18:51 +00:00
Dominic Clifton
45218357fa
Narrow LED strip indicator deadband so that indicators are displayed for
...
smaller pitch/roll input movements.
2014-10-29 01:05:01 +00:00
Dominic Clifton
d76a414985
Ensure each serial port has enough buffer space to write out the largest
...
MSP response.
2014-10-29 00:52:00 +00:00
Dominic Clifton
3d7455d557
Fixed magAlign, reconfigureAlignment was being called before mag
...
detection. Closes #101 .
2014-10-28 16:09:44 +00:00
Dominic Clifton
a65a937313
STM32F3 - Fix uartReconfigure. Closes #125 .
2014-10-28 15:55:07 +00:00
Dominic Clifton
c06fd78b83
Fix being unable to change port function of serial port during runtime.
...
Closes #144 .
Thanks @frank26080115
2014-10-28 15:49:02 +00:00
Dominic Clifton
3f59f6ed8d
Change the default scenario for serial port 2 to be 'UNUSED'. Fixes
...
#145 .
2014-10-28 15:46:38 +00:00
Dominic Clifton
940552beb1
Fix incorrect CALL_COUNT_ITEM_COUNT value in rc_controls_unittest
...
preventing compilation via clang.
2014-10-28 15:45:03 +00:00
Dominic Clifton
e983c124c3
update rc_controls_unittest so it compiles and passes again.
2014-10-24 23:15:10 +01:00
Dominic Clifton
8aeee0b5fd
Merge branch 'inflight-adjustments'
2014-10-24 23:12:45 +01:00
Dominic Clifton
2df976409d
Allow inflight adjustment of pitch/roll (linked) and yaw PID settings.
2014-10-24 23:10:17 +01:00
Dominic Clifton
7548154d25
Allow saving of config when disarmed by using THR_LO + YAW_LO + PIT_LO +
...
ROL_HI.
2014-10-24 22:39:40 +01:00
Dominic Clifton
247d35ec85
Avoid warning when target does not use beeper.
2014-10-24 22:26:10 +01:00
Dominic Clifton
4a90599e3a
Allow inflight adjustment of throttle expo.
2014-10-24 22:16:49 +01:00
Dominic Clifton
f166ca3516
Allow inflight adjustment of yaw rate.
2014-10-24 22:01:31 +01:00
Dominic Clifton
9ddbb4ed9d
Allow inflight adjustment of rc_expo.
2014-10-24 21:58:30 +01:00
Dominic Clifton
81e3425326
Allow inflight adjustment of pitch/roll rate.
2014-10-24 21:52:12 +01:00
Dominic Clifton
a406cb6f96
reorder aux/adjrange commands, commands must be alphabetically sorted
...
due to the command-lookup code.
2014-10-24 21:30:12 +01:00
Dominic Clifton
066c814a8a
Update adjrange
command to take an 'adjustment index/slot'. Apply
...
adjustment ranges to adjustment slots when channel is within range.
example:
```
adjrange 0 0 0 900 1700 0 2
adjrange 1 0 0 1700 2100 1 2
```
explained:
* configure adjrange 0 to use adjustment slot 1 (0) so that when aux1
(0) in the range 900-1700 then do nothing when aux 3 (2) is in any
position.
* configure adjrange 1 to use adjustment slot 1 (0) so that when aux1
(0) in the range 1700-2100 then do use adjustment 1 (rc rate) when aux 3
(2) is in the appropriate position.
Without the entire range of aux1 being defined there is nothing that
would stop aux 3 adjusting the rc rate once aux 1 wasn't in the higher
range.
There are 4 adjustment slots and 12 adjustment ranges.
Adjustment slots and adjustment ranges can use the same aux channel.
e.g.
`adjrange 2 1 0 900 2100 1 3`
* configure adjrange 2 to use adjustment slot 2 (1) so that when aux4
(3) in the range 900-2100 then use adjustment 1 (rc rate) when aux 4 (3)
is in the appropriate position.
2014-10-24 20:49:00 +01:00
Dominic Clifton
bd39445be8
Add cli command to configure adjustment ranges.
...
e.g. `adjrange 0 0 1700 2100 1 2`
set adjustment range 0, which applies to aux channel 0 (aux1) when range
is between 1700 and 2100 then apply function 1 (rc rate) to aux channel
2 (aux3)
2014-10-24 19:51:40 +01:00
Dominic Clifton
18abad5dd7
Extract range definition so it can be reused.
2014-10-24 18:57:06 +01:00
Dominic Clifton
b2db6b3b80
Beep when adjustments are made. (very short = adjust downwards, short =
...
adjust upwards).
2014-10-24 18:48:55 +01:00
Dominic Clifton
a92b148557
update some comment typos in sensors/acceleration.c
2014-10-24 18:35:59 +01:00
Dominic Clifton
a2a9443045
Seperate adjustment configuration from adjustment state. Rename 'step'
...
parameter to 'delta' applying the adjustment. Configure adjustment
states based on adjustment configuration for AUX3 and AUX4.
2014-10-24 15:46:07 +01:00
Dominic Clifton
45d9678a39
Use adjustment index rather than function to track state.
2014-10-24 15:10:28 +01:00
Dominic Clifton
e21f0667c5
Update adjustmentConfig to include the adjustment timeout.
2014-10-24 14:58:41 +01:00
Dominic Clifton
02c93f1c1a
Fix rc_controls_unittest to use midrc.
2014-10-24 14:57:46 +01:00
Dominic Clifton
6db86da975
Re-instate the original softserial workaround.
...
This will be investigated further after the softserial changes are
merged in.
2014-10-24 08:48:37 +01:00
Dominic Clifton
9f41f9aba4
Merge pull request #128 from Pierre-A/cc3d-updates-1
...
Current monitoring on CC3D
2014-10-24 08:42:57 +01:00
Dominic Clifton
4c2802545f
Merge pull request #133 from ledvinap/feature-nvic
...
Feature nvic
2014-10-24 08:37:49 +01:00
Dominic Clifton
a3af8284dc
Update target identifier for MassiveF3.
...
Target identifiers should 4 characters long.
2014-10-24 08:32:23 +01:00
Dominic Clifton
51574338e8
Merge pull request #132 from ledvinap/bugfix-targets
...
quick fix
2014-10-24 08:30:14 +01:00
Petr Ledvina
e686b4504e
Centralized NVIC priorities
...
- NVIC priorities are moved to separate file, all values are replaced wit symbolic names. Priorities should be the same.
- tiny change in DMA initialization
2014-10-23 16:48:35 +02:00
Petr Ledvina
1604f856b8
Merge branch 'bugfix-targets' into feature-nvic
2014-10-23 16:38:01 +02:00
Petr Ledvina
e58afe9d64
quick fix
...
it is impossible to build some targets. This is quick fix to get it working again
2014-10-23 16:32:16 +02:00
Petr Ledvina
e179218caf
Trivial changes
...
- use inline functions for gpio (typesafe, no speed penalty)
- fix sortSerialPortFunctions (original was IMO broken)
- allow softserial port on sonar pin when FEATURE_SONAR is not enabled
- minor style changes and comments
2014-10-23 15:08:57 +02:00
Dominic Clifton
b0b83b31db
Make the adjustment controls more sensitive by using a smaller 3POS
...
switch deadzone.
2014-10-22 23:20:59 +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
Pierre-A
d0ec471d03
Current monitoring on CC3D
2014-10-21 20:30:40 +02:00