Dominic Clifton
6ce64d8ef9
Fix STM32F3Discovery ACC sensor reads. Fixes #384 .
2015-06-24 21:51:55 +01:00
Dominic Clifton
d5b44f69c1
Merge branch 'sport_fixes' of https://github.com/kilrah/cleanflight into kilrah-sport_fixes
2015-06-24 20:58:33 +01:00
Dominic Clifton
e5a50654e3
Improve code consistency by using function prefixes for telemetry
...
functions.
PR's to make similar changes to other non-static functions are welcomed.
2015-06-24 20:26:41 +01:00
Dominic Clifton
1673ad8b07
Merge branch 'telemetry-switch' of https://github.com/Netsplits/cleanflight into Netsplits-telemetry-switch
2015-06-24 20:13:26 +01:00
U-possi\David
13d923a997
Smartport telemetry fixes. Closes #818 and #877 .
2015-06-24 20:08:01 +01:00
Steveis
44475985a2
MS5611 CRC Unit test
2015-06-24 20:07:01 +01:00
Alexander Fedorov
00bff6485b
Add logging of the inflight adjustment events to the blackbox
2015-06-23 15:20:22 +02:00
Michael Hope
b26efd6256
ld: split the common linker commands out into a shared file.
...
Done to make it easier to add new sections (like a parameter registry
section) in the future.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-22 08:49:16 +02:00
Dominic Clifton
5dee96c3e0
Save a few bytes of flash by aligning BSS data.
2015-06-21 23:08:43 +01:00
Steveis
75293f4231
Refactored delay code in bmp085TestEOCConnected
2015-06-20 12:41:41 +01:00
Steveis
5bf7a470c4
Test for EOC allowing external I2C baro on acro boards
2015-06-20 11:02:39 +01:00
Dominic Clifton
7db626747d
Allow all models to use servo tilt.
...
See #1006
2015-06-10 15:31:47 +01:00
Dominic Clifton
889b14df5f
Support pan and tilt on fixed wing. Fixes #1006
...
The general idea is that nothing calls pwmWriteServo except for
writeServos() and that writeServos() knows which servos it has used.
2015-06-10 14:30:45 +01:00
Dominic Clifton
9a8a31676b
Reduce maximum servos from 10 to 8.
...
1) the 2 extra servos were not used for anything, yet.
2) the MSP packet to set ALL the servo configurations in one go is
larger than the MSP input buffer size.
Likely the MSP_SET_SERVO_CONF should be updated with command that takes
an index of a servo to configure, as per mode ranges/colors/leds/etc.
Fixes #1002
2015-06-10 13:31:04 +01:00
Dominic Clifton
78b52c53d5
Calculate maxThrottleDifference before use.
...
* Easier to understand.
* Reduces code size by 32 bytes.
2015-06-10 12:15:50 +01:00
Dominic Clifton
4e6a268eb5
Merge pull request #993 from nzmichaelh/cxx-send
...
various: tidy up various things found when building with a C++ compiler.
2015-06-10 11:36:55 +01:00
Michael Hope
3740779912
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-06-10 11:06:33 +01:00
Michael Hope
48024e512e
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-06-10 11:06:21 +01:00
Dominic Clifton
084626a70f
SPRacingF3 - Allow use of a different external mag.
2015-06-10 03:36:53 +01:00
Dominic Clifton
bad3b11e28
Replace servo magic numbers and comments with constants.
2015-06-04 22:30:44 +01:00
Michael Hope
920cac5253
various: re-work designated initialisers to work with G++
...
G++ supports a more limited version of designated initialisers.
Reorder fields to be in the right order. Make nested initialisers
explicit.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:34:27 +02:00
Michael Hope
c1d1ef0ac9
sensors: pull the initialise function out into a header.
...
Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:33:18 +02:00
Michael Hope
5c6760fd82
various: tidy up various things found when building with a C++ compiler.
...
Remove duplicate consts.
Pull in the include files where functions and variables are declared.
Mark file local but duplicated variables as static.
Mark some variable declarations as extern.
Remove duplicated variable definition.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:32:31 +02:00
Michael Jakob
b1c76646b0
Remove failsafe_trottle setting from AlienWii32 defaults, New
...
Cleanflight default is now the same.
2015-06-03 14:50:18 +02:00
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
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
Michael Hope
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
Michael Hope
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
Nicholas Sherlock
3ddea2a849
Fix blackbox baudrate upper bound on CLI
...
Closes #960
2015-05-28 14:27:49 +12:00
Michael Hope
0aceee00fc
leds: include the missing utils.h to pull in ARRAYLEN.
...
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-27 07:24:40 +02: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
0257cb0541
CC3D - Disable SONAR support on OPBL builds due to code size.
2015-05-23 11:49:48 +01:00
Michael Hope
14869d0a99
various: use enums to make the code easier to read.
...
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-23 05:21:48 +02:00
Michael Hope
b90ccf4c1a
various: use ARRAYLEN() in more places.
...
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-23 05:21:39 +02:00