Commit Graph

356 Commits

Author SHA1 Message Date
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
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