Commit Graph

188 Commits

Author SHA1 Message Date
Kevin Hester 240a9ccaf0 AC: if vehicle is !flying show hb state as MAV_STATE_STANDBY
This helps GCSes determine the appropriate UI for the current vehicle
mode.
2013-09-09 20:51:54 +09:00
Randy Mackay 1d55fa6818 Copter: add arm check of GPS hdop when in Loiter 2013-09-09 14:03:40 +09:00
Andrew Tridgell 979636936d Copter: support reboot to bootloader 2013-09-04 11:59:02 +10:00
Andrew Tridgell 25d517f5d6 Copter: updates for new notify API 2013-08-30 13:01:35 +10:00
Andrew Tridgell d5e28e72cc Copter: support new RADIO_STATUS msg 2013-08-24 17:59:13 +10:00
Andrew Tridgell 01e19a32fe Copter: use the new scheduler load_average() call
this also simplifies the main loop
2013-08-02 18:46:34 +10:00
Randy Mackay 7ea971d948 Copter: check set_mode for failure
Previously if set_mode failed it would return the copter to stabilize
mode.  With this commit set_mode returns a true/false indicating whether
it succeeded or not so the caller can make the decision as to the
appropriate response which could be to stay in the current flight mode
or try another flight mode.
2013-07-20 11:01:10 +09:00
Randy Mackay 47ab02d686 Copter: bug fix to ROI to pull target from conditional command queue 2013-07-14 17:37:06 +09:00
Randy Mackay 5a40ee7a38 Copter: fix to gps present check in mavlink extended status 1 msg 2013-07-13 10:27:50 +09:00
Randy Mackay 66d7f7b026 Copter: GCS_mavlink only send waypoints to gcs3 if initialised
Also Load parameter defaults at initialisation (although defaults are
all zero anyway so should have no effect)
2013-07-13 10:12:01 +09:00
Andrew Tridgell da4137b731 Copter: changes for GPS field changes 2013-07-10 14:04:22 +10:00
Randy Mackay 0460147a15 Copter: guided mode yaw fix
Nose of copter now points at next guided point if it is more than 10m
away
2013-06-02 11:25:35 +09:00
Andrew Tridgell 30df8796ce Copter: fixed loading of waypoints
copter code assumes that command_total includes the home waypoint
2013-05-29 21:44:08 +10:00
Andrew Tridgell 903d5636bb Copter: added support for partial mission load
this allows individual waypoints to be updated in missions
2013-05-29 16:25:05 +10:00
Randy Mackay 1dbe98b566 Copter: display reason for pre-arm-check failures in GCS 2013-05-20 13:03:18 +09:00
Randy Mackay d10e3bc75f Copter: send_text_P bug fix for short messages 2013-05-20 12:52:20 +09:00
Randy Mackay 28c37dd798 Copter: do pre-arm checks when arming from GCS 2013-05-17 11:22:32 +09:00
Andrew Tridgell 9feb46c834 Copter: use new accel cal interact over MAVLink 2013-05-08 16:19:26 +10:00
Andrew Tridgell b6e3e59bc3 Copter: simplify setHIL for baro 2013-05-02 15:26:54 +10:00
Andrew Tridgell db57c8d7c5 Copter: removed the deprecated HIL sensors interface
must use the new HIL_STATE message now
2013-05-02 15:00:50 +10:00
Andrew Tridgell 172d9724df Copter: use new HIL compass API 2013-05-02 15:00:07 +10:00
Andrew Tridgell 25c576cad7 Copter: replaced constrain() with constrain_float() 2013-05-02 10:26:49 +10:00
Randy Mackay bab9fa25e5 Copter: add GCS failsafe 2013-04-29 21:30:22 +09:00
Randy Mackay 58d1da2d80 Copter: integrate AC_Fence in place of limits
Lesser functionality than limits but saves more than 150 bytes and it
works
2013-04-27 11:14:07 +09:00
Andrew Tridgell a0708460a4 Copter: convert to new logging system 2013-04-20 13:52:37 +10:00
Andrew Tridgell 67484a2ea1 Copter: make copter code compatible with the new logging system
not fully converted yet
2013-04-20 13:52:36 +10:00
Randy Mackay d2bd818b2d Copter: bug fix for auto_armed logic
Zero throttle when switching into an auto flight mode would cause the
motors to stop.
2013-04-17 21:28:42 +09:00
Randy Mackay 1ee825ee9a Copter: move alt and wp checking to AC_WPNAV
RTL fix so that if it starts rtl-ing from above 80m it returns home
while descending instead of descending at initial position.
add get and set_target_alt_for_reporting
2013-04-14 10:39:23 +09:00
Randy Mackay 58ed8cd544 Copter: replace set_next_WP with direct call to wp_nav 2013-04-14 10:37:55 +09:00
Randy Mackay 1dcd46bffc Copter: reduce compiler warnings 2013-04-05 22:25:58 +09:00
Michael Oborne 541fa13291 cleanup comments 2013-03-31 17:14:54 +08:00
Michael Oborne e80f2c094e HIL fix location, alt, mag from hil state message 2013-03-31 16:42:16 +08:00
Andrew Tridgell b280857025 Copter: use common angle wrap code 2013-03-29 13:14:31 +11:00
Randy Mackay f7d977fe37 Copter: add support for GPS fix type 2D 2013-03-27 11:41:47 +09:00
Andrew Tridgell d22a7c64c9 Copter: only enter CLI is link is idle when 3 enters are hit
this will prevent binary contents of RADIO packets being interpreted
as CLI enter line-feeds
2013-03-21 21:56:02 +11:00
Andrew Tridgell ce8313e8fb Copter: only allow CLI within 20s of startup and when motors not armed 2013-03-21 17:34:11 +11:00
Randy Mackay dcf21eee8f Copter: only allow entering the CLI within 30 seconds of start-up 2013-03-21 11:54:04 +09:00
Randy Mackay a17421da27 Copter: scale HIL accels consistently with Plane code 2013-03-19 15:07:15 +09:00
Randy Mackay b4b9d80c2f Copter: bug fix to accept HIL accel values correctly 2013-03-19 11:33:58 +09:00
Andrew Tridgell 952c56e990 Copter: fixed barometer init in HIL sensors mode 2013-03-18 16:20:25 +11:00
Andrew Tridgell ac06b5e62d Copter: remove unused function 2013-03-18 16:20:25 +11:00
Randy Mackay 597a4b912a Copter: fix to allow building HIL_MODE_SENSORS 2013-03-18 13:41:52 +09:00
Randy Mackay 61e29173e3 Copter: remove unused crosstrack variables and parameters
Cross track is still calculated internally to the wpnav controller so we
should move this to a library and still report it to the ground station
2013-03-17 16:46:31 +09:00
Randy Mackay f9539384a1 Copter: rename failsafe to failsafe_radio
Makes way for separation of failsafes for throttle, gps and gcs
2013-03-16 17:14:21 +09:00
Randy Mackay cb84ec9d9b Copter: add current based compass compensation 2013-03-03 23:02:36 +09:00
Randy Mackay 6601bd37cf Copter: integrate automatic roll and pitch trims 2013-02-19 12:51:24 +09:00
Michael Oborne 61e5b09f28 Send FS state to gcs for AC 2013-02-09 10:11:36 +08:00
Pat Hickey d418197898 ArduCopter: fixed memory unsafe member access in GCS_MAVLINK
* Smokey, this is not 'Nam. this is bowling. there are rules
2013-02-02 22:43:56 -08:00
Andrew Tridgell 47cc247046 Copter: limit number of bytes read per GCS check 2013-01-23 09:34:54 +11:00
Andrew Tridgell ae5f46abc9 Copter: fixed mavlink fetch of 16 character parameter 2013-01-21 16:52:01 +11:00