Commit graph

2737 commits

Author SHA1 Message Date
Dominic Clifton
98f7549aa4 Fix serial command handling of telemetry baud rates. Set min blackbox
bad rate to be 19200 to match the confiurator.
2015-05-31 12:36:10 +01:00
Dominic Clifton
ca22fb0ee3 Replace CLI serial port configuration code with a new serial command.
This is done to make it clearer in configuration dumps which ports are
enabled and configured.

There is a nice code size reduction due to less strings being needed.

Serial documentation updated.

Closes #966.
2015-05-31 11:50:58 +01:00
Dominic Clifton
27db9ad0fe Merge pull request #945 from inkonova/v1.8.1-mixerFix
removed multiple declaration of function mixerUseConfigs
2015-05-30 07:27:33 +01:00
Dominic Clifton
6f3c16fe6c Reducing the maximum number of mode ranges from 40 to 20 to free up some
configuration storage space.
2015-05-30 00:03:56 +01:00
Dominic Clifton
e6733b4dfc Cleanup status indicator code.
This primarily is to avaoid stalling the main loop when beeping and
flashing.

This is needed because oneshot ESCs do not receive updates when the main
loop is stalled.

Additionally the beeper code for sticks held in disarm position is
changed since it also clashed with profile selection.  Now profile
selections can be seen and heard clearly.

Other subsections of the system that changed the LED0 state while the
main loop is running have been updated to use the status indicator API
instead of blindly hitting the hardware which previously caused lots of
odd LED flashing behaviour - now it is consistent.
2015-05-29 23:37:33 +01:00
Dominic Clifton
22a98af25a Removing unnecessary idlePulse parameter from pwmOneshotMotorConfig. 2015-05-29 20:36:43 +01:00
Dominic Clifton
0c1a6c5c2f Merge branch 'lock_active_features' of https://github.com/ProDrone/cleanflight into ProDrone-lock_active_features
Conflicts:
	src/test/unit/rc_controls_unittest.cc
2015-05-29 20:05:25 +01:00
Dominic Clifton
25fe9f73df Adding note about GCC version for unit tests in the Developer docs. 2015-05-29 19:53:21 +01:00
Dominic Clifton
c29900f012 Fix compilation of tests on Cygwin. Tested with GCC 4.9.2. 2015-05-29 19:51:01 +01:00
Dominic Clifton
36c8b482d1 Re-order initialisers to be the same as the structure declation to avoid
GCC compilation error.

Error message is: "sorry, unimplemented: non-trivial designated
initializers not supported"
2015-05-29 19:49:01 +01:00
Dominic Clifton
a54b073419 Re-enabling pthread for travis builds. 2015-05-29 19:16:22 +01:00
Dominic Clifton
41d737e29a Merge pull request #869 from SteveAmor/remove_tricopter_yaw_gyro_smoothing
Remove tricopter yaw gyro smoothing from imuUpdate
2015-05-29 15:39:02 +01:00
Dominic Clifton
b194288668 Merge pull request #937 from MJ666/ALIENWII32_update
AlienWii32 updates
2015-05-29 15:30:38 +01:00
Dominic Clifton
704dcf46ba Fix all warnings when compiling unit tests.
Use C++11 for the C++ unit test code to make the tests easier to read.
Previously we were using a 17 year old standard (!) (g++98)

GoogleTest is compiled with some additional flags to avoid some specific
warnings.  Consider enabling the warnings when upgrading GoogleTest.

See https://code.google.com/p/googletest/issues/detail?id=433

Closes #941
2015-05-29 15:26:10 +01:00
Dominic Clifton
0df22f8049 Remove some test duplication in RcControls unit rest by using test
fixture classes.
2015-05-29 14:41:27 +01:00
Dominic Clifton
dcc54a9aec Remove duplicate const keywords which were generating warnings when
compiling unit tests.
2015-05-29 14:23:12 +01:00
Dominic Clifton
55180070d6 Merge pull request #964 from nzmichaelh/more-const
various: optimise RAM and flash usage
2015-05-29 11:13:41 +01:00
c9349ce83b msp: rework the different size encoders.
Tidy the encoders up.  Reduce the code size stacking the encoders for
different sizes.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-29 05:42:22 +02:00
31f933ac21 various: mark more constant data so it goes into flash instead of RAM.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-29 05:42:08 +02:00
Dominic Clifton
a7d347689d Merge pull request #953 from enly1/Telemetry_Switch_Fix
Telemetry_Switch TELEMETRY_BOX conditional logic incorrect
2015-05-28 23:36:20 +01:00
Dominic Clifton
70cda73add Update port identifier for Naze32. Add basic documentation of the Paris
Air Hero 32 board.
2015-05-28 14:07:32 +01:00
Dominic Clifton
c37454ca3a Add note explaining that the softserial feature must be enabled to allow
configuration of softserial ports.  Fix some typos.
2015-05-28 14:06:37 +01:00
Nicholas Sherlock
3ddea2a849 Fix blackbox baudrate upper bound on CLI
Closes #960
2015-05-28 14:27:49 +12:00
enly1 [Simon Love]
7df9f7d0d5 Telemetry_Switch TELEMETRY_BOX conditional logic incorrect - corrected so TELEMETRY_BOX now available in GUI with telemetry_switch=1 2015-05-26 20:43:05 +01:00
Mauro Mombelli
51a067db6d removed mixerUseConfigs multile declaration 2015-05-23 20:24:07 +02:00
Dominic Clifton
93454d82a7 Updating sonar docs - adding a note that sonar is not available on the
CC3D OPBL build.
2015-05-23 11:53:45 +01:00
Dominic Clifton
0257cb0541 CC3D - Disable SONAR support on OPBL builds due to code size. 2015-05-23 11:49:48 +01:00
Dominic Clifton
4ed6fdfea5 CC3D - Add sonar.
This also ensures that the PWM mapping does not use the sonar pins when
sonar is enabled in a board agnostic way.
Conflicts:
	src/main/config/config.c
	src/main/drivers/pwm_mapping.h
	src/main/main.c
	src/main/target/CC3D/target.h
2015-05-22 22:35:41 +01:00
Dominic Clifton
a370d60595 Support UART3 and I2C on Paris Air Hero 32 Flex port (aka Naze32_SP).
This change also allows serial ports to be removed at runtime.  e.g.
UART3 on Naze32 and SoftSerial 1 & 2 when softserial is not enabled.
2015-05-22 20:49:33 +01:00
Dominic Clifton
f2013ab863 Merge pull request #936 from sherlockflight/blackbox-arm-beep
Fix Blackbox arming beep time logging
2015-05-22 14:02:54 +01:00
Michael Jakob
c5ce2ff8c6 Fix typo in documentation 2015-05-22 12:13:17 +02:00
Michael Jakob
196a0f7369 Fix documentation links 2015-05-22 11:53:42 +02:00
Michael Jakob
e3e55c64eb AlienWii32 updates
Updated configuration defaults
Documentation updates AlienWii and Spektrum bind
2015-05-22 11:18:35 +02:00
ProDrone
bbb86b30fa Delayed motor PWM enable when using Oneshot 2015-05-22 00:30:29 +02:00
Dominic Clifton
11a4622a46 Adding attributions for some of the Graupner SumH code. 2015-05-21 23:10:00 +01:00
Dominic Clifton
d9de29129e Fix missing use of doubles instead of floats in SumH code. 2015-05-21 23:04:45 +01:00
ProDrone
d1d73d933e Always stop motor PWM prior to soft restart 2015-05-21 16:02:49 +02:00
ProDrone
655bd574c2 Added missing stuff to unittests 2015-05-21 14:16:22 +02:00
Nicholas Sherlock
94faf58e43 Update Blackbox docs to reflect new arming beep 2015-05-21 16:32:51 +12:00
Dominic Clifton
20a6f829d5 SPRacingF3 - Add support for airplane pwm mappings. 2015-05-21 02:02:33 +01:00
ProDrone
a153302b48 Minor comment update. 2015-05-21 02:03:09 +02:00
ProDrone
b75de91f35 Instead of trying to latch the desired features...
...and apply them after a soft reset (which also required an additional
write to flash), it is now such that features and settings are modified
and stored in flash as before.

After initialisation completes, the active features are latched and are
not to be modified until the next startup. This guarantees that all
saved modifications are persistent even when power is switched of
(without a reset in between).

When a soft reset is required, the active features and the currently
configured features are used to detect if the oneshot feature has
changed state, in which case motor PWM outputs are stopped and soft
reset is done after a 1.5 second delay.

During normal operation the active features will not change and all
changes to features ordered via MSP commands or the CLI are applied to
the configuration that gets saved to flash.

The required effect of modifying features without changing the actions
in the running mainloop is achieved. The user needs to be aware that
changes to features are not applied immidiatly.
2015-05-21 01:27:45 +02:00
Dominic Clifton
48570502cb Fixing missing pitch/roll rate inflight adjustment function
configuration settings.
2015-05-20 20:30:39 +01:00
Dominic Clifton
adf0ca9fcf Cleanup Cli.md formatting. 2015-05-20 11:32:46 +01:00
Dominic Clifton
3077d115aa Updating documentation around rx_min_usec rx_max_usec and mode
ranges.
2015-05-20 11:11:27 +01:00
Dominic Clifton
321c3e4ed9 Adding notes about GPS and MAG sensor positioning. 2015-05-20 11:10:13 +01:00
Dominic Clifton
11eb0bf4d4 Update adding the new adjustment functions to the Inflight adjustments
documentation
2015-05-20 09:32:11 +01: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