Michael Hope
2c11b7089a
build: enable -ffast-math.
...
By default, GCC implements strict IEEE 754 confirmance and chooses
bitwise accuracy over speed. -ffast-math relaxes this and lets GCC do
optimisations like re-writing a / constant as a * (1 / constant).
Saves 144 bytes of flash and should be a speedup.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-20 06:31:22 +02:00
Michael Hope
7cd6798eb1
serial_cli: use the reentrant version of strtok().
...
Newlib's strtok() allocates memory and causes malloc() to be linked
in. Use the reentrant version instead.
Saves 336 bytes.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-20 05:33:15 +02:00
Michael Hope
6dcd91ada6
various: use float instead of double.
...
Add 'f' suffixes to some constants so they don't get silently promoted
to double. Use roundf() instead of round().
Saves 208 bytes of flash.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-20 05:10:24 +02:00
Dominic Clifton
7a01bab50f
Constrain invalid values by using rx_min_usec and rc_max_usec. Provide
...
sensible/fix min/max settings for those settings.
This fixes erratic flight behaviour before failsafe kicks in on SBus
receivers.
An X8R SBus RX in failsafe mode outputs 880 on all channels.
See #918 and #919
2015-05-20 00:28:52 +01:00
Dominic Clifton
22bf890cf0
Allow mixer to use failsafe throttle value that is less than
...
minthrottle.
2015-05-19 23:45:27 +01:00
Dominic Clifton
d0a9d14b87
Allow CLI to be compiled out.
...
First cut, as proof-of-concept. This allows CJMCU target to be built
without CLI and with Blackbox.
2015-05-19 23:42:41 +01:00
Dominic Clifton
67c6967da7
Ensure rx signal loss detection works for parallel pwm.
2015-05-19 22:48:05 +01:00
Dominic Clifton
23303198bb
Update unit test for mixer behavior changed in
...
cc5c736362
2015-05-19 21:42:48 +01:00
Dominic Clifton
3a334c54fc
Revert "Updating failsafe documentation to include details about how failsafe"
...
This reverts commit 5a05c19bb6
.
Fixed by cc5c736362
2015-05-19 21:31:54 +01:00
Dominic Clifton
43a74f0d46
Merge pull request #917 from MJ666/yaw_jump_updates
...
Flight - Yaw jump updates
2015-05-19 21:20:48 +01:00
Dominic Clifton
33e0718884
Merge pull request #911 from borisbstyle/docs
...
PID1 Horizon Doc changed + TPA doc adjusted.
2015-05-19 21:20:26 +01:00
Dominic Clifton
cc5c736362
Fix failsafe_throttle
being ignored if it was less than min_check
...
when MOTOR_STOP was enabled.
2015-05-19 21:16:24 +01:00
Dominic Clifton
53eec05809
Avoid updating in-flight adjustments when not receiving rx data.
2015-05-19 20:44:01 +01:00
Dominic Clifton
26f2affd88
Ignore SBus end byte checking, this should improve compatibility with
...
some Futaba SBUS RX's that send telemetry data after SBus frames. Fixes
#590
2015-05-19 19:41:15 +01:00
Dominic Clifton
5a05c19bb6
Updating failsafe documentation to include details about how failsafe
...
works in combination with other settings and when using failsafe in
conjunction with MOTOR_STOP.
See #912 and #488
2015-05-19 17:50:24 +01:00
Michael Jakob
0ef236a50a
Another documentation update
2015-05-19 17:54:57 +02:00
Michael Jakob
50d5ec4e21
Fix typo in CLI.md
2015-05-19 17:47:06 +02:00
Michael Jakob
42218f1ea5
The yaw_p_limit minimum is now set to 100 to prevent misconfigurations.
...
Maximum value of 500 is now removing the limit (same as for
yaw_jump_prevention_limit)
Moving defines for PID controllers to headerfiles.
Some general code cleanup.
Documentation update
2015-05-19 17:42:03 +02:00
atomiclama
713e138c42
Changed idle pulse width from fixed 1ms to that configured.
...
Stops motors, that have none standard pulse ranges, from running up
after a save or exit from cli.
2015-05-19 16:02:27 +01:00
borisbstyle
73415be167
PID1 Horizon Doc changed + TPA doc adjusted.
2015-05-18 17:06:38 +02:00
Dominic Clifton
3037a91b06
Merge pull request #908 from datamafia/master
...
Doc edits I found and fixed while setting up some boards.
2015-05-18 09:08:30 +01:00
Dominic Clifton
c174a52ebe
Allow independent pitch and roll in-flight PID adjustment. Fixes #149 .
2015-05-17 23:43:55 +01:00
Dominic Clifton
c868d7177a
Enabling travis apt cache.
2015-05-17 22:48:17 +01:00
Marc
34f1633306
insight on first 4 channels
2015-05-17 17:40:01 -04:00
Dominic Clifton
e57c814e2a
CJMCU - Disable cli playsound to save flash space.
2015-05-17 22:21:01 +01:00
Dominic Clifton
8427583ba8
Merge pull request #868 from SteveAmor/document_servo_low_pass_filter_Cli.md
...
Added servo low pass filtering to Cli.md
2015-05-17 21:36:56 +01:00
Dominic Clifton
85acf7dc1d
Merge pull request #895 from borisbstyle/pid1-horizon
...
Fix for extreme D level term PID1 Horizon
2015-05-17 21:32:50 +01:00
Dominic Clifton
97700349b9
Merge pull request #898 from samcook/fix-fakeheading
...
Tidy up the fake lat/long heading tidyup
2015-05-17 21:30:33 +01:00
Dominic Clifton
fd1724f3ab
Merge pull request #900 from MasterZap/doc-f
...
Fix documentation about 16 channel S.Bus to be clearer.
2015-05-17 21:30:18 +01:00
Dominic Clifton
3dc675f24d
Merge pull request #901 from MJ666/AlienWii_failsafe
...
Remove obsolate failsafe setting for the ALIENWII32 targets
2015-05-17 21:26:56 +01:00
Marc
b073603707
verbiage
2015-05-17 15:17:10 -04:00
Marc
ce1498da0d
verbiage
2015-05-17 15:15:32 -04:00
Marc
356b8e2be2
Minor edit
...
TPA acronym, spelling error
2015-05-17 10:42:01 -04:00
Michael Jakob
be0561c576
Not all AlienWii F3 variants have an voltage divider. Disable feature
...
VBAT by default.
2015-05-17 10:59:48 +02:00
Michael Jakob
7a3976e3a0
Set Spektrum 1024bit as default for better copatibility with entry level
...
transmitters
2015-05-17 10:57:35 +02:00
Michael Jakob
088d136c7c
Remove obsolate failsafe setting for the ALIENWII32 targets
2015-05-15 17:56:34 +02:00
borisbstyle
984eada98b
PID1 Horizon sensitivity range increased
2015-05-15 15:28:03 +02:00
MasterZap
e355463e26
Fix documentation about 16 channel S.Bus to be clearer.
...
The text mentioned the "Serial Chapter" which isn't really helping you at all (IMHO), I removed that. The stuff you actually want is just a few paragraphs down in the same document....
2015-05-15 14:45:17 +02:00
Sam Cook
d6dc1f7bd8
Fix invocation of sendFakeLatLong() after 802218b77b
.
...
Fix spelling in sendFakeLatLongThatAllowsHeadingDisplay function name.
2015-05-15 12:32:03 +01:00
Dominic Clifton
dee68f5e4f
Clarify Battery voltage detection statement in docs. Fixes #696 .
2015-05-15 12:13:27 +01:00
borisbstyle
4bdc64bff9
Fix for extreme D level term PID1 Horizon
2015-05-15 02:16:46 +02:00
Dominic Clifton
19be109189
Merge pull request #890 from ProDrone/cli_processing_mod_1
...
Some mods to CLI command interpretation and output
2015-05-14 20:10:49 +01:00
Dominic Clifton
802218b77b
Remove some logic and boolean arguments from FrSky GPS code. See
...
d58387c
PR #855
2015-05-14 20:04:52 +01:00
Dominic Clifton
d58387c44a
Merge pull request #855 from samcook/frsky-heading
...
Frsky telemetry heading without GPS
2015-05-14 20:00:21 +01:00
Dominic Clifton
8174517789
Merge pull request #876 from SteveAmor/increment_pid_controllers
...
Corrected the number of pid controllers available
2015-05-14 19:56:46 +01:00
Dominic Clifton
0fa271a8a3
Merge pull request #875 from SteveAmor/update_fork
...
Git command to update your fork
2015-05-14 19:56:27 +01:00
Dominic Clifton
d6a2042c55
Merge pull request #881 from sherlockflight/gimli-fix
...
Patch Gimli to fix underscores_inside_words in PDF manuals
2015-05-14 19:54:53 +01:00
Dominic Clifton
cf4a552b94
Merge pull request #891 from borisbstyle/pid1-horizon
...
PID1 Horizon Mode Fixed
2015-05-14 19:31:45 +01:00
Dominic Clifton
e69e999bdc
Merge pull request #862 from borisbstyle/tpa-feature
...
PID1 and PID2 TPA Support Added
2015-05-14 19:24:10 +01:00
Dominic Clifton
77217f23a7
Merge pull request #816 from DaTwo/RSSI-Invert-Patch
...
Inverted RSSI PPM / PWM (EZUHF) CLI Option
2015-05-14 19:20:28 +01:00