Dominic Clifton
903392b883
Updating comment.
2014-11-06 19:52:10 +00:00
Dominic Clifton
59698c5a37
Merge branch 'naze-updates-pb' of github.com:Pierre-A/Cleanflight into Pierre-A-naze-updates-pb
2014-11-06 19:44:39 +00:00
Dominic Clifton
feb4be43d4
Merge pull request #150 from Pierre-A/naze-updates-pa
...
RSSI_ADC configurable scale in CLI
2014-11-06 20:43:16 +01:00
Petr Ledvina
8d22a85222
Fixed some whitespace around operators
...
one compiller warning about possible uninitialized variable supressed
2014-11-06 17:36:40 +01:00
Dominic Clifton
30c550b83d
CC3D - Support 4 PWM inputs and 4 PWM outputs.
...
Avoid timer clashes on CC3D when using Parallel PWM input.
More work needs to be done on the PWM RX/Output code to negate timer
clashes.
2014-11-05 22:32:44 +00:00
Dominic Clifton
2d119cba78
Fix softserial/pwm timer clash caused by typo in preprocessor defines.
...
See 91c7407806
Fixes #143 .
2014-11-05 21:05:57 +00:00
Dominic Clifton
db36cfe12e
Fix arm/disarm/arm bug when using shared msp/telemetry ports.
...
All msp ports are now re-initialised when disarming.
Bug wa introduced by c06fd78b83
- see
#144 .
Runtime serial port scenario should not have been erased.
Fixes #144 and #155 . Cleanup #125 .
2014-11-05 20:23:59 +00:00
Petr Ledvina
bf50cbb1a8
NVIC priority change
...
Use 'better' macros to handle priority. This simplifies passing priority to function and new ATOMIC_BLOCK macro
2014-11-04 16:23:21 +01:00
Dominic Clifton
503e7a0817
Decouple altitudehold.c from config.c. Update flight_imu_unittest and
...
altitude_hold_unittest.
2014-11-03 20:03:21 +01:00
Pierre-A
d545ab545f
Remove profanity from comments (issue #43 )
2014-11-02 14:53:57 +01:00
Dominic Clifton
f8b13d7c62
Update unittest_flight_imu.
2014-11-01 11:10:57 +00:00
Dominic Clifton
21e9b0b537
Update battery_unittest.
2014-11-01 11:06:24 +00:00
Dominic Clifton
6efa63b8bd
Update telemetry_hott_unittest.
2014-11-01 11:04:39 +00:00
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