Commit Graph

742 Commits

Author SHA1 Message Date
Peter Barker cbd591f2ba GCS_MAVLink: save some bytes by removing empty methods based on #ifs 2022-07-22 13:49:51 +10:00
Peter Barker 34f2599479 GCS_MAVLink: remove transitive include dependencies 2022-07-20 17:32:24 +10:00
Peter Barker ba2b7b8014 GCS_MAVLink: remove mavlink-specific methods from AP_SerialManager 2022-07-13 18:32:35 +10:00
Peter Barker d768bcc904 GCS_MAVLink: eliminate get_mavlink_channel
there's no dependence on any SerialManager stuff when determining this.  The protocol passed through was always mavlink...
2022-07-12 11:32:57 +10:00
Iampete1 e8607c09f1 GCS_MAVLink: send ais message 2022-07-12 09:39:54 +10:00
Andrew Tridgell a92161cd18 GCS_MAVLink: improved start battery cell monitoring
this fixes two issues:

 1) we are not reporting the sag corrected voltage to GCS when we are
    sending individual cells

 2) we don't cope with having more than AP_BATT_MONITOR_CELLS_MAX
    cells (or 12 for low flash boards, 14 for 2M boards)

it fixes this by distributing the extra voltage over the calls.

This change is particularly important for high cell count DroneCAN
smart batteries, where we currently would not handle more than 14
cells and the GCS would display the wrong voltage

the PR also cleans up the use of volts vs mVolts for the local
variables
2022-07-11 14:21:41 +10:00
Peter Barker 5f095304cf GCS_MAVLink: add AP_LTM_TELEM_ENABLED 2022-06-28 20:19:41 +10:00
Randy Mackay 1fca72a831 GCS_MAVLink: add comment re sending locations to mounts 2022-06-15 09:07:14 +09:00
Randy Mackay f83b4cdb40 GCS_MAVLink: support sending AUTOPILOT_STATE_FOR_GIMBAL_DEVICE 2022-06-15 09:07:14 +09:00
bugobliterator 4dd66fed4b GCS_MAVLink: forward gimbal-device-information to AP_Mount
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>

also forward gimbal_device_attitude_status
2022-06-15 09:07:14 +09:00
Randy Mackay 85b9e6e57c GCS_MAVLink: remove ToshibaCAN support 2022-06-10 12:08:05 +09:00
Randy Mackay 3ac5ad8e33 GCS_MAVLink: remove unused send_gimbal_report 2022-06-07 09:27:47 +10:00
Peter Barker be21091619 GCS_MAVLink: pass mavlink_command_ack_t to accelcal library
The library needs to look at the content of the packet.  Given that GCS_MAVLink is already within handle_command_ack, decoding it there makes sense.
2022-05-25 17:55:55 +10:00
Ruffalo-sunghwan 51451d29e1 GCS_MAVLink : correct comment spelling 2022-05-24 20:27:45 +09:00
Iampete1 7d3368fa33 GCS_MAVLink: send servo raw 17-32 using port 1 2022-05-22 12:07:37 +10:00
Peter Barker f023f0443d GCS_MAVLink: move logging of RPM into RPM library 2022-04-13 16:22:19 +10:00
Andrew Tridgell 73eabb1fd0 GCS_MAVLink: send GCS voltage to GCS
may be resting voltage of option enabled
2022-03-22 11:12:54 +11:00
Peter Barker f1ec657c41 GCS_MAVLink: correct compilation with HAL_INS_ACCELCAL_ENABLED false 2022-03-22 10:39:44 +11:00
Peter Barker e0561b0ca1 GCS_MAVLink: split AP_HAL_SITL and HAL_SIM_ENABLED 2022-03-17 14:39:55 +11:00
Andrew Tridgell d28cecf25b GCS_MAVLink: support CANFD_FRAME messages 2022-03-11 18:13:54 +11:00
bugobliterator e996392671 GCS_MAVLink: disable CANTester by default 2022-03-11 18:13:54 +11:00
Stephen Dade 1344a0f41a GCS_MAVLink: Add support for High Latency MAVLink protocol 2022-03-03 14:56:15 +11:00
Peter Barker 7638cbf001 GCS_MAVLink: include cleanups 2022-03-01 11:21:33 +11:00
Peter Barker 87439eec80 GCS_MAVLink: stop taking semaphore aorund statustext queue loop
we're taking it in the loop
2022-02-22 12:56:38 +11:00
Andrew Tridgell 890ef5679c GCS_MAVLink: handle CAN_FILTER_MODIFY call 2022-02-19 18:24:56 +11:00
Andrew Tridgell cce89099c5 GCS_MAVLink: fixed mavlink packet corruption with multiple threads
this ensures we don't try to send more data to a uart than is
available in the tx buffer
2022-02-19 18:24:56 +11:00
Andrew Tridgell 44d9d410a1 GCS_MAVLink: fixed mavlink packet corruption with multiple threads
this ensures we don't try to send more data to a uart than is
available in the tx buffer
2022-02-19 17:20:17 +11:00
Andrew Tridgell ba502b462f GCS_MAVLINK: support CAN_FRAME and MAV_CMD_CAN_FORWARD 2022-02-12 16:36:05 +11:00
Peter Barker 29a469432e GCS_MAVLink: send deprecated message warning for MAVLINK_MSG_ID_SET_HOME_POSITION 2022-02-10 12:13:43 +11:00
Peter Barker f25755a05f GCS_MAVLink: mark MAV_CMD_DO_REPOSITION as having a location 2022-02-09 09:15:11 +11:00
Peter Barker 2e804bb0d5 GCS_MAVLink: mark MAV_CMD_DO_SET_ROI_LOCATION as having a location 2022-02-09 09:15:11 +11:00
Peter Barker dffec9325e GCS_MAVLink: create and use location_from_command_t 2022-02-09 09:15:11 +11:00
Joshua Henderson f3cac9e1aa GCS_MAVLink: add send_attitude_target 2022-02-07 08:24:35 +09:00
Peter Barker 21caa8c686 GCS_MAVLink: rename AP_AHRS::get_position to get_location 2022-01-25 10:47:22 +11:00
Josh Henderson fa9a852ef7 GCS_MAVLINK: move AP_Airspeed to AP_Vehicle 2022-01-19 18:21:32 +11:00
Josh Henderson 1200f25e05 GCS_MAVLINK: move high_latency_air_temperature up 2022-01-19 18:21:32 +11:00
Jaaaky 20b3add9fb GCS_Common: Fix issue #19599 Failed to build Pixhawk1 with O3 2022-01-17 08:33:27 +11:00
Peter Barker 948e00a072 GCS_MAVLink: make send_system_time const
needed when sending from const functions
2022-01-06 09:14:33 +11:00
Peter Barker d2693e4276 GCS_MAVLink: create and use AP_OPTICALFLOW_ENABLED
Including a define for each backend.
2021-12-29 18:12:03 +11:00
Andrew Tridgell f8e4d7facd GCS_MAVLink: support formatting of SD card 2021-12-28 16:04:57 +11:00
Peter Barker 6936a8eb6e GCS_MAVLink: adjust for rename of OpticalFlow.h to AP_OpticalFlow.h 2021-12-28 10:16:20 +11:00
Andrew Tridgell 20dd667fdc GCS_MAVLink: support ODOMETRY message for VIO
used by VOXL
2021-12-27 12:32:41 +11:00
Stephen Dade 038ae432ab GCS_MAVLink: Add UART option to not override streamrates 2021-12-15 14:14:07 +11:00
Stephen Dade c49fd7e908 GCS_MAVLink: Don't start with MAVLink1 messages on a MAVLink2 connection 2021-12-14 12:20:07 +09:00
Randy Mackay d0747c5f20 GCS_MAVLink: battery status reports fault bitmask 2021-12-07 02:12:06 -08:00
Shiv Tyagi 339a07b8d3 AP_Devo_Telem: compile out devo telemetry
Devo telemetry is one of the most rarely used features (almost never used since added) we should compile it out from our code
2021-12-01 19:16:44 +11:00
Peter Barker ba63e9a17b GCS_MAVLink: correct send_scaled_imu gyro-count check 2021-11-29 15:08:23 +11:00
Peter Barker ca232bb510 GCS_MAVLink: signal quality reporting 2021-11-23 18:20:58 +11:00
Peter Barker 514368537b GCS_MAVLink: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED 2021-11-15 20:27:40 +11:00
Peter Barker fd128066ad GCS_MAVLink: ensure ENABLE_SCRIPTING is always defined 2021-11-15 20:27:40 +11:00