Commit Graph

1624 Commits

Author SHA1 Message Date
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 e22b37026c Updating CC3D docs. 2014-10-29 19:48:43 +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 5a4035fa2f Latest binaries. 2014-10-29 11:15:08 +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 6dde141b66 CC3D - Correct the documentation. 2014-10-28 17:17:27 +00:00
Dominic Clifton af84800f21 Merge pull request #147 from Pierre-A/cc3d-updates-1
Update CC3D Softserial documentation
2014-10-28 16:24:36 +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
Pierre-A e9847075bb Update CC3D Softserial documentation 2014-10-28 16:19:39 +01:00
Dominic Clifton b67e1a0293 Merge pull request #142 from kjmoore/docs-tables
Documentation Cleanup
2014-10-28 09:02:52 +00:00
Kieran Moore 1377300481 Fixing spelling mistakes and using tables to make pin-outs easier to read 2014-10-27 00:37:56 +00:00
Kieran Moore dec12434ec Fixing Github MD formatting to show tables properly, including a bug which seems to stop 2 character columns from rendering 2014-10-27 00:23:14 +00:00
Dominic Clifton 1f54424cb0 Ignore system dependencies. Fixes #140 2014-10-26 10:01:51 +00:00
Dominic Clifton ba796b9ddb Merge pull request #138 from kjmoore/cmjcu-docs
CMJCU documentation, many thanks @kjmoore
2014-10-26 09:56:23 +00:00
Dominic Clifton 6e1c7ba184 Adding some developer documentation, work-in-progress. 2014-10-25 12:15:19 +01:00
Kieran Moore e1c77b33df Initial commit of the CMJCU documentation 2014-10-25 01:15:57 +01:00
Dominic Clifton 9fd1c82cf7 Tweak inflight adjustment documentation.
Thanks tobad.
2014-10-25 01:13:54 +01:00
Dominic Clifton 0daa3642ad Add documentation for inflight adjustments. 2014-10-25 00:57:12 +01:00
Dominic Clifton 4c3c42b397 Latest binaries with in-flight adjustments. 2014-10-24 23:39:03 +01: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 2b02df8ba0 First cut of API documentation.
Note this is already out of date for current master branch.
2014-10-24 17:54:42 +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