Commit Graph

369 Commits

Author SHA1 Message Date
João Fortuna
b99f38d39d Copter: Fixed MAVLINK stream trigger calculation. 2015-02-20 13:10:57 +09:00
Andrew Tridgell
307b9e807f Copter: reduced build warnings
removed some unused code, and mark some functions with UNUSED_FUNCTION
2015-02-18 11:13:48 +11:00
Andrew Tridgell
191d803968 Copter: make PERF info message into a STATUSTEXT message
this makes it appear properly in tlogs. Also show both min and max
loop times
2015-02-16 10:02:53 +11:00
Randy Mackay
da4a36c4e0 Copter: fix nack result_unsupported when arming fails
We should return unsupported if param1 does not equal 0 or 1
2015-02-14 14:27:47 +09:00
Randy Mackay
7ae1436b97 Copter: nack result_failed when arming fails
Previously result_unsupported was returned which is a less accurate
description of the failure
2015-02-14 14:03:41 +09:00
Randy Mackay
7029b11414 Copter: support do_set_home command from GCS and mission 2015-02-12 15:00:54 +09:00
Andrew Tridgell
81302fe190 Copter: implement MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES 2015-02-12 09:04:20 +11:00
Andrew Tridgell
4ade22c94b Copter: use common send_autopilot_version() 2015-02-11 19:50:51 +11:00
Jonathan Challinger
62c63e9b35 Copter: support AUTOPILOT_VERSION_REQUEST message 2015-02-11 19:11:53 +11:00
Jonathan Challinger
c5d66cdfba Copter: add send_autopilot_version 2015-02-11 19:11:53 +11:00
Randy Mackay
99ca779718 Copter: fix to allow arming in Guided from GCS 2015-02-10 22:12:38 +09:00
Robert Lefebvre
2186dec271 Copter: Remove trim_radio() function. 2015-02-05 11:17:56 +09:00
Andrew Tridgell
51dc3c120d Copter: handle GIMBAL_REPORT receive and send
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2015-02-03 09:49:15 +11:00
Randy Mackay
e7f20c04c3 Copter: init_arm_motors calls pre-arm checks
This reduces a small amount of duplicated code in the pilot initiated
arming and GCS initiated arming functions
2015-02-02 22:31:14 +09:00
Randy Mackay
f4c392c64d Copter: pre_arm_checks returns success or failure
This makes the pre-arm check function consist with the other arming
check functions
2015-02-02 22:31:11 +09:00
Randy Mackay
43ba94e99a Copter: rename manual_flight_mode to mode_has_manual_throttle 2015-02-02 22:31:01 +09:00
Randy Mackay
3641d3d508 Copter: send inav velocities in global position message
Also absolute alt now calculated from home alt + current alt above home
instead of using GPS absolute alt
2015-01-22 14:39:54 +09:00
Andrew Tridgell
557f4df77e Copter: use barometer.all_healthy() for health check in SYS_STATUS and arming 2015-01-09 11:51:51 +11:00
Jonathan Challinger
474456e349 Copter: use guided_posvel for set_position_target messages 2015-01-07 14:02:24 +09:00
Andrew Tridgell
ab62105afe Copter: use common send_opticalflow() 2015-01-03 15:53:49 +11:00
Randy Mackay
3ccc61c163 Copter: use battery.has_current method 2014-12-31 15:22:49 +09:00
Randy Mackay
72127cde35 Copter: remove broken support for do-change-alt
This command was not implemented fully removing this code resolves a
compiler warning
2014-12-26 22:17:45 +09:00
Andrew Tridgell
e73f8b8e40 Copter: removed use of mavlink_check_target() 2014-12-11 12:32:34 +09:00
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