Commit Graph

16484 Commits

Author SHA1 Message Date
Andrew Tridgell 5241c66b57 build: added SKETCHBOOK to defines for native build
used by SITL to find JSBSim aircraft
2015-05-10 21:01:30 +10:00
Andrew Tridgell 8ec98a5ec9 SITL: make it possible to connect two SITL instances together
this adds --client to set uartC as a tcp client rather than a TCP
server
2015-05-10 15:36:18 +10:00
Andrew Tridgell ff126db1d3 Plane: make GUIDED behaviour match copter
we now have to be in GUIDED mode to accept a new GUIDED WP. When
entering GUIDED mode start loitering about the current position
2015-05-10 14:28:02 +10:00
Andrew Tridgell 3991e0c476 DataFlash: fixed sign of sv in GRAW message 2015-05-10 12:15:04 +10:00
Peter Barker 32beaea48c Replay: use column labels rather than IDs in Replay.pde 2015-05-10 08:33:32 +10:00
Andrew Tridgell 6b668c08dc autotest: use internal rover sim in sim_vehicle.sh 2015-05-09 21:22:02 +10:00
Andrew Tridgell 3529e02675 AP_AHRS: if we have 3 gyros then only use first two
the 3rd gyro on a PH2 has a lot more noise as it is not vibration
isolated
2015-05-09 21:00:49 +10:00
Peter Barker f3d1242d60 Replay: update Attitude on ATT rather than AHRS2 2015-05-09 20:54:07 +10:00
Paul Riseborough cb59570938 AP_NavEKF: Remove bug preventing external selection of optical flow mode 2015-05-09 18:31:18 +10:00
Andrew Tridgell d61848817b Copter: double the threshold for accel inconsistency on IMU3
IMU3 varies in temperature a lot compared to IMU1/IMU2, so needs a
higher threshold to prevent false positives
2015-05-09 18:28:59 +10:00
Randy Mackay 3390d9932e AP_AHRS: fix example sketch 2015-05-09 12:23:05 +09:00
Holger Steinhaus 1cdc5f7c7f LogAnalyser: adapt to new APM:* vehicle names 2015-05-09 12:20:28 +09:00
Holger Steinhaus 46c3c26065 LogAnalyser: fix buffer calculations 2015-05-09 12:20:25 +09:00
Holger Steinhaus a146b188a7 LogAnalyser: fix parsing of log messages without attributes (e.g. STRT) 2015-05-09 12:20:23 +09:00
Tom Pittenger 2deb0e08ea AP_NavEKF: replace fabs() with fabsf() 2015-05-09 09:57:27 +10:00
Tom Pittenger 79605de8f5 AP_Mission: replace fabs() with fabsf() 2015-05-09 09:57:27 +10:00
Tom Pittenger e20ffa8c75 AP_Math: replace fabs() with fabsf() 2015-05-09 09:57:27 +10:00
Tom Pittenger 1c8efb25a8 AP_HAL_SITL: replace fabs() with fabsf() 2015-05-09 09:57:26 +10:00
Tom Pittenger 4b6d0d8e24 AP_HAL: replace fabs() with fabsf() 2015-05-09 09:57:26 +10:00
Tom Pittenger 9d74f57ed3 AP_PID: replace fabs() with fabsf() 2015-05-09 09:57:26 +10:00
Tom Pittenger 70bef20a29 AC_AttitudeControl: replace fabs() with fabsf() 2015-05-09 09:57:26 +10:00
Tom Pittenger eb2bfcd2d3 Plane: replace fabs() with labs(), unnecessary int to float conversion 2015-05-09 09:57:25 +10:00
Tom Pittenger 2e191e5a3d Copter: replace fabs() with fabsf() 2015-05-09 09:57:25 +10:00
Andrew Tridgell 1127b716c4 SITL: lower the default noise
prevents problems calibrating the gyro
2015-05-09 07:22:37 +10:00
Grant Morphett 0f13bc6d2a Rover: Updates to guided mode to work correctly on Rover 2015-05-08 21:03:30 +10:00
Andrew Tridgell 2552acbf12 AP_Arming: fixed accel cal test in arming
use a per-imu time of last cal pass, and triple accel threshold for
IMU3. Raise threshold to 0.5 for IMU1/IMU2
2015-05-08 21:01:52 +10:00
Tom Pittenger baed82d1c2 Copter: if receiving last mission item then log new mission to dataflash 2015-05-08 21:01:52 +10:00
Tom Pittenger 06796cd994 Rover: if receiving last mission item then log new mission to dataflash 2015-05-08 21:01:51 +10:00
Tom Pittenger ba29967454 Plane: if receiving last mission item then log new mission to dataflash 2015-05-08 21:01:51 +10:00
Tom Pittenger d94c95a6ef GCS_MAVLink: return true if mission recieve is complete
when handing a mission item, and that is the last item, return true so that whoever is handling this knows we have a new mission list. From here we can log a new mission
2015-05-08 21:01:51 +10:00
Paul Riseborough a232606fc9 AP_NavEKF: Prevent EKF yaw errors due to fast yaw spins
Prolonged yaw rotations with gyro scale factor errors can cause yaw errors and gyro bias estimation errors to build up to a point where EKF health checks fail.
This patch introduces the following protections:

1) The assumed yaw gyro error is scaled using a filtered yaw rate and an assumed 3% scale factor error (MPU6000 data sheet)
2) When the filtered yaw rate magnitude is greater than 1 rad/sec, the Z gyro bias process noise is zeroed and the state variance set to zero to inhibit modification of the bias state
3) When the filtered yaw rate magnitude is greater than 1 rad/sec, the magnetometer quaternion corrections are scaled by a factor of four to maintain tighter alignment with the compass
2015-05-08 16:47:31 +09:00
Paul Riseborough 08382373f1 AP_NavEKF: Reduce likelihood of in-air switch to GPS with a bad heading
Increases magnetometer weighting on yaw corrections when there there is no other aiding to constrain yaw drift.
Prevents switch to GPS if magnetometer data is failing innovation checks which indicates a bad yaw angle
2015-05-08 16:47:29 +09:00
Fabio Kruger d585d5691d autotest: Enables copy to clipboard from xterm shells. Useful to copy gdb output. 2015-05-08 16:42:43 +10:00
Andrew Tridgell 7d3b3533e4 autotest: updated wiki page names for auto-generated parms 2015-05-08 16:38:17 +10:00
Dario Lindo Andres 4884932280 Rover: Updated AUTO_TRIGGER_PIN value definitions
Mission Planner and parameter.h definitions seem to be outdated. A bit
confusing because when its readed, you think you need to define it
between 0-8 (APM boards) instead of 50-55 (PX4-Pixhawk boards).
2015-05-08 16:30:35 +10:00
Andrew Tridgell fd84a6b493 Plane: fixed missing break in fence floor logic 2015-05-08 16:27:16 +10:00
Michael Day ee14678d2a Plane: Allow disabling of only the fence floor. 2015-05-08 16:25:22 +10:00
Lucas De Marchi b7ebff409b ArduCopter: re-align defines after ifdef removal
Re-align the defines after removal of 100Hz main loop rate.
2015-05-08 14:55:43 +09:00
Lucas De Marchi 4f6c32cb35 ArduCopter: remove dangling ifdefs for 100Hz main loop
ArduCopter doesn't support main loop of 100Hz anymore. Remove the
missing ifdefs checking for MAIN_LOOP_RATE.
2015-05-08 14:55:41 +09:00
Randy Mackay 3781f133d7 AC_AttControlHeli: remove unused definitions 2015-05-08 14:50:38 +09:00
Randy Mackay bef5633ed5 AC_AttControlHeli: use params from parent class 2015-05-08 14:50:36 +09:00
Randy Mackay 7951346d72 AC_AttControl: bf_feedfoward_save made more concise 2015-05-08 14:29:49 +09:00
Randy Mackay 4f52aaa3a3 Copter: fix tradheli arming message 2015-05-08 14:14:38 +09:00
Randy Mackay 3d9a6a69e2 MotorsHeli: COLYAW to float 2015-05-08 14:14:36 +09:00
Randy Mackay edfa206bb8 Motors_Heli: nest heli params 2015-05-08 14:14:35 +09:00
Randy Mackay 68b05a4ca2 AP_Motors: is_throttle_mix_min returns bol 2015-05-08 14:14:32 +09:00
Leonard Hall cf45a1cf3a AC_AttitudeControl: add get accel and save ff 2015-05-08 14:14:30 +09:00
Leonard Hall 7cccb73103 Copter: yet more Autotune Updates 2015-05-08 14:14:28 +09:00
Leonard Hall 92fe75f396 Copter: more Autotune updates 2015-05-08 14:14:26 +09:00
Leonard Hall 05103d9f9c Copter: Autotune update 2015-05-08 14:14:23 +09:00