Commit Graph

16724 Commits

Author SHA1 Message Date
Peter Barker
56a8bf5460 Replay: use the message's name rather than number to determine which message handler to use for a message 2015-04-28 21:10:16 +10:00
Peter Barker
42351edfa6 Replay: use dataflash log format messages to extract message data instead of using structs
dataflash logs have been self-describing since 2013.  Replay now uses the descriptions supplied in the dataflash log to understand the format of any particular message.

This change should allow fields to be added to messages with no impact on Replay.
2015-04-28 21:10:15 +10:00
Randy Mackay
60bc986e71 VARTest: remove duplicate ap_message enum 2015-04-28 20:09:07 +09:00
Randy Mackay
64629914a4 Copter: fix RTL alt when no using Rally points 2015-04-28 17:20:00 +09:00
David Dewey
0545185218 Copter: RTL at no less than 2m above home alt 2015-04-28 17:19:56 +09:00
Randy Mackay
67b0c6f5c4 AC_PID: replace is_equal with is_zero 2015-04-28 16:22:08 +09:00
Randy Mackay
3514177314 AC_PI_2D: minor format fix 2015-04-28 16:21:53 +09:00
dgrat
303cfd683a AC_PID: replace floating point '==' with is_equal
Also add div-by-zero check to fix calc_filt_alpha

Also get_i and get_shrink_i do not need to set values to zero in Vector2f
constructor because this is already done.
2015-04-28 16:21:46 +09:00
Randy Mackay
0392292489 AP_Math: inline is_equal, add is_zero 2015-04-28 16:19:01 +09:00
dgrat
726d7df710 AP_Math: add is_equal to compare floats 2015-04-28 16:18:59 +09:00
Grant Morphett
444841537e AP_Camera: Just putting the newline at the end of the file. 2015-04-28 15:23:34 +09:00
Andrew Tridgell
007b01533d AP_InertialSensor: switched to 16g accel range for MPU9250
this matches the Pixhawk, and makes us less prone to vibration. We
have seen clipping at 8g
2015-04-28 15:30:29 +10:00
Andrew Chapman
4311cd4e7a Copter: add logging for CH6 parameter tuning
Logs CH6 tuning values to a new PTUN log struct, specific to
APM::Copter at this point
2015-04-28 14:14:01 +09:00
Randy Mackay
2baf79ee7a Copter: remove TUNE param descr for AHRS Yaw/RP kP 2015-04-28 14:00:24 +09:00
Randy Mackay
33431acaa4 AC_WPNav: protect against div-by-zero related to gnd_speed_limit 2015-04-28 13:53:19 +09:00
Paul Riseborough
7481217445 AC_WPNav: Improve application of EKF optical flow speed limit 2015-04-28 13:53:17 +09:00
Andrew Tridgell
d1de89f933 Travis: disable navio build due to another travis compiler bug 2015-04-28 14:50:10 +10:00
Andrew Tridgell
514c349060 AP_NavEKF: raise DCM error_rp threshold to 0.05
it was failing on many boards with fixed wing
2015-04-28 14:07:39 +10:00
Andrew Tridgell
6bfca648b9 AP_AHRS: raise DCM P gains when disarmed for first 20 seconds 2015-04-28 14:07:39 +10:00
Andrew Tridgell
cb2427ef9e Copter: removed special cases for DCM gain changes on arm/disarm
copter no longer uses DCM, so it doesn't need these special cases
2015-04-28 14:07:39 +10:00
Andrew Tridgell
42d2addbdd HAL_SITL: removed the special code for cygwin
we no longer need special timing code for cygwin
2015-04-28 13:15:40 +10:00
Andrew Tridgell
063a33ebce HAL_SITL: implement barriers using pthread condition variables
this avoid pthread_barrier_*, which is not available on cygwin
2015-04-28 13:14:12 +10:00
Tom Pittenger
c974134ea4 ArduPlane: RTL Autoland skip HOME
With RTL_AUTOLAND=1 we navigate to HOME then to the DO_LAND_START commands. Now with RTL_AUTOLAND=2 we head directly to the DO_LAND_START commands and thus skip changing altitude to ALT_HOLD_RTL and head directly to the first land waypoint as if it was the next normal waypoint.
2015-04-28 12:09:00 +10:00
Staroselskii Georgii
9517bb3049 Travis: added navio target 2015-04-28 11:43:56 +10:00
Jonathan Challinger
3812773485 AP_Math: make quaternion divide by zero protection more conservative 2015-04-28 11:42:13 +10:00
Jonathan Challinger
fb8da1b2d8 AP_Math: add get_euler_(roll|pitch|yaw) functions to quaternion 2015-04-28 11:42:13 +10:00
Andrew Tridgell
020d9ea78a HAL_PX4: only consider power to have changed when armed
this prevents false positives with multi-battery setups
2015-04-28 11:05:29 +10:00
Andrew Tridgell
3c9ed9b5a6 Plane: don't limit down pitch during landing
there is no reason for a special case for aircraft without airspeed
sensors
2015-04-28 09:25:49 +10:00
Randy Mackay
94737e4df6 Tracker: add SYSID_TARGET and request 1hz pos data from vehicle 2015-04-27 16:58:05 +09:00
Randy Mackay
10b9f2ebe0 Tracker: snoop on all channels
This ensures we check for vehicle data on all channels
2015-04-27 16:58:02 +09:00
Randy Mackay
212e4940d4 Tracker: version to 0.5 2015-04-27 12:10:21 +09:00
Randy Mackay
404df7fe7d Tracker: add DISTANCE_MIN parameter
Vehicles will only be tracked if they are at least DISTANCE_MIN meters
away from the tracker
2015-04-27 12:10:20 +09:00
Randy Mackay
f74d2101d1 Tracker: add SERVO_TEST mode
tracker switches into this mode when it receives a do-set-servo command
from the GCS.  In this mode the tracker simply moves the servo to the
specified pwm.
2015-04-27 12:10:19 +09:00
Randy Mackay
f7f5040d2d Tracker: replace abs with labs for yaw servo 2015-04-27 12:10:18 +09:00
Randy Mackay
608bb3d611 Notify: minor format fix 2015-04-27 12:10:17 +09:00
Randy Mackay
ebf700d736 Tracker: fix notify initialisation
notify should be initialised before setting the initial startup flag
status
2015-04-27 12:10:16 +09:00
Andrew Tridgell
028248d1f5 HAL_SITL: avoid floating point exceptions on i386
fixes issue #2147
2015-04-27 13:09:21 +10:00
Andrew Tridgell
4e86a6cd0e GCS_MAVLink: merged upstream header changes 2015-04-27 09:00:38 +10:00
Randy Mackay
35874292a0 AC_WPNav: move stop below all loiter methods
No functional change
2015-04-26 16:26:53 +09:00
Robert Lefebvre
1aa696bc10 Copter: Implement Stop Mode 2015-04-26 16:11:47 +09:00
Robert Lefebvre
4a7fe83b0f AC_WPNav: Create Stop Mode functions 2015-04-26 16:11:45 +09:00
Robert Lefebvre
8e4268ddd3 Copter: Initial creation of control_stop file 2015-04-26 16:11:43 +09:00
Andrew Tridgell
c73945686c Plane: use ahrs.yaw_sensor not direct compass read for yaw
also use 10 degrees of margin, to cope with fast yaw changes (this
function is called at only 10Hz)
2015-04-25 09:12:17 +10:00
Andrew Tridgell
343a682d22 Plane: fixed conditional for 0 lat/lon 2015-04-25 09:12:17 +10:00
Andrew Tridgell
fdac41dbab GCS_MAVLink: re-generate headers 2015-04-25 09:12:16 +10:00
Michael Day
607d9ca839 Plane: Implementation of do_ and verify_ for MAV_CMD_NAV_LOITER_TO_ALT 2015-04-25 09:12:16 +10:00
Michael Day
3d3267d472 AP_Mission: Now support mission item MAV_CMD_NAV_LOITER_TO_ALT 2015-04-25 09:12:16 +10:00
Michael Day
98d7f943ef GCS_MAVLink: Added definition for MAV_CMD_NAV_LOITER_TO_ALT 2015-04-25 09:12:16 +10:00
Andrew Tridgell
bd32774768 PX4: added ver command
this allows us to see what silicon revision the stm32 is
2015-04-25 07:34:56 +10:00
Jonathan Challinger
a07b322d31 AP_Motors: set_throttle takes a float 2015-04-24 16:30:45 +09:00