Commit graph

2703 commits

Author SHA1 Message Date
Dominic Clifton 94fdaed8d2 Merge pull request #428 from Pierre-A/update_pa
HoTT check serial data improvement
2015-03-03 10:58:33 +00:00
Dominic Clifton aa7abec7f4 Merge pull request #570 from fusterjj/debug_cleanup
Disable debug vars by default
2015-03-03 10:56:37 +00:00
Dominic Clifton 03c93d3cfa Merge pull request #564 from sherlockflight/travis
Use 4.8 series GCC compiler for Travis build tests
2015-03-03 10:55:36 +00:00
Ben Hitchcock 97fae94053 Bugfix for 3D inverted flight using a tricopter. The yaw servo now should reverse when the throttle is lower than the midpoint. 2015-03-03 11:47:35 +08:00
Brnadon Miller e5f23669c0 Added documentation for predefined light colors for orientation and flight modes 2015-03-02 18:12:01 -05:00
Brnadon Miller aed170f1a9 Add table for LED Strip Colors 2015-03-02 18:03:15 -05:00
Nicholas Sherlock b740c02259 Merge remote-tracking branch 'upstream/master' into travis
Conflicts:
	.travis.yml
2015-03-03 08:58:46 +13:00
Dominic Clifton 266fe45b7e Temporarily disable autotune on the CC3D OPBL binary. 2015-03-02 11:50:15 +00:00
Dominic Clifton bc5f48a7e9 Ensure that travis uses 4.x of GCC.
Ideally we want to use 4.8.x but the binary repository does not contain
4.8 any more, only 4.9.x.  The CC3D build will continue to fail until th
code size issue is addressed.
2015-03-02 11:31:34 +00:00
Nicholas Sherlock 12851f78d0 Download binary version of GCC 4.8 instead of Ubuntu package 2015-03-01 14:05:20 +13:00
Joel Fuster afeedf40c7 Servo tune documentation 2015-02-28 20:01:02 -05:00
Joel Fuster 095b21b027 Disable debug vars by default 2015-02-28 19:26:59 -05:00
Moshen Chan d24d4699db Default failsafe enabled and throttle off when no valid PPM signal is seen for 1 second #488 2015-02-27 19:33:23 -08:00
Nicholas Sherlock 0ac1e8bd11 Use 4.8 series GCC compiler for Travis build tests
Since 4.9 is known to create broken CC3D and Sparky builds
2015-02-28 11:55:36 +13:00
Dominic Clifton 2a73ad6925 Merge pull request #559 from sherlockflight/cc3d
Add blackbox dataflash support for CC3D
2015-02-27 13:00:42 +00:00
Nicholas Sherlock b2e46ea5f4 Update blackbox doc to mention support for CC3d 2015-02-28 01:05:28 +13:00
Nicholas Sherlock a60cdf157a Fix initialisation of SPI2 2015-02-28 00:56:28 +13:00
Nicholas Sherlock af68517dda Merge remote-tracking branch 'upstream/master' into cc3d 2015-02-28 00:19:03 +13:00
Dominic Clifton 1a8500c768 Transition to new per-port & per-function baud rate configuration. 2015-02-27 01:05:37 +00:00
Dominic Clifton b6509dd1eb Merge branch 'master' into serial-cleanup
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/config/config.c
2015-02-26 22:43:29 +00:00
Dominic Clifton ed434dd169 Cleanup ACC hardware enum so that 'None' is always '1' and doesn't
change every time a new sensor is added.  All the sensor enum values are
now aligned.
2015-02-26 22:31:38 +00:00
Dominic Clifton 88bc3c3f5d Merge pull request #543 from sherlockflight/master
Save around 300 bytes of flash by improving Blackbox field name storage
2015-02-26 21:06:24 +00:00
Dominic Clifton 99f84d397a Merge pull request #554 from rbirkby/AlienSpiderLedFix
Fix docs for Alien Spider LED configuration
2015-02-26 21:01:22 +00:00
Dominic Clifton 55d9994ff8 Reset adjustment states when switching profiles.
Fixes #544.
2015-02-26 13:58:03 +00:00
Dominic Clifton 05b1b5a9b2 Ensure motor[0] is used, see 46a0054d784ba638435257ee6b75e5cea43f0983 2015-02-26 12:15:15 +00:00
Dominic Clifton 8282bc76d2 Mixer code readability and code size improvement.
Naze target size before: 113412, after: 113388

Closes #551
2015-02-26 12:05:03 +00:00
Richard Birkby da6bbf460f Fix docs for Alien Spider LED configuration 2015-02-26 07:54:02 +00:00
Nicholas Sherlock 451d3d7ba2 Move zigzag encoding function to new common/encoding.c file, add tests 2015-02-26 13:27:09 +13:00
tracernz 872b1ea695 Fix error in VCM docs 2015-02-26 10:30:44 +13:00
Nicholas Sherlock 57fcde05a3 Blackbox dataflash: Experimental CC3D support 2015-02-25 00:52:25 +13:00
Nicholas Sherlock aae9141120 Fix blackbox compile bug on targets without flash 2015-02-24 10:19:11 +13:00
Nicholas Sherlock ff28846829 Save around 300 bytes of flash by improving Blackbox field name storage
Also add a bit more Blackbox code documentation
2015-02-24 09:42:38 +13:00
Dominic Clifton b9e1283809 Ensure motors are stopped before a reboot. Ensure hard fault handler
doesn't use potentially unitialised data to update the motors.  Pause
for 50ms before rebooting after updating disabling the motors to ensure
the timer hardware and ESCs havea chance to react.

This commit might help with #123
2015-02-23 14:02:47 +00:00
Petr Ledvina 737fbe02ed Fix battery unittest
New code uses divition to get cell count, so nonzero vbatmaxcellvoltage is neccessary. Also added remaining fields to avoid future problems (and g++ doesn't support non-trivial initializers)
2015-02-23 09:18:51 +01:00
Petr Ledvina 3abcbace72 Generate phony targets in auto-dependencies
This will fix problem with missing dependencies where #include changes
2015-02-23 09:18:51 +01:00
Petr Ledvina a96a12bd47 compile some GPS code conditionally 2015-02-23 09:18:51 +01:00
Petr Ledvina a67d2f8a9e Whitespace fixes 2015-02-23 09:18:51 +01:00
Petr Ledvina f1ac4f8461 fix #ifdef typo 2015-02-23 09:17:06 +01:00
Petr Ledvina 1ecbdf3dae Minor code cleanup 2015-02-23 09:17:06 +01:00
Petr Ledvina 6b37b96048 Simplify #ifdef nesting 2015-02-23 09:17:06 +01:00
Petr Ledvina 9dd7faeefa Remove unneeded volatile 2015-02-23 09:17:06 +01:00
Petr Ledvina 7875b97aae Compile serial code conditionally on stm32f303 2015-02-23 09:17:06 +01:00
Petr Ledvina 7c62ec9755 Move internal serial interface into separate header file
Declaring function from other file is quite dangerous - there is no warning if interfaces get out of sync
2015-02-23 09:17:06 +01:00
Petr Ledvina 7c263254b2 improve loop readability 2015-02-23 09:17:06 +01:00
Petr Ledvina fd355caca6 Modify some macros so they evaluate to single statement
Require macros to be followed with semicolon, empty version expands to dummy statement.

Fixes dangling-else problem:

```
if(1)
        INVERTER_ON;
else
        INVERTER_OFF;
```
2015-02-23 09:17:06 +01:00
Petr Ledvina f9f40fb98f Handle possible problem with unintentional I2C interrupt handler triggering
Error handler may be called repeatedly during I2C unstucking. Not sure if this change is necessary, but it is safe
2015-02-23 09:17:06 +01:00
Petr Ledvina 5129403c83 minor I2C cleanup 2015-02-23 09:17:06 +01:00
Petr Ledvina d3324a9f0d Move ADC internal interface into new header file 2015-02-23 09:17:06 +01:00
Petr Ledvina 6b0fea5952 simplify #ifdefs 2015-02-23 09:17:06 +01:00
Petr Ledvina e56f46a756 Move utility macros to common/utils.h 2015-02-23 09:17:05 +01:00