Konstantin Sharlaimov (DigitalEntity)
fd28138535
Added posDecelerationTime (controlled by Pos I) to control braking strength
2015-11-30 20:14:30 +10:00
Konstantin Sharlaimov (DigitalEntity)
b40df56f16
Added GPS failure handling during RTH. Wait for 2 sec for GPS to get online again, if this does not happen, switch to emergency landing
2015-11-30 14:37:47 +10:00
Konstantin Sharlaimov (DigitalEntity)
43de844aca
Fix last waypoint issue
2015-11-30 10:49:21 +10:00
Konstantin Sharlaimov (DigitalEntity)
936df953eb
Fixed incorrect pitch direction for fixed-wing altitude controller
2015-11-30 09:28:37 +10:00
Dominic Clifton
0c82a7b927
Fix invalid values in cli error messages. Use 0 based index for 1wire,
...
now it is consistent with mmix. Replace typo in 1wire error message
with standard cli parse error message.
2015-11-28 14:35:20 +00:00
Dominic Clifton
b658df3a2e
Merge branch 'fix-303-i2c' of https://github.com/ledvinap/cleanflight into ledvinap-fix-303-i2c
2015-11-28 14:11:26 +00:00
Dominic Clifton
9add024327
Fix whitespace. Remove commented out code.
2015-11-28 14:09:12 +00:00
Dominic Clifton
bd460d18f7
Cleanup whitespace and store the reference to the timer hardware for
...
servos too. Add some consistency to the ordering of the code.
2015-11-28 14:09:11 +00:00
Dominic Clifton
b5bcb63264
Add 1wire support to the PORT103R development target.
2015-11-28 14:09:10 +00:00
4712
a2218ca918
Runtime ESC count / gpio / pin detection
...
Runtime ESC gpio/pin detection
Runtime ESC count detection
2015-11-28 14:09:09 +00:00
Dominic Clifton
fb3f27b161
Merge pull request #1494 from DreamNik/fix_led_strip_1
...
fix for LED strip initialization invalid memory write
2015-11-28 13:32:55 +00:00
Pierre-A
4f2ed7ff0a
fix wrong declaration for baro parameters in CLI
2015-11-28 13:29:23 +00:00
Dominic Clifton
50f3be3d19
Merge pull request #1518 from martinbudden/sonarcleanup
...
Sonarcleanup - replaced Sonar magic numbers with #defines. First cut of sonar test code.
2015-11-28 13:23:06 +00:00
Martin Budden
849797a035
Changed SONAR device characteristics (max range etc) from #defines to variables to allow future support of different SONAR hardware.
2015-11-28 13:13:18 +00:00
ProDrone
6610788b44
Prevent SPEKTRUM receivebuffer overflow
...
To solve the same problem for SPEKTRUM as mentioned for SBUS here: https://github.com/cleanflight/cleanflight/issues/1512#issuecomment-159267342
2015-11-28 12:54:07 +00:00
Konstantin Sharlaimov (DigitalEntity)
b96d247f90
Added ability to bail out to IDLE state regardless of current state (mostly affects emergency landing)
2015-11-28 20:33:28 +10:00
Konstantin Sharlaimov (DigitalEntity)
fa901e9b9b
Fixed issue then bailing out of RTH to PH and position was not reset (drone would still be going home). Fixed conditionless activation of WP mode (required GPS, BARO and ARMED now). FC version string changed. Possible fix to MAG mode (untested).
2015-11-28 14:12:41 +10:00
Konstantin Sharlaimov (DigitalEntity)
e4f327d4b7
Force throttle neutral point for ALTHOLD to be midrc if AltHold is activated when disarmed or current throttle position will not allow altitude control in both directions
2015-11-27 22:03:29 +10:00
Konstantin Sharlaimov (DigitalEntity)
d731486235
Remove dead reckoning possibility. Removed throttle_tilt_compensation option. Added extra arming safety - disable arming if no GPS fix
2015-11-27 15:25:41 +10:00
Konstantin Sharlaimov (DigitalEntity)
62aaa50f93
Fix for throttle drops/jumps due to not reset throttle LPF filter from last attempt. Uppered throttle LPF cutoff to 4Hz
2015-11-27 12:36:22 +10:00
Konstantin Sharlaimov (DigitalEntity)
68ba45f24d
Fix for incorrect PH braking target in east direction
2015-11-27 12:26:04 +10:00
Konstantin Sharlaimov (DigitalEntity)
f5ac6a5514
Preliminary MSP waypoint protocol compatibility. Only WAYPOINT action is supported for now
2015-11-27 11:33:40 +10:00
Martin Budden
cda717dbe4
Improved cosine approximation used when calculating altitude when tilted. Now second order Taylor expansion with only 2 extra float multiplies.
2015-11-27 01:12:29 +00:00
Konstantin Sharlaimov (DigitalEntity)
3f16205f39
Beep out READY_BEEP when GPS fix acquired and HOME position set. Don't reset home position on GPS fix loss when disarmed - short GPS outages while on the ground won't ruin RTH
2015-11-27 11:09:59 +10:00
Martin Budden
a097e4912f
Improved naming of #defines by including units suffix (_CM etc) and separating naming of device specific constants from general sonar constants.
...
Moved device characteristics #defines (max range etc) into sonar_hcsr04.h
Moved calculation of tilt angle from altitudehold.c to sonar.c
Moved tilt checking from sonar_hcsr04.c to sonar.c, the driver should not anticipate usage.
2015-11-27 00:58:47 +00:00
Konstantin Sharlaimov (DigitalEntity)
77caedcda2
Limit I2C GPS retry rate to 1/500ms. Prevent I2C bus from being flooded by failed I2C transactions when no I2C-GPS is present
2015-11-26 22:41:05 +10:00
Konstantin Sharlaimov (DigitalEntity)
ad3f5a8e3a
Change I2C output type to OD
2015-11-26 22:30:21 +10:00
Konstantin Sharlaimov (DigitalEntity)
472ab7694c
CLI fixes, emergency landing controller fixes
2015-11-26 17:32:58 +10:00
Konstantin Sharlaimov (DigitalEntity)
51d7babbdd
PH braking revisited
2015-11-26 15:08:27 +10:00
Konstantin Sharlaimov (DigitalEntity)
b1ef5e053a
A possible fix to zero throttle althold issue. Logging: navDebug[2] = AH PID output; navDebug[3] = AH throttle adjustment
2015-11-26 14:12:25 +10:00
Konstantin Sharlaimov (DigitalEntity)
55e5703e4b
Debug: navDebug[0] = gpsGlitch status, navDebug[1] = landing detection status
2015-11-26 10:52:37 +10:00
Konstantin Sharlaimov (DigitalEntity)
68e60f5c37
Added a configurable mc_hover_throttle parameter to be used when calculating altitude controller
2015-11-26 10:20:52 +10:00
Martin Budden
83d3d00163
Added test code for sonar distance and altitude functions
2015-11-25 21:37:39 +00:00
Konstantin Sharlaimov (DigitalEntity)
03bfb70a15
Remove unused filterWithBuffer code. Not useful anymore as inertial filter alone calculate velocity with sufficient accuracy
2015-11-25 22:56:57 +10:00
Konstantin Sharlaimov (DigitalEntity)
4dbd985046
GPS glitch detection fixes. Keep glitch detection disabled for the moment
2015-11-25 21:50:35 +10:00
Konstantin Sharlaimov (DigitalEntity)
6afd3741b2
Surface sensor (SONAR) assisted landing detection
2015-11-25 16:50:11 +10:00
Konstantin Sharlaimov (DigitalEntity)
6850fe324f
RTH on failsafe can now be set via CLI. Disabled RC input when executing failsafe RTH.
2015-11-25 16:28:43 +10:00
Konstantin Sharlaimov (DigitalEntity)
ed0f85c41b
Fix CLI parameter declaration for baro and PIDs
2015-11-25 15:03:54 +10:00
Konstantin Sharlaimov (DigitalEntity)
68abea6a04
Allow I2C GPS to be selected in CLI
2015-11-25 15:00:26 +10:00
Martin Budden
3e95ecbba9
Replaced Sonar magic numbers with #defines. Added first cut of Sonar test code. Corrected spelling in comments. Minor improvements to comments.
2015-11-24 23:26:58 +00:00
ProDrone
b1a22c69ed
Prevent SBUS receivebuffer overflow
...
To solve problem mentioned here: https://github.com/cleanflight/cleanflight/issues/1512#issuecomment-159267342
2015-11-25 00:20:05 +01:00
Konstantin Sharlaimov (DigitalEntity)
ccf318003e
Fixed a bug with NAV_FSM_EVENT_TIMEOUT event never being executed by FSM
2015-11-24 17:34:42 +10:00
Konstantin Sharlaimov (DigitalEntity)
e33dda884d
Fix a bug in RTH altitude calculation. Bug is observed as RTH never finishing the CLIMB stage
2015-11-24 14:58:21 +10:00
Martin Budden
dcf990677d
Fixed spelling mistakes. Changed text reference of 'baseflight' to 'Cleanflight'.
2015-11-23 23:06:57 +00:00
Konstantin Sharlaimov (DigitalEntity)
5e2a537d8c
Disable GPS glitch detection. Reason: doesn't work as expected. Needs debugging
2015-11-23 10:24:08 +10:00
Konstantin Sharlaimov (DigitalEntity)
0fa3a4d18f
Setting magzero_* variables from CLI now sets the MAG_CALIBRATION_DONE persistent flag
2015-11-21 23:10:25 +10:00
Konstantin Sharlaimov (DigitalEntity)
c7e252aa8e
Fix for NAV AH not functional without GPS
2015-11-21 10:46:16 +10:00
Konstantin Sharlaimov (DigitalEntity)
8fb4107d12
Fixes for bugs introduced during merge with vanilla
2015-11-19 10:26:11 +10:00
Dominic Clifton
b069201bb3
Revert disabling UART1 RX via DMA on F1 targets. See
...
4eb6581b76
.
On my PORT103R test rig packet errors occur after some time and
communication with the configurator eventually becomes impossible.
I suspect the lack of hardware flow control and loop time jitter to be
the root cause.
config:
feature RX_PPM VBAT SOFTSERIAL GPS FAILSAFE SONAR TELEMETRY DISPLAY
BLACKBOX
serial 0 1 115200 57600 0 115200
serial 1 2 115200 57600 0 115200
serial 30 4 115200 57600 0 115200
serial 31 0 115200 57600 0 115200
2015-11-18 20:43:44 +00:00
Konstantin Sharlaimov (DigitalEntity)
0f417d5246
Kalman filter for sonar readings. Provides surface rate velocity (currently unused)
2015-11-18 16:58:20 +10:00