Konstantin Sharlaimov (DigitalEntity)
b85a726537
HIL GPS fixes
2015-12-07 00:09:13 +10:00
Konstantin Sharlaimov (DigitalEntity)
53a7b98dbc
Fixed wing AH mode throttle control fix
2015-12-06 23:13:56 +10:00
Konstantin Sharlaimov (DigitalEntity)
a6248a4075
More generic GPS processing. Fixed wing PH modes should now activate correctly
2015-12-06 23:06:40 +10:00
Konstantin Sharlaimov (DigitalEntity)
334475be52
PH will now report 0 (no error) in MSP_NAV_STATUS
2015-12-06 12:37:36 +10:00
Konstantin Sharlaimov (DigitalEntity)
9d023cabb0
Fixed soft filter CLI lookup table
2015-12-06 12:36:35 +10:00
borisbstyle
a2fbf56493
IDLE UP switch // Remove pid_at_min_throttle
2015-12-05 18:57:51 +10:00
Konstantin Sharlaimov (DigitalEntity)
dfc2fcc722
Soft filtering CLI varibale lookup table added
2015-12-05 18:52:56 +10:00
Konstantin Sharlaimov (DigitalEntity)
a110665af1
Renamed some CLI variables for consistency. New names: nav_pos_hold_deadband, nav_alt_hold_deadband, nav_mc_min_fly_thr
2015-12-05 11:17:24 +10:00
Konstantin Sharlaimov (DigitalEntity)
660b8ce181
Fixed bug with mc_min_fly_throttle actually setting hover throttle
2015-12-05 10:30:12 +10:00
Konstantin Sharlaimov (DigitalEntity)
465de2738b
Fixed wing magHold bug fixed (MAG mode might be fighting navigation if used with PH on a fixed wing)
2015-12-05 10:30:09 +10:00
Konstantin Sharlaimov (DigitalEntity)
bd31dfce14
HIL support. When HIL is active hardware GPS updates are disabled, IMU disabled, BARO disabled, motor control disabled. MSP_SET_HIL_STATE message will setting acceleration data for pos estimator to work properly
2015-12-04 21:41:23 +10:00
Konstantin Sharlaimov (DigitalEntity)
024f8b2076
Fix for instant disarm on signal recovery when in FAILSAFE/RTH
2015-12-04 13:13:13 +10:00
Konstantin Sharlaimov (DigitalEntity)
5052d5cd1c
Configurable maximum banking angle for MC poshold controller. Min flyable throttle parameter for landing detection
2015-12-03 12:50:09 +10:00
Konstantin Sharlaimov (DigitalEntity)
738c3bdd62
Fixed incorrect IMU heading lock to GPS CoG for a fixed wing without magnetometer
2015-12-02 23:27:01 +10:00
Konstantin Sharlaimov (DigitalEntity)
8130be4772
Fixes and optimisations to FSM. Smoother transition from PH to RTH. Option to execute RTH tail first
2015-12-02 23:21:15 +10:00
Konstantin Sharlaimov (DigitalEntity)
cf8cab53f4
Remove MultiWii23 PID controller. Better LEVEL defaults for MultiWiiRewrite
2015-12-02 23:21:14 +10:00
Konstantin Sharlaimov (DigitalEntity)
490472a45b
LTM N-frame with extended navigation status. MultiWii-compatible MSP_NAV_STATUS message
2015-12-02 23:21:09 +10:00
Konstantin Sharlaimov (DigitalEntity)
069994bd92
Quaternion-based Mahony's DCM IMU (implementation by S. Madgwick)
...
Mag declination correction. Some cleanups
DCM code changes from @MauroMombelli, allow gyro-only operation when neither ACC nor MAG can be used (i.e. no MAG and ACC is saturated.
Replaced 'inclination' and 'heading' with 'attitude', converted all angles to decidegrees
Prevent magnetometer readings from affecting roll/pitch angles. Compass now affects only yaw axis and magnetic interference won't mess up attitude calculations
Ability to lock heading to GPS cource for airplanes
Allow faster acquisition by initial attitude by using higher DCM kP gain on powerup
Optimize magnetometer correction per @ledvinap suggestion. Better speed and less memory usage
Prevent acceleration from affecting accSmooth if acceleration magnitude is too high
Fixed incorrect GPS heading lock
2015-12-02 23:06:03 +10:00
Konstantin Sharlaimov (DigitalEntity)
5ef05268de
Waypoint code rework. Upload/download mission works. Waypoint actions RTH and WAYPOINT are supported (untested)
2015-12-01 17:02:58 +10:00
Konstantin Sharlaimov (DigitalEntity)
ce18dc94eb
Waypoint storage reworked - store raw waypoint data (MWP-compliant), convert to local coordinates as required
2015-12-01 10:35:51 +10:00
4712
57efb91d59
Changed disable beeper method.
...
Fix indentation level to 4.
Removed CLI support for 1wire pass through
2015-11-30 15:36:23 +01:00
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
d489508e93
Merge pull request #1509 from gkvirkvia/patch-1
...
PWM mode *is* usable with enabled uart, make it clear in docs
2015-11-28 21:12:29 +00: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
12157bd791
Merge branch 'ledvinap-fix-303-i2c'
2015-11-28 14:17:49 +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
Dominic Clifton
c0b7dfc796
Merge pull request #1517 from ProDrone/sbus_buffer_overflow_bug
...
RX - Prevent SBUS receivebuffer overflow
2015-11-28 12:28:49 +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)
bba362bf20
Changed fork name to 'inav'
2015-11-28 20:27:16 +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