Commit Graph

11457 Commits

Author SHA1 Message Date
Andrew Tridgell 78ba1a33aa Copter: support 18 input channels in MAVLink 2014-03-25 14:47:43 +11:00
Andrew Tridgell 4ac529a0dd Rover: support 18 input channels in MAVLink 2014-03-25 14:47:43 +11:00
Andrew Tridgell 32a1c717e6 Plane: report up to 18 RC input channels via MAVLink 2014-03-25 14:47:43 +11:00
Andrew Tridgell 64772cede8 GCS_MAVLink: rebuild MAVLink headers 2014-03-25 14:47:43 +11:00
Andrew Tridgell d24547b390 GCS_MAVLink: merge latest msgs from upstream 2014-03-25 14:47:05 +11:00
Andrew Tridgell ff70c87f0b Plane: support 14 RC channels on PX4 2014-03-25 14:47:05 +11:00
Andrew Tridgell c0767eebff Copter: support 14 RC channels on PX4 2014-03-25 14:47:05 +11:00
Andrew Tridgell ce3ed33649 Rover: support 14 RC channels on PX4 2014-03-25 14:47:05 +11:00
Andrew Tridgell 09ed8d5819 Plane: updates for new RCInput API 2014-03-25 14:47:05 +11:00
Andrew Tridgell e1b9135946 Copter: updates for new RCInput API 2014-03-25 14:47:04 +11:00
Andrew Tridgell 843318f58c Rover: updates for new RCInput API 2014-03-25 14:47:02 +11:00
Andrew Tridgell 6eee2421cc AP_HAL: removed RCInput valid_channels() and added new_input() and num_channels()
the valid_channels() method was inconsistently implemented between
boards, and served two quite different purposes. It is clearer as two
functions
2014-03-25 14:39:41 +11:00
Andrew Tridgell 27dbf608c8 DataFlash: fixed a build warning 2014-03-25 13:31:21 +11:00
Andrew Tridgell 2a9a89e020 HAL_PX4: fixes for merged upstream PX4Firmware 2014-03-25 10:30:00 +11:00
priseborough 17cdac7bc8 AP_NavEKF : Clean up angle and mag field initialisation
This path reduces duplicated code, eliminates unused variables and
causes the earth magnetic field states to be reset when exiting static mode
which will occur every time copter is armed. This enables copters to be
powered on and initialised inside vehicles or houses, without bad earth
field values affecting flight.
2014-03-24 19:54:48 +11:00
Andrew Tridgell 3362e42478 Copter: consider health of primary compass in SYS_STATUS, pre-arm and compassmot
this should prevent users from taking off with only secondary compass
2014-03-24 19:52:08 +11:00
Andrew Tridgell f05b90bfd2 GCS_MAVLink: fixed some compiler warnings 2014-03-24 12:52:39 +11:00
Andrew Tridgell 0af35bd636 AP_Mission: fixed some compiler warnings 2014-03-24 12:52:27 +11:00
Andrew Tridgell 2763393908 AP_InertialSensor: fixed some compiler warnings 2014-03-24 12:52:16 +11:00
Andrew Tridgell b8781ccea7 Plane: fixed a compiler warning 2014-03-24 12:52:05 +11:00
Andrew Tridgell c6f3e0a81c AP_GPS: fixed example builds 2014-03-24 12:20:34 +11:00
Andrew Tridgell d1a650a527 Rover: updates for GPS changes 2014-03-24 12:04:58 +11:00
Andrew Tridgell 11e5b95878 Copter: updates for GPS changes 2014-03-24 12:04:46 +11:00
Andrew Tridgell e8b9f22b01 Plane: updates for GPS changes 2014-03-24 12:04:31 +11:00
Andrew Tridgell 193a225887 FollowMe: update for GPS changes 2014-03-24 12:04:20 +11:00
Andrew Tridgell e40c178e11 AntennaTracker: fixed build with GPS changes 2014-03-24 12:04:09 +11:00
Andrew Tridgell 9b92e25cdc VARTest: fixed build 2014-03-24 12:03:56 +11:00
Andrew Tridgell 271ba3a6bc AP_InertialNav: fixed example build 2014-03-24 12:03:47 +11:00
Andrew Tridgell 1b1a92251f DataFlash: allow drivers to setup their own logging formats
this allows drivers to ask the dataflash driver to add new log formats
2014-03-24 12:03:31 +11:00
Andrew Tridgell 5630bb1ef6 AP_GPS: added detailed hardware status logging for uBlox
this gives us noise, jamming and RF information from the uBlox
protocol. This will hopefully allow a more detailed investigation of
antenna choices and RF interference
2014-03-24 12:02:37 +11:00
Andrew Tridgell 7ff293ca38 AP_GPS: added DataFlash to GPS init to allow for detailed logging
this will allow GPS drivers to log much more detailed device specific
information
2014-03-24 12:01:13 +11:00
Andrew Tridgell d124fdb182 Plane: report compass unhealthy if primary compass unhealthy 2014-03-24 07:03:53 +11:00
Andrew Tridgell bf4566095a Rover: report unhealthy compass if primary compass unhealthy 2014-03-24 07:03:35 +11:00
Andrew Tridgell 485ae596fc AP_Compass: fixed last_update for secondary compass with primary failed
this ensures EKF and DCM will use a secondary compass if the primary
fails
2014-03-23 22:05:17 +11:00
Matthew Lloyd 60a4f74de6 AP_Compass: avoid division by zero if we haven't received any mag reports
Otherwise, get_field() will return NaNs after once every few calls to
read() during compassmot on PX4 platforms, which causes compassmot to fail.

This is a quick hack around the deeper issue, which could be something
like the PX4 mag driver experiencing starvation and skipping mag reports,
buffer overrun or something else that causes mag reports to be dropped.
Or perhaps we should never expect in the first place that we will always
receive at least one mag report between calls to read().
2014-03-23 21:22:32 +11:00
priseborough 7ae86b3979 AP_NavEKF : Track baro height observations pre-arm
This prevents copter from failing the pre-arm height discrepancy test
2014-03-23 18:25:50 +11:00
priseborough 7780d55788 AP_NavEKF : Prevent large magnetic field adaptations early in flight 2014-03-22 19:55:26 +11:00
Andrew Tridgell af2ae30b65 AntennaTracker: fixed APM2 serial speed handling
need to change based on USB mux status
2014-03-22 19:31:51 +11:00
Andrew Tridgell 3a3a074fab AntennaTracker: fixed ballerina and more accurate tracking
implement new parameter options
2014-03-22 19:31:51 +11:00
Andrew Tridgell 262f8b9f48 AntennaTracker: added STOP mode
to stop tracker moving
2014-03-22 19:31:51 +11:00
Andrew Tridgell ba312ee68e AntennaTracker: lots of new parameters
YAW_SLEW_TIME, PITCH_SLEW_TIME, MIN_REVERSE_TIME, START_LATITUDE,
START_LONGITUDE and STARTUP_DELAY

See the parameter docs for explanations
2014-03-22 19:31:41 +11:00
Randy Mackay 3efad982c0 GCS_Mavlink: return MISSION_INVALID when conversion fails
Requested by MichaelO to allow better error message to be displayed to
user when the mission upload from the GCS to vehicle fails
2014-03-22 11:29:36 +09:00
Paul Riseborough f7007569d1 AP_NavEKF : Fix bug that limits copter sensor delay compensation to 125
msec
2014-03-21 21:52:20 +11:00
Paul Riseborough b2c0979947 AP_NavEKF : Fixes bug that causes accel bias to diverge in static mode, preventing copter arming 2014-03-21 21:49:50 +11:00
Randy Mackay 71f61c9bef Copter: fix typo to show ATUN FMT in dataflash logs 2014-03-21 15:44:06 +09:00
Andrew Tridgell f6b56b5d26 Plane: fixed mission resume at arbitrary waypoints
on completion of a mission a user can ask for it to resume at any wp
2014-03-21 10:21:37 +11:00
Andrew Tridgell a55c4e2296 AP_TECS: set target airspeed, not min/max airspeed, on landing
this seems to prevent ballooning of the altitude when we are in the
landing approach, and gives a much smoother landing
2014-03-20 17:34:39 +11:00
Andrew Tridgell 98530928b5 AP_TECS: make target landing speed a float
some users may want more precise control
2014-03-20 17:34:36 +11:00
Andrew Tridgell 861523a00a Plane: use TECS get_target_airspeed() 2014-03-20 17:34:33 +11:00
Andrew Tridgell b1ad2be897 AP_SpdHgtControl: added get_target_airspeed() interface 2014-03-20 17:34:29 +11:00