Commit Graph

1529 Commits

Author SHA1 Message Date
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 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 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 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
Nicholas Sherlock 451d3d7ba2 Move zigzag encoding function to new common/encoding.c file, add tests 2015-02-26 13:27:09 +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
Dominic Clifton 0da270351a Merge pull request #537 from MJ666/Harakiri_PID_fix
Harakiri PID controller fix
2015-02-22 21:55:54 +00:00
Dominic Clifton a02cedd8d2 Fix blackbox compilation when included but not enabled. 2015-02-22 21:49:54 +00:00
Dominic Clifton 070b556a07 Enable blackbox flash logging only on SPRacingF3 and Naze rev5 targets. 2015-02-22 21:49:53 +00:00
Dominic Clifton 5d49451916 Cleanup SPI on STM32F3 targets. 2015-02-22 21:49:45 +00:00
Dominic Clifton 2f09b7d1d9 Merge branch 'blackbox-flash' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-flash 2015-02-22 17:24:39 +00:00
Dominic Clifton 9057d70410 Allow excluding of servo code at compilation time.
This is in preparation for backbox on CJMCU/64k.

Flight tested on CJMCU.
2015-02-22 16:21:03 +00:00
Dominic Clifton 5a15c3b271 Merge branch 'master' into fusterjj-lowpass 2015-02-22 15:24:11 +00:00
Dominic Clifton df2f0e850f Bump version to 1.8.0 in preparation for new features. 2015-02-22 15:22:40 +00:00
Dominic Clifton f88bbf4676 Avoid usage of methods for targets that don't use the display. 2015-02-22 15:22:17 +00:00
Dominic Clifton f4112a67c6 Bump config version. 2015-02-22 15:21:45 +00:00
Dominic Clifton debd72485b Avoid updating servos to servo middle every loop iteration. 2015-02-22 15:21:21 +00:00
Dominic Clifton 774abcfab8 Update unit tests. 2015-02-22 14:56:15 +00:00
Dominic Clifton a1b01807cf Merge branch 'lowpass' of https://github.com/fusterjj/cleanflight into fusterjj-lowpass
Conflicts:
	src/main/flight/mixer.c
2015-02-22 14:55:04 +00:00
Dominic Clifton b4e4684ac7 Avoid resetting page cycle index when re-enabling page cycling so that
it is possible to stop on a page, inspect it, and then resume cycling at
the point that it was stopped.
2015-02-22 14:42:43 +00:00
Dominic Clifton 4a1b27443f Enable/Disable LCD page cycling using stick combos. 2015-02-22 14:01:38 +00:00
Nicholas Sherlock c6d71f148d Don't try to compile blackbox if BLACKBOX define isn't set
Just in case you link against blackbox.c but aren't using the BLACKBOX
define in target.h.
2015-02-22 12:01:14 +13:00
Michael Jakob a4e074816d Harakiri PID controller fix
integer constrain function is limiting accuracy in Angel and Horizon
mode ITerm value
2015-02-21 14:51:53 +01:00
Nicholas Sherlock f6c9f7cc4a Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-21 12:52:26 +13:00
Dominic Clifton f6408cd355 CJMCU disable cli servos command to save flash space.
At some point in the future it might be an idea to use a define for
USE_SERVOS so that more code could be excluded. (Servo tilt, etc).
2015-02-20 18:51:50 +00:00
Dominic Clifton 1a7fe33e16 Merge pull request #511 from MJ666/AlienWii
ALIENWII F3/F1 target cleanup and documentation update
2015-02-20 16:41:08 +00:00
Dominic Clifton 5a079063c0 Merge pull request #517 from sherlockflight/servo-cli
Add "servo" CLI command to get/set servo conf, and include in dump
2015-02-20 13:21:07 +00:00
Michael Jakob 91b4cafbfa ALIENWII F3/F1 target cleanup and documentation update 2015-02-20 07:36:52 +01:00
Nicholas Sherlock 092b4fe62b Merge remote-tracking branch 'upstream/master' 2015-02-20 13:37:53 +13:00
Nicholas Sherlock 6c30f879be Merge remote-tracking branch 'upstream/master' into servo-cli 2015-02-20 13:37:01 +13:00
Nicholas Sherlock e636d8b945 Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-20 13:34:59 +13:00
Dominic Clifton 242a7e65a8 Merge pull request #526 from MJ666/Harakiri_PID
Fix for Harakiri PID drift.
2015-02-19 21:57:19 +00:00
Dominic Clifton 1de72b11ce Update the cli `status` command to show all detected sensors (Except on
CJMCU).

Further cleanup of sensor initialisation.
2015-02-19 21:08:30 +00:00
Michael Jakob 257c7e092e Harakiri PID controller variables cleanup
Flight tested
2015-02-19 21:28:26 +01:00
Dominic Clifton c45efac812 Cleanup sensor detection. Less code required and a similar pattern is used for each type of sensor. 2015-02-19 16:15:14 +00:00
Konstantin Sharlaimov 77e5be5002 Fixed external barometer & magnetometer detection 2015-02-19 13:43:47 +00:00
Michael Jakob cd94377651 Latest Crashpilot1000 update 2015-02-19 09:00:20 +01:00
Michael Jakob 6548c90ca8 Align Harakiri PID with Crashpilot1000 updates 2015-02-19 08:30:41 +01:00
Michael Jakob 6c92ea8ee8 Harakiri PID fix
Change errorGyroI and errorAngleI from int32 to float
2015-02-18 22:55:05 +01:00
Dominic Clifton e554f73f5c Update the sensors page to show inclination, heading, estimated G and
the value for small angle.  The latter is to help get field reports to
help with a problem where sometimes the aircraft won't arm because the
FC thinks it's tilted over too much.
2015-02-18 19:29:47 +00:00
Dominic Clifton 8c1d9c37d9 Add comment regarding observations made on the Futaba SBus receivers. 2015-02-18 00:36:05 +00:00
Nicholas Sherlock 155a369491 Reduce code size of serial_cli by 104 bytes with some small tweaks:
Avoid calling strlen() just to check if a string is empty
Shorter error messages and reuse messages for cliServo
Use cliPrint rather than printf when not using placeholders
2015-02-18 13:07:26 +13:00
Nicholas Sherlock 716ee9f5c4 Add "servo" CLI command to get/set servo conf, and include in dump 2015-02-17 23:33:12 +13:00