Commit Graph

396 Commits

Author SHA1 Message Date
Randy Mackay
67f48168a8 Copter: send OPTICAL_FLOW msg to GCS 2014-12-08 14:58:31 +09:00
Randy Mackay
641c770726 Copter: send optflow health in extended status 2014-12-08 14:58:28 +09:00
Randy Mackay
13b8159fb5 Copter: only allow one preflight calibration at a time 2014-11-21 22:00:45 +09:00
Randy Mackay
330b52194f Copter: change to switch order in guided spline
No functional change
2014-11-19 12:06:30 -08:00
Arthur Benemann
db89bd6f03 Copter: correct frame/location of guided spline 2014-11-19 11:59:13 -08:00
Randy Mackay
c6e70179d2 Copter: move MOUNT_STATUS lower in GCS_MAVLink
No functional change
2014-11-17 15:59:41 -08:00
Arthur Benemann
6bee8969a1 Copter: append MOUNT_STATUS message to STREAM_EXTRA3 messages
The msg is now periodically sent to the GCS, instead of only on request.STREAM_EXTRA3
2014-11-17 15:59:26 -08:00
Jonathan Challinger
387f3276cb Copter: handle SET_POSITION_TARGET mavlink messages 2014-11-17 14:38:55 -08:00
Arthur Benemann
f24f5a6a32 Copter: remove call to camera.configure and control
The do_take_picture() function must be called for logging to occur.
configure_msg is empty at the moment so the call to this is remove
2014-11-11 10:31:49 -08:00
Randy Mackay
44dbf50101 Copter: fix camera feedback msg handling
If the camera was disabled, camera message handling would fall though to
status-text msg handling.
2014-10-31 14:46:47 +09:00
Arthur Benemann
b587025ad1 Copter: send a camera_feedback message when there is a camera trigger 2014-10-31 14:46:42 +09:00
Randy Mackay
cce876c2f9 Copter: fail to arm if gyro cal fails 2014-10-29 15:36:29 +09:00
Randy Mackay
0ac3267d52 Copter: reset ahrs gyro drift after gyro calibration 2014-10-28 20:25:36 +09:00
benoit35690
f866bf979e Copter: fix compiler warnings in GCS_Mavlink.pde 2014-10-21 12:00:01 +09:00
benoit35690
b63f701fd3 Copter: minor formatting fix 2014-10-21 11:59:48 +09:00
Andrew Tridgell
c3d839456b Copter: support logging while disarmed 2014-10-17 16:29:59 +09:00
Randy Mackay
3201a8dbca Copter: integrate optflow_enable param move to optflow class 2014-10-15 16:35:43 +09:00
Randy Mackay
6a225865ce Copter: accept velocity requests in Auto-Guided mode 2014-10-14 11:27:34 +09:00
Randy Mackay
c636ea9101 Copter: support SET_POSITION_TARGET messages 2014-10-13 21:55:17 +09:00
Jonathan Challinger
2b0cffda29 Copter: move all arm check logic into arm_checks 2014-10-11 15:34:12 +09:00
Randy Mackay
a8733ae8a8 Copter: support pre-flight calibration of gyro 2014-10-09 10:00:15 +09:00
Randy Mackay
9a0a83f404 Copter: report gyro unhealthy if failed calibration 2014-10-09 10:00:12 +09:00
Randy Mackay
f059af2386 Copter: only report ahrs unhealthy after initialisation 2014-10-02 14:41:26 +09:00
Andrew Tridgell
f2e6fa3fb0 Copter: use handle_set_mode() 2014-10-01 14:19:31 +10:00
Jonathan Challinger
73e1719ee1 Copter: print frame type in log headers 2014-09-27 16:11:21 +09:00
Randy Mackay
1a249a8129 Copter: check target of set-mode request from GCS
Issue discovered and fix contributed by Deadolous
2014-09-27 12:22:12 +09:00
Randy Mackay
ef0e37b478 Copter: bugfix to condition-yaw for relative angles
Thanks to roque-canales for raising the issue and paradisephil for finding
the specific piece of code that went wrong and suggesting the fix.
2014-09-26 12:22:58 +09:00
Randy Mackay
2efeb768e0 Copter: allow GCS to turn safety switch on/off 2014-09-17 21:51:25 +09:00
Randy Mackay
9bcf9a31ed Copter: set sys_status motor outputs bit from safety switch 2014-09-17 21:51:23 +09:00
Randy Mackay
9f3803052f Copter: add support for DO_PARACHUTE from GCS
Mission command support was already included but this adds support for
DO_PARACHUTE received as a COMMAND_LONG message which are sent from the
GCS when the command should be executed immediately
2014-09-17 21:14:26 +09:00
Randy Mackay
bbe4438a6b Copter: add support for DO_GRIPPER command 2014-09-17 21:14:19 +09:00
Randy Mackay
294f836c8c Copter: never send unhealthy terrain status
Copter does not yet rely on the terrain data (it's for informational
purposes only) so we will temporarily disable the failure flags to the
GCS to avoid support calls
2014-09-09 22:19:20 +09:00
Randy Mackay
bf18fb896a Copter: send extended status to GCS only after initialisation 2014-09-09 22:17:46 +09:00
Randy Mackay
4a06941a39 Copter: individual accel and gyro status to GCS 2014-09-03 11:22:51 +09:00
Randy Mackay
a83a47682d Copter: remove get_angle_targets_for_reporting fn
this saves a tiny amount of time by removing the memory copy of a
Vector3f
2014-08-22 22:56:21 +09:00
Andrew Tridgell
7618ffde63 Copter: show firmware version on param fetch
fixes pull #1320

thanks Arthur!
2014-08-22 21:13:11 +10:00
Randy Mackay
f490a289de Revert "Copter: use rcmap when sending radio_in to GCS"
This reverts commit 716f625924.
2014-08-16 20:31:24 +09:00
Randy Mackay
716f625924 Copter: use rcmap when sending radio_in to GCS 2014-08-16 15:27:49 +09:00
Randy Mackay
7686660c73 Copter: use baro healthy() 2014-08-14 16:03:23 +09:00
Randy Mackay
1e374ab42b Copter: report baro health to GCS 2014-08-14 16:02:49 +09:00
Andrew Tridgell
e260f1c569 Copter: convert to using StorageManager 2014-08-13 18:46:44 +10:00
ggregory8
e8b0c7a7e7 Copter: Handle MAV_CMD_NAV_TAKEOFF command to takeoff in guided mode only 2014-08-05 10:25:31 +09:00
Randy Mackay
b09568ffb5 Copter: use hal.rcout to send servo output to GCS 2014-07-30 17:31:11 +09:00
Andrew Tridgell
b36e4b4122 Copter: avoid integer underflow in mavlink txspace check 2014-07-27 22:18:51 +10:00
Andrew Tridgell
8e65e5bff0 Copter: replace HAVE_AP_TERRAIN with AP_TERRAIN_AVAILABLE 2014-07-25 07:59:54 +10:00
Andrew Tridgell
8d04deff6a Copter: added terrain status reporting 2014-07-24 21:50:20 +10:00
Andrew Tridgell
0562907d9f Copter: added AP_Terrain library 2014-07-24 21:46:06 +10:00
Supergoldfish
13563f4344 Copter: added Sonar Voltage reporting to GCS mavlink
Rangefinder class will return 0 if not applicable.
2014-07-23 20:57:36 +09:00
Randy Mackay
7bda6cbadf Copter: integrate EKF check
Check runs at 10hz
Log ekf check failures and ekd failsafes
2014-07-22 23:13:25 +09:00
Andrew Tridgell
71d2333ea8 Copter: changes for more common mavlink code 2014-07-13 15:37:50 +10:00
Randy Mackay
65e5367619 Copter: rename hybrid to poshold 2014-07-11 14:09:01 +09:00
Randy Mackay
b565d43d5d Copter: PREFLIGHT_SET_SENSOR_OFFSETS used to set compass offsets
remove deprecated ardupilot specific SET_MAG_OFFSETS
2014-07-10 20:25:18 +09:00
Andrew Tridgell
a4b9b989b7 Copter: convert to new AP_RangeFinder API 2014-07-08 15:08:18 +10:00
Randy Mackay
81355d1adf Copter: DO_SET_ROI accepted outside missions
Moved ROI logic to new set_auto_yaw_roi function.
2014-07-06 17:02:06 +09:00
MousS
ae8fb3f1c5 Copter: MAV_CMD_CONDITION_YAW accepted outside missions 2014-07-06 17:01:15 +09:00
Niels Joubert
10b4757706 ArduCopter: Move MAVLink size check into library 2014-06-30 10:30:17 +10:00
Andrew Tridgell
edafe7100b Copter: update for AP_Mount change 2014-06-18 12:04:48 +10:00
Randy Mackay
01da4e29fb Copter: use relative_alt flag when decoding change_alt command 2014-06-17 20:53:41 +10:00
Randy Mackay
d0194b7a9d Copter: remove home variable
home has moved to ahrs
saves 15 bytes of RAM
2014-06-11 11:05:15 +09:00
Valentin Brossard
9fcfea5404 Copter: accept DO_CHANGE_SPEED outside of missions
https://github.com/diydrones/ardupilot/issues/1095
2014-06-06 16:13:22 +09:00
Andrew Tridgell
1dbbdde8ef Copter: use new GCS_Common.cpp functions 2014-05-28 09:35:57 +10:00
Andrew Tridgell
a55c511f63 Copter: updates for new GCS_MAVLink API 2014-05-21 12:45:25 +10:00
Randy Mackay
481a55867e Copter: only send sonar distance to GCS when sonar enabled 2014-05-16 14:46:56 +09:00
Ben Nizette
8c7b4feac1 Copter: send sonar distance to GCS via MAVLink
At the moment, the copter sonar set up does not have access to the
raw sonar readings so this code sets the voltage field to zero.
2014-05-16 14:46:11 +09:00
Andrew Tridgell
427a638296 Copter: added reporting of AHRS health 2014-05-15 21:14:21 +10:00
Randy Mackay
ae9477600c Copter: add mavlink motor_test
Based on original work by Nils Hogberg
2014-04-29 11:31:45 +09:00
Randy Mackay
b9b3a39a83 Copter: fence enable/disable via MAVLink 2014-04-27 16:18:17 +09:00
Randy Mackay
d3411e45bb Copter: use get_current_nav_index() 2014-04-27 16:00:44 +09:00
Randy Mackay
b5ed23f592 Copter: integrate skeleton Hybrid mode 2014-04-23 14:59:17 +09:00
Andrew Chapman
fa3732ac6d Copter: integrate AP_Rally 2014-04-19 15:00:23 +09:00
jschall
ff9838ea27 Copter: Document stream rate parameter functionality 2014-04-15 16:05:45 +09:00
Andrew Tridgell
ae350e42aa Copter: show next wp when not running a mission
this lets the GCS know what wp would be run if auto mode is selected
2014-04-07 11:41:05 +10:00
Andrew Tridgell
454d1f26c3 Copter: added support for SERIAL_CONTROL message 2014-04-05 07:34:34 +11:00
Andrew Tridgell
339689b578 Copter: fixed load average for different loop rates
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
2014-04-04 21:37:56 +11:00
Andrew Tridgell
7bf12cfd8a Copter: update for gps.setHIL() API 2014-04-02 07:55:28 +11:00
Andrew Tridgell
640b64f5e4 Copter: convert to new GPS API 2014-04-01 06:38:24 +11:00
Randy Mackay
9e7021cc20 Copter: Notify arming failure when using MAVLink 2014-03-31 20:34:31 +09:00
Andrew Tridgell
78ba1a33aa Copter: support 18 input channels in MAVLink 2014-03-25 14:47:43 +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
4a01315fc5 Copter: enable logging of RADIO_STATUS 2014-03-20 09:56:37 +11:00
Andrew Tridgell
a345a9d993 Copter: removed check on target component in arm
Thanks to DonLakeFlyer for finding this, see
https://github.com/diydrones/ardupilot/pull/909
2014-03-20 09:06:28 +11:00
Andrew Tridgell
e4b3323455 Copter: use common deferred message handling 2014-03-19 12:14:20 +09:00
Andrew Tridgell
69252868a8 Copter: use common MISSION_ITEM handling 2014-03-19 12:14:12 +09:00
Andrew Tridgell
f4ed2beacd Copter: use new common MAVLink message handlers 2014-03-19 12:13:40 +09:00
Randy Mackay
6ef2b55602 Copter: use common GCS_MAVLink handle_mission methods 2014-03-19 12:13:22 +09:00
Andrew Tridgell
85725de9cb Copter: use new handle_mission_request()
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:13:15 +09:00
Randy Mackay
edab06a3ff Copter: truncate mission before uploading new mission
replacing clear with truncate allows new missions to be uploaded while
the current mission is running
2014-03-19 12:12:36 +09:00
Randy Mackay
7b6906ae3f Copter: integrate variable max num commands 2014-03-19 12:12:01 +09:00
Randy Mackay
6bb05750e7 Copter: remove alt_in_cm from mavlink to cmd conversion 2014-03-19 12:11:04 +09:00
Randy Mackay
04166c1686 Copter: replace memset in GCS_Mavlink 2014-03-19 12:10:52 +09:00
Randy Mackay
c3162f67e8 Copter: integrate move of p1 from Location to mission cmd 2014-03-19 12:10:48 +09:00
Randy Mackay
aade894014 Copter: integrate replace_cmd 2014-03-19 12:10:43 +09:00
Randy Mackay
54c99d84ea Copter: integrate AP_Mission set_current_cmd 2014-03-19 12:10:39 +09:00
Randy Mackay
36af34bf8b Copter: send current wp as 65535 to GCS when mission complete 2014-03-19 12:10:34 +09:00
Randy Mackay
070cbc9250 Copter: use Mission mav to cmd conversion methods 2014-03-19 12:10:24 +09:00
Randy Mackay
ffc418dfe3 Copter: add mavlink packet to cmd conversion to GCS_Mavlink.pde 2014-03-19 12:10:06 +09:00
Andrew Tridgell
86fa82f767 Copter: only send GPS2_RAW when we have a 2nd GPS 2014-03-03 07:05:47 +11:00
Andrew Tridgell
37394b30ee Copter: added support for 2nd GPS 2014-02-26 09:40:29 +11:00
Andrew Tridgell
2fcbdc4056 Copter: pass fix type to gps->setHIL() 2014-02-25 21:11:10 +11:00
Andrew Tridgell
ffcc77a21f Copter: fix for HIL API change 2014-02-23 08:18:20 +11:00