Commit Graph

1459 Commits

Author SHA1 Message Date
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
Dominic Clifton afd0d21b68 Merge pull request #131 from ledvinap/bugfix-trivial
Trivial changes
2014-10-24 08:28:47 +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 db26c09721 Merge branch 'ledvinap-feature-makefile' 2014-10-23 13:33:43 +01:00
Petr Ledvina 091941cd82 Makefile improvement
- root must be assigned when declared - with :=
- add autodependecy generation
2014-10-23 14:10:45 +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
Dominic Clifton fd32ad6fcb Use correct buffer size variable when checking for softserial waiting
bytes.  Fixes #127.
2014-10-21 13:41:51 +01:00
Dominic Clifton cbd1817f6c Workaround for HoTT and softserial. 2014-10-20 23:14:30 +01:00
Dominic Clifton 2d8f65448d Cleanup Softserial/LedStrip timer clash checking. Move definitions of
led strip timer and softserial pwm ports/timers into target specific
files.
2014-10-20 21:44:55 +01:00
Dominic Clifton f9f6b05aac Fix opening softserial ports - missed a #ifdef check. 2014-10-20 20:13:30 +01:00
Dominic Clifton 91c7407806 Cleanup CC3D softserial - it only has enough pins/timers for one port.
PR #124 incorrectly re-used the same timer hardware for the second port
which was bad.
2014-10-20 19:34:10 +01:00