Commit Graph

261 Commits

Author SHA1 Message Date
Peter Barker
192310a68e Copter: move gps inject handling up to GCS_MAVLINK 2017-07-27 12:03:25 +01:00
Peter Barker
f1ab50d4ea Copter: handle common GPS messages in base GCS_MAVLINK class 2017-07-25 14:00:45 +01:00
khancyr
88aa1e447a Copter: adapt to new send_proximity API 2017-07-24 13:44:43 +01:00
khancyr
49755063ab Copter: move send_proximity to GCS common code (NFC) 2017-07-24 13:44:43 +01:00
Peter Barker
eb0edc9b5b Copter: remove MSG_STATUSTEXT entirely 2017-07-18 16:12:59 +01:00
Peter Barker
ad1c379445 Copter: move handling of PREFLIGHT_SET_SENSOR_OFFSETS up 2017-07-17 14:17:19 +01:00
Peter Barker
fe16691c6e Copter: move handling of MAG_CAL command longs up 2017-07-17 14:17:19 +01:00
Peter Barker
ecda9116ba Copter: move MAV_CMD_START_RX_PAIR handling to base class 2017-07-17 14:17:19 +01:00
Peter Barker
b14964eb1e Copter: move mavlink support for servo/relay up 2017-07-16 23:56:00 +01:00
Peter Barker
3e3a8717c5 Copter: add common handling of mavlink command messages 2017-07-16 23:56:00 +01:00
Peter Barker
480a83fdef Copter: move rally-point handling up 2017-07-14 01:28:05 +01:00
Peter Barker
7bb28175d7 Copter: remove unneeded telemetry_delayed parameter 2017-07-12 17:01:36 +01:00
Peter Barker
016eeaa258 Copter: move handling of incoming statutext messages up 2017-07-12 16:52:24 +01:00
Randy Mackay
2b98fd765d Copter: guided_set_destination accepts relative yaw 2017-07-12 13:27:45 +09:00
Randy Mackay
4c9e118ceb Copter: set_auto_yaw_look_at_heading takes bool for relative angle arg
No functional change
2017-07-12 13:27:45 +09:00
kouseii
4dd7d9eaff Copter: guided mode supports heading and yaw-rate target 2017-07-12 13:27:45 +09:00
Peter Barker
8a1fc6a406 Copter: remove global static send_statustext_chan 2017-07-11 23:53:53 +01:00
Peter Barker
3660236a0d Copter: move common mission handling up to GCS_MAVLINK 2017-07-11 23:45:16 +01:00
Peter Barker
358555446b Copter: eliminate gcs_send_mission_item_reached wrapper 2017-07-11 23:45:16 +01:00
Peter Barker
0ac045febe Copter: eliminate gcs_send_message wrapper 2017-07-11 23:45:16 +01:00
Peter Barker
f60389d4aa Copter: use send_text method on the GCS singleton 2017-07-09 17:17:29 -04:00
Peter Barker
037cd2e9c6 ArduCopter: use Notify singleton for sending statustext 2017-07-09 17:17:29 -04:00
Peter Barker
d9b45cc202 Copter: create GCS subclass, use inheritted methods 2017-07-07 16:18:37 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
9994e9b773 Copter: improve stream descriptions (NFC) 2017-07-04 08:12:57 +09:00
Peter Barker
8b57405143 Copter: handle knowledge of in_log_download in DataFlash 2017-06-27 03:10:43 +01:00
Peter Barker
45a55bfa5f Copter: move send-logs-via-mavlink code into DataFlash 2017-06-27 03:10:43 +01:00
Michael du Breuil
f0cb234228 Copter: Handle NAV_CONTROLLER_OUTPUT.wp_dist overflowing 2017-06-20 15:41:50 +01:00
Peter Barker
4af3b31128 Copter: move MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS handling up 2017-06-17 15:07:48 +01:00
Peter Barker
4163455d97 Copter: stop using in_mavlink_delay as a proxy for disabling logging 2017-06-16 17:07:48 +01:00
Pierre Kancir
d5cc1e64ed GCS_Common: rename send_rangefinder to send_rangefinder_downward 2017-06-08 01:32:04 +01:00
Pierre Kancir
73038a0e09 ArduCopter: GCS_mavlink style correction 2017-06-08 01:31:52 +01:00
Pierre Kancir
ac0a300415 ArduCopter: correct msg send by proximity 2017-06-08 01:31:52 +01:00
Pierre Kancir
261eb387eb ArduCopter: change rangefinder msg for common one 2017-06-08 01:31:43 +01:00
Pierre Kancir
156863d10a ArduCopter: add DISTANCE_SENSOR support 2017-06-08 01:22:07 +01:00
Peter Barker
758414cfe5 Copter: allow mavlink messages to be exchanged on failed boot 2017-06-07 12:56:46 +01:00
Randy Mackay
814cadac68 Copter: consolidate set_home functions
added lock argument instead of having twice as many functions
no functional change
2017-06-07 13:01:38 +09:00
Paulo Neves
9c6a7c170f Copter: Add MAV_CMD_DO_SET_CAM_TRIGG_DIST support 2017-05-25 09:35:22 +09:00
Michael du Breuil
6ba53cf11c Copter: Ignore Landing message 2017-05-24 15:22:27 -07:00
Randy Mackay
91d4b4777b Copter: respond to param list request after motor init 2017-05-15 14:13:43 +09:00
Andrew Tridgell
22791b7272 Copter: use common send_queued_parameters() 2017-05-01 14:36:10 +10:00
Randy Mackay
8f43b60247 Copter: set EKF origin from first do-set-home command 2017-04-22 10:37:31 +09:00
Randy Mackay
3348ab4fa8 Copter: send upward DISTANCE_SENSOR message to GCS 2017-04-20 18:11:43 +09:00
Randy Mackay
496e8f3cdb Copter: integrate proximity method rename 2017-04-20 18:11:43 +09:00
Andrew Tridgell
1a8669201e Copter: ignore MSG_AOA_SSA 2017-04-19 20:48:42 +10:00
Randy Mackay
713c08672f Copter: integrate AP_VisualOdom 2017-04-19 11:04:40 +09:00
Francisco Ferreira
bf22919a8c Copter: add support for MANUAL_CONTROL message 2017-04-12 16:16:11 +09:00
Michael du Breuil
ea89bd1178 Copter: Send BATTERY_STATUS 2017-04-12 10:21:49 +09:00
Randy Mackay
51c00f8144 Copter: use only downward facing rangefinder 2017-02-27 15:18:16 +09:00
Andrew Tridgell
7efca1881c Copter: fixed a problem with initial parameter fetch
if the GCS connects before the motors have been allocated then it will
get an incorrect parameter count from the MAVLink param protocol. We
need to prevent the PARAM_REQUEST_LIST message from being replied to
until motors are allocated which is done as part of init_ardupilot
2017-02-15 17:16:30 +10:00
Peter Barker
65a182a068 Copter: not in log download upon log erase
erase is a synchronous operation
2017-02-13 11:36:16 +11:00
Peter Barker
029aeeb4fd Copter: support for a GCS singleton 2017-02-13 09:32:01 +11:00
Peter Barker
f49f153da0 Copter: rename gcs[] to gcs_chan[]
Wish to use gcs() to return the gcs singleton
2017-02-13 09:32:01 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
4161c34e61 Copter: rename MSG_RADIO_OUT to MSG_SERVO_OUTPUT_RAW to better describe what it is 2017-02-07 11:41:12 +11:00
Peter Barker
4aaeb4bfed Copter: get mav heartbeats out when board detection fails 2017-01-27 13:48:23 +09:00
Dmitry Prokhorov
3e993f955e ArduCopter: Support for OLED display by Alexey Kozin 2017-01-23 15:07:20 -08:00
Andrew Tridgell
0f6d0c5ba9 Copter: combined tri, single, coax and multicopter into a single build
this allows copter to be just 2 builds, one for heli, and one for
everything else
2017-01-12 17:39:37 +11:00
Andrew Tridgell
5a87ae3f01 Copter: use new SRV_Channels API 2017-01-12 17:39:37 +11:00
Francisco Ferreira
11b635df12
Copter: correct limit status to fence status 2017-01-12 02:00:51 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
712fbfe84b Copter: Update descriptions of stream rate parameters 2017-01-12 01:47:12 +00:00
Randy Mackay
20ca021cab Copter: pass distance-sensor messages to AP_Proximity 2017-01-11 21:48:23 +09:00
Randy Mackay
0ac00dbfd6 Copter: add FRAME_CLASS parameter 2016-12-31 10:55:23 +09:00
Randy Mackay
c1d1ac5c6f Copter: pass HIL_GPS to gps driver 2016-12-08 15:52:26 +09:00
Randy Mackay
7485de3498 Copter: add send_proximity to send distances to GCS 2016-11-27 15:05:46 +09:00
Peter Barker
469f0f0bf0 Copter: remove incorrect comment from PRECISION_LANDING block 2016-11-18 09:41:56 +09:00
Francisco Ferreira
84436ff5ae Copter: sipport MAV_CMD_ACCELCAL_VEHICLE_POS 2016-11-15 11:42:54 -08:00
Andrew Tridgell
df3e434607 Copter: use handle_common_message() 2016-11-09 17:08:09 +11:00
floaledm
53fcbcb6c3 Copter: send ahrs groundspeed estimate instead of GPS groundspeed in VFR_HUD message 2016-11-07 09:14:28 +11:00
Peter Barker
236b8ab6b7 Copter: make EPM a subclass of AP_Gripper_Backend 2016-11-05 10:20:39 +09:00
murata
965a6a5719 Copter: To nullptr from NULL. 2016-10-28 10:53:31 -07:00
Andrew Tridgell
1b46a71596 Copter: also update sensor status before mavlink send
this removes the 1 second lag in updates when using the one second
loop
2016-10-28 10:05:40 +11:00
floaledm
34718b130a Copter: update sensor status error flags independently of sending a sys_status message
Without this, there is no update to the sensor status flags in the Frsky
lib unless there's an active Mavlink connection configured to send
extended_status1
2016-10-28 10:03:38 +11:00
Mathieu OTHACEHE
152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Andrew Tridgell
57830784e2 Copter: use handle_rc_bind 2016-10-15 21:42:38 +11:00
Andrew Tridgell
5a9276a5c4 Copter: added SYSID_ENFORCE parameter
allows enforcement of SYSID_MYGCS
2016-10-15 17:14:19 +11:00
Randy Mackay
0aab175051 Copter: move proximity to g2 2016-10-14 14:02:29 +09:00
Andrew Tridgell
ebbcabcb5f Copter: fixed comment 2016-10-14 11:40:09 +11:00
Randy Mackay
1665f4d416 Copter: report altitude and position control of new modes in sys-status message 2016-10-13 20:21:07 +09:00
Randy Mackay
4afa49eebe Copter: report proximity health in system-status 2016-10-13 20:21:07 +09:00
Andrew Tridgell
652b6b7564 Copter: deprecate RC_CHANNELS_RAW 2016-10-13 21:24:02 +11:00
Michael du Breuil
ea45e5e6f1 Copter: Support GPS_RTCM_DATA 2016-10-11 11:00:36 +11:00
Lucas De Marchi
b24d850695 ArduCopter: Fix use of logical op instead of bitwise op
../../ArduCopter/GCS_Mavlink.cpp: In member function 'void Copter::send_extended_status1(mavlink_channel_t)':
../../ArduCopter/GCS_Mavlink.cpp:281:37: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
     uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present;
                                     ^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

Thanks to Ralph Campbell <ralphcampbell1@gmail.com> for the bug report.
2016-09-29 11:36:23 -03:00
Tom Pittenger
748beb094d Copter: log to dataflash statustext messages from my_gcs 2016-09-26 00:13:30 -07:00
floaledm
5910c94b65 Copter: change sensor health check to prevent false positive 2016-09-22 13:56:49 -05:00
Andrew Tridgell
d0dd10aeea Copter: added DEV_OPTIONS parameter
this is for little used options to allow standard firmware builds to
enable those options for development purposes

First option is for MAVLink based ADSB avoidance
2016-09-12 16:24:34 +10:00
Michael du Breuil
bec4bfa2ba Copter: Return RESULT_FAILED for GET_CMD_HOME if home is unset 2016-09-03 16:54:16 +09:00
Randy Mackay
a8a31b1c24 Copter: fix health reporting to GCS for optical flow and precision landing
Includes slight restructuring to logic for other sensors but these should not have any functional effect
2016-08-31 13:59:16 +09:00
Andrew Tridgell
96de005591 Copter: moved MAV_TYPE define to defines.h 2016-08-25 10:16:20 +10:00
Andrew Tridgell
a14ff8ac77 Copter: fixes for Frsky_Telem API changes 2016-08-25 10:16:20 +10:00
floaledm
157db51b9d Copter: make control_sensor vars available outside of send_extended_status1 2016-08-25 10:16:18 +10:00
Tom Pittenger
06b64000e1 Copter: move mavlink msg handling into library 2016-08-16 16:33:36 -07:00
Tom Pittenger
d04a5d58fd Copter: decode correct ADSB packet 2016-08-16 16:33:36 -07:00
Tom Pittenger
dbdd86ad46 Copter: set SYS_STATUS and HB_Flag Guided bits when in AVOID_ADSB 2016-08-12 14:46:44 -07:00
Peter Barker
4371223738 Copter: add dataflash as a bit for the mavlink SYS_STATUS message 2016-08-11 17:48:44 -03:00
Randy Mackay
0ed5665193 Copter: change parameter order of guided_set_angle
I thought it might be slightly better to put the optional parameters at the end
No functional change
2016-08-10 10:03:54 +09:00
Allan Matthew
6dd4e1a2aa Copter: accept yaw rate commands in Guided atttude controller 2016-08-10 10:03:37 +09:00
Randy Mackay
4e92f08bf1 Copter: only accept attitude targets in Guided mode 2016-08-02 18:26:04 +09:00
Randy Mackay
1161417d7f Copter: add GUIDED_NOGPS flight mode
This mode is a cut down version of Guided mode that only accepts attitude commands.
This mode does not require a GPS lock
2016-08-02 18:25:59 +09:00
Lucas De Marchi
c0b49f6aeb ArduCopter: Remove i2c lockup count
This was returned only for a single bus and on all supported platforms
this is hardcoded to 0.
2016-07-28 18:03:09 -03:00
Randy Mackay
68899ed921 Copter: add adsb to failsafe structure and report in heartbeat to GCS 2016-07-25 20:24:37 +09:00
Randy Mackay
f4db4bdb08 Copter: GCS_MAVLink passes packets to AP_Avoidance
This allows treating GLOBAL_POSITION_INT packets from other vehicles in the same way as ADSB packets
2016-07-25 20:24:37 +09:00