Commit Graph

24402 Commits

Author SHA1 Message Date
Randy Mackay
327c2b8b9d AC_WPNav: remove unused _loiter_step member 2016-12-01 12:53:25 +09:00
priseborough
9bfbe4c80a AP_NavEKF2: Fix errors in position reset delta publishing 2016-12-01 12:53:22 +09:00
priseborough
52eac34d66 AP_NavEKF2: capture and publish vertical position reset deltas
Calculate the change in vertical position due to a internal EKF state reset or a EKF core switch
2016-12-01 12:53:19 +09:00
priseborough
8a34df6528 AP_NavEKF2: Reduce unnecessary EKF core switching
1) Do not switch to a core until its states have been updated.
2) Distinguish between mandated switches required for health failure and optional switches required due to innovation checks failing.
3) Apply hyseresis to innovation check levels
2016-12-01 12:53:16 +09:00
Alexey Bulatov
fc577120c1 AP_Compass: make LSM9DS1 compass primary for Navio2 2016-11-30 12:10:43 -08:00
Alexey Bulatov
67dd4d3efe AP_Compass: fix rotation for LSM9DS1 compass
Move rotation to the right place. Otherwise live calibration and onboard
calibration show different results.
2016-11-30 12:10:43 -08:00
Lucas De Marchi
bed521e2b5 AP_Compass: Calibrator: use inplace initializer on array
(cherry picked from commit c6b0a71c47)
2016-11-21 16:10:14 -02:00
Siddharth Bharat Purohit
73c83f630a AP_Compass: fix wrong memset in compass calibrator
(cherry picked from commit b36ee10e7c)
2016-11-21 16:10:14 -02:00
Siddharth Bharat Purohit
b71f766aff AP_AccelCal: fix bug preventing accel cal fit to run more than one iteration
The check for fitness being smaller than the last value should use the
absolute value, to mean the fitness isn't changing since last iteration.
It's currently always quiting the function after the first iteration.

However for Gauss Newton we anyway want to run as many iterations as we
can, because there are ups and downs along the iteration so we might get
say best result where before and after iterations were bad. The lines
above takes care that sane and the best is selected.

(cherry picked from commit 451c2f146d)
2016-11-21 16:10:14 -02:00
Randy Mackay
6076bdfc02 Copter: version to 3.4.2 2016-11-16 09:23:17 +09:00
Randy Mackay
372bb53562 Copter: 3.4.2 release notes 2016-11-16 09:23:04 +09:00
Michael Oborne
5f505a0f37 AP_GPS_SBF: fix accuracy reported by driver 2016-11-16 09:16:47 +09:00
Randy Mackay
179a7f57d6 Copter: version to 3.4.2-rc2 2016-11-07 13:20:41 +09:00
Randy Mackay
9f120ad11f Copter: 3.4.2-rc2 release notes 2016-11-07 13:20:24 +09:00
Michael du Breuil
b0afbfe17e Tracker: Allow compass to manage buffer space for MAG_CAL 2016-11-07 13:08:09 +09:00
Michael du Breuil
6e4354675a Rover: Allow compass to manage buffer space for MAG_CAL 2016-11-07 13:08:07 +09:00
Michael du Breuil
615aa74bf9 Copter: Use the compass calibrator autoreboot behaviour
(fixes a chance of not saving the second compass)
2016-11-07 13:08:04 +09:00
Michael du Breuil
2b30e6a7d7 Plane: Allow compass calibrator to manage size of buffer 2016-11-07 13:08:01 +09:00
Michael du Breuil
4d8053afc9 Compass: Rework compass calibrator
Summary of significant changes:
  -Autsave doesn't depend on STREAM_EXTRA3
  -Don't risk only saving one compass on copter if CAL_ALWAYS_REBOOT is set
  -Only calibrate compasses that are both health and marked for use (there was a inconsistency in handling the mask)
  -Fix incorrect failure reporting on DO_ACCEPT_MAG_CAL with a mask of 0 if a channel was specifically not started
  -Fix not starting the buzzer if the delay is set to 0 seconds
  -Always send MAG_CAL_REPORT until its acknowledged
  -Correct the field in MAG_CAL_REPORT for autosave to indicate if the compass had actually been saved, rather then being scheduled to be saved
  -Remmove unused public interfaces
2016-11-07 13:07:59 +09:00
Randy Mackay
8a5d9a87d6 Copter: version to 3.4.2-rc1 2016-11-07 12:50:07 +09:00
Randy Mackay
4b1566516e Copter: 3.4.2-rc1 release notes 2016-11-07 12:49:41 +09:00
Randy Mackay
67bbf486fc AP_GPS: fix MAV compile error 2016-11-07 12:39:08 +09:00
Randy Mackay
0c54025e82 AP_GPS: MAV driver uses existing baud rates
GPS_INPUT messages can arrive through any mavlink serial port so we shouldn't be modifying any port's baud rates.
2016-11-07 12:38:58 +09:00
Leonard Hall
f4605b863c AC_PosControl: set Alt_Hold filter for PID not just D
We normally don't use the D term here so setting the filter for PID not
just D lets us smooth the throttle response.
2016-11-07 12:37:49 +09:00
Leonard Hall
71b5584d17 Copter: increase Autotune test time out for large copters 2016-11-07 12:37:45 +09:00
Leonard Hall
8cd8f0d570 Copter: rename variable ROLL_PITCH_YAW_INPUT_MAX
No functional change
2016-11-07 12:37:42 +09:00
Leonard Hall
5a344b8487 Copter: apply yaw expo to all modes 2016-11-07 12:37:38 +09:00
Randy Mackay
28ba8f9ecf Copter: ACRO_Y_EXPO default to 0
This value affects yaw in all flight modes.  Leonard is planning to change the name to make that more clear.
2016-11-07 12:36:41 +09:00
Randy Mackay
9c6a392687 Copter: only log proximity if sensor is enabled 2016-11-07 12:36:30 +09:00
Shingo Matsuura
6abe6448d6 AP_RangeFinder: change enum name, add "state" word 2016-11-07 12:36:15 +09:00
Shingo Matsuura
98ba554fdc AP_RangeFinder: change comment about fall through LEDDARONE_MODBUS_INIT case 2016-11-07 12:36:12 +09:00
Shingo Matsuura
22a2067375 AP_RangeFinder: add comment about no break at LEDDARONE_MODBUS_INIT case 2016-11-07 12:36:09 +09:00
Shingo Matsuura
05723ee4f5 AP_RangeFinder: remove case indent 2016-11-07 12:36:05 +09:00
Shingo Matsuura
c348a6d0fe AP_RangeFinder: change magic numbers to define 2016-11-07 12:36:02 +09:00
Shingo Matsuura
5b5c482e55 AP_RangeFinder: remove break in LEDDARONE_MODOBUS_INIT case and and use () around (read_len == 0) for clarity 2016-11-07 12:35:59 +09:00
Shingo Matsuura
023c613196 AP_RangeFinder: modified regarding to advices from @magicrub - san. 2016-11-07 12:35:57 +09:00
Shingo Matsuura
47d8e96f06 AP_RangeFinder: fixed LeddarOne busy wait 2016-11-07 12:35:53 +09:00
Randy Mackay
df8cc895b3 Copter: add compass health to arming check 2016-11-07 12:34:07 +09:00
Peter Barker
9dd4755084 AP_ADSB: do not transmit by default
In various countries transmitting on the ADSB frequencies is a
federal offence.

Let's not have our users do that be default.
2016-11-07 12:33:23 +09:00
Michael Oborne
5e63abf431 AP_GPS_SBF: change reported altitude from geoid to MSL 2016-11-07 12:33:14 +09:00
Randy Mackay
04c76843fc Copter: version to 3.4.1 2016-11-01 11:43:18 +09:00
Randy Mackay
7fbdc3d053 Copter: 3.4.1 release notes 2016-11-01 11:42:38 +09:00
Andrew Tridgell
12d0d161d7 PX4Firmware: submodule update
fixed PPM R/C input on pixracer
2016-11-01 11:42:36 +09:00
Lucas De Marchi
e9ae9c5c2a build: rephrase the need to read waf book
It's not needed and sometimes waf.io is offline, leaving people with the
impression they need to read it for compiling.
2016-11-01 11:42:32 +09:00
Lucas De Marchi
6a7aa38097 scripts: add cmake to install-prereq scripts 2016-11-01 11:42:29 +09:00
Jani Hirvinen
3c6e422a1b Update build_autotest.sh 2016-11-01 11:42:22 +09:00
Randy Mackay
ae78fd00a5 Copter: version to 3.4 2016-10-31 12:03:23 +09:00
Randy Mackay
aa9ff2975c Copter: 3.4 release notes 2016-10-31 12:00:48 +09:00
Andrew Tridgell
a494b2fd73 AP_RangeFinder: disabled LeddarOne driver
this driver is broken and could cause a vehicle to crash. It does busy
waits on a UART from the main thread.

It will be re-enabled when fixed
2016-10-31 11:58:47 +09:00
Randy Mackay
1a01fa9eb7 Copter: version to 3.4-rc7 2016-10-26 13:08:23 +09:00