Commit Graph

306 Commits

Author SHA1 Message Date
Peter Barker 2d1ed75592 Sub: handle command_long in GCS base class 2018-07-06 09:43:09 +10:00
Peter Barker 332fcb3226 Sub: handle command_int in base class 2018-07-06 09:43:09 +10:00
Peter Barker 3cfdcb1f2c ArduSub: use ArmingMethod enumeration 2018-07-03 15:16:38 +10:00
Peter Barker e0eb3424ec Sub: move mavlink reboot code up to base class 2018-07-03 12:12:25 +10:00
Jacob Walser f4da0215d1 Sub: add motor test implementation 2018-07-02 11:31:58 -04:00
Patrick José Pereira dcd3f83539 Sub: Remove void as parameter
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-07-02 11:25:03 -04:00
Andrew Tridgell 5eab425065 Sub: added ESC_TELEMETRY to mavlink streams 2018-06-21 10:48:02 +10:00
Peter Barker c17514cf85 Sub: use AP_FWVersion singleton 2018-06-18 19:10:37 +01:00
Patrick José Pereira d3da8f2914 Sub: Add attitude control with althold via mavlink
Allow ordinary attitude positions without a gps system

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-12 17:27:56 -04:00
Patrick José Pereira 4de371743e Sub: Move from millis() to AP_HAL::millis()
AP_HAL::millis() is a more common style around the rest of the project

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-12 17:27:56 -04:00
Patrick José Pereira a856f747aa Sub: Organize descend climb_rate calc
Make it more clear to read

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-12 17:27:56 -04:00
Peter Barker 32b8b86019 Sub: move handling of MAV_CMD_DO_GRIPPER up 2018-06-11 19:07:39 +01:00
Michael du Breuil c642d1ed74 Sub: Rework to support override changes 2018-06-05 09:51:09 +10:00
Peter Barker 3694f085dc Sub: move try_send_message handling of EKF_STATUS_REPORT up 2018-06-01 16:12:45 +01:00
Peter Barker 1f31bd21c4 Sub: create persist_streamrates() callback to indicate persistence 2018-05-29 13:08:29 +10:00
Peter Barker 18c494b25f Sub: move sending of vfr_hud up 2018-05-29 13:00:40 +10:00
Peter Barker 420b9869f7 Sub: move sending of simstate up 2018-05-23 18:36:50 +10:00
Peter Barker 148756bc1c Sub: add type-correctness for stream messages 2018-05-22 11:21:25 +10:00
Peter Barker f0dd90b81a Sub: eliminate MSG_LIMITS_STATUS 2018-05-22 09:05:14 +09:00
Peter Barker cc899d74e2 Sub: move try_send_message of servo-output-raw up 2018-05-21 19:08:08 +01:00
Peter Barker 324be6ca0d Sub: move sending of GLOBAL_POSITION_INT up to GCS_MAVLINK 2018-05-17 15:48:06 +01:00
Peter Barker 3e7cb08804 Sub: move send_attitude up to GCS_MAVLINK 2018-05-17 18:28:43 +10:00
Peter Barker c91ba19e7f Sub: override sending of scaled_pressure3
Without this change we run the risk of sending out the same message with
vastly different data in it
2018-05-17 15:37:14 +10:00
Peter Barker 12f62a44ce Sub: move try_send_message sending of sensor offsets up 2018-05-17 15:37:14 +10:00
Peter Barker 5736aa6ef3 Sub: move try_send_message of RAW_IMU up to GCS_MAVLINK 2018-05-17 15:37:14 +10:00
Peter Barker 631e967df3 Sub: handle setting of ekf origin in GCS_MAVLink 2018-05-17 10:13:42 +10:00
Michael du Breuil 2d7f60ab59 Sub: Use named float wrappers 2018-05-17 00:59:45 +01:00
Michael du Breuil 216457a281 Sub: Move MAVLink rangefinder up to parent 2018-05-16 23:21:41 +01:00
Michael du Breuil 5393337dfa Sub: Send all distance sensors 2018-05-16 23:21:41 +01:00
Peter Barker 0a0e11ba21 Sub: correct compilation when features disabled
Gripper
Mount
2018-05-10 17:55:13 +09:00
Peter Barker 524d63522a Sub: move sending of battery data up 2018-05-09 11:40:31 -07:00
Peter Barker 5674a68457 Sub: move data stream send up 2018-05-09 16:15:38 +10:00
Peter Barker 133b9930a6 Sub: make scheduler track whether it has called the delay callback 2018-05-09 16:15:38 +10:00
Peter Barker b7cd5491e2 Sub: move try_send_message handling of RC_CHANNELS up 2018-05-08 12:33:32 +01:00
Peter Barker f075d6bd93 Sub: move try_send_message of heartbeats up to GCS_MAVLINK 2018-05-07 11:30:13 -06:00
Peter Barker 5bad067a8d Sub: move try_send_message handling of VIBRATION up 2018-05-07 11:23:28 -06:00
Jacob Walser 68da3a123c Sub: add armed check to preflight baro calibration
This check was lost in 05ee33d!
2018-04-23 15:12:35 -04:00
Jacob Walser 0223cf70ed Sub: better check and text message for baro calibration failure 2018-04-23 15:12:35 -04:00
Jacob Walser c76ff32aa1 Sub: Do not report altitude in GLOBAL_POSITION_INT if there is no depth
sensor connected

Fix bluerobotics/ardusub#145
2018-04-19 14:58:06 -04:00
Peter Barker c7327acef7 Sub: use AP_ServoRelayEvents singleton 2018-04-18 20:31:55 +09:00
Michael du Breuil 9f673c2746 Sub: Use RC_Channels instead of hal.rcin 2018-04-11 21:47:07 +01:00
Michael du Breuil e840006ff9 Sub: Check MANUAL_CONTROL target 2018-04-10 16:54:34 +01:00
Francisco Ferreira ba44d11988
Sub: fix method shadowing 2018-04-03 16:29:34 +01:00
Peter Barker fa3b3964e8 Sub: factor vehicle's mavlink send_heartbeat 2018-04-03 13:05:19 +01:00
Peter Barker 05ee33d037 Sub: tidy handling of barometer calibrations 2018-04-02 23:25:05 +01:00
Peter Barker 5536a321ed Sub: move common calibration functions up 2018-04-02 23:25:05 +01:00
Peter Barker fe293abf37 Sub: factor out preflight calibration function 2018-04-02 23:25:05 +01:00
Michael du Breuil 6ebe954d51 Sub: Support new battery failsafes 2018-03-27 22:12:21 +01:00
Peter Barker 4b12fab5f5 Sub: allow DataFlash to handle log sending 2018-03-26 09:22:47 +09:00
Peter Barker c9664a9923 Sub: move handling of get_home_position up 2018-03-19 10:32:37 +09:00
Peter Barker 3af4806d38 Sub: move home state into AP_AHRS 2018-03-19 10:32:37 +09:00
Peter Barker 06f6135daa Sub: use baro singleton 2018-03-08 21:20:05 -08:00
Peter Barker 15f212adc0 Sub: use AP::ahrs() for GCS_MAVLink 2018-03-07 12:34:39 +00:00
Patrick José Pereira aafede65f7 Sub: Add camera pan functionality
Fix bluerobotics/ardusub#134

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-02-21 10:52:24 -08:00
Jacob Walser 8f227201e0 Sub: move reset params to default handling to GCS base class 2018-02-20 10:49:09 +11:00
Peter Barker 980fbf6cfb Sub: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Randy Mackay 81d3a3106e Sub: global-pos-int uses system time
Also takes vel directly from EKF instead of inertial nav shim
2018-02-13 08:52:48 +09:00
Peter Barker ecb805768b Sub: remove shims used in scheduler table 2018-02-12 10:37:21 -08:00
Randy Mackay 6a701b2412 Sub: move pos-control pids to pos-control library 2018-01-23 12:00:43 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 63639a0838 Sub: Guided_PosVel mode: reject destination if outside the fence
Also: log guided destination and velocity and rename a variable to pos_neu_cm to better reflect the meaning
2017-12-05 08:57:55 +09:00
Peter Barker 9040bb5f97 Sub: tighten type of result variable in handleMessage 2017-12-01 17:01:10 +00:00
Andrew Tridgell b16ae19bce Sub: use cork/push wrapper 2017-11-21 14:10:54 +11:00
Peter Barker 2fc9b3b5f4 Sub: use gps singleton for GCS functions 2017-11-15 13:43:03 +00:00
Andrew Tridgell cf7b874b42 Sub: support simple accelcal 2017-10-10 10:57:38 +11:00
Michael du Breuil 4d1e61633b Sub: Check GPS health 2017-09-27 19:29:32 +01:00
Lucas De Marchi 11e47fb145 ArduSub: do not include version.h/ap_version.h
The interface provided by each vehicle should be used to get the
version.
2017-09-23 21:37:45 -07:00
Randy Mackay 6a1e14fccd Sub: command-long DO_SET_HOME check first param is zero 2017-09-20 12:14:38 +09:00
Randy Mackay 2dae917c86 Sub: accept DO_SET_HOME within COMMAND_INT 2017-09-20 12:14:38 +09:00
Randy Mackay 305659c5c3 Sub: accept more mav-frame types
accept mav frames whether or not they have _INT appended
2017-09-20 12:14:38 +09:00
Peter Barker 5b7f396e23 Sub: move handling of SET_GPS_GLOBAL_ORIGIN up 2017-09-19 15:44:23 +09:00
Randy Mackay a477ef7cd6 Sub: support SET_GPS_GLOBAL_ORIGIN message 2017-09-19 10:30:15 +09:00
Peter Barker 89e3f1dbd8 Sub: move gcs_out_of_time into GCS object 2017-09-12 18:28:07 +01:00
Peter Barker 1928dcb784 Sub: move handling of do_send_banner up 2017-08-30 15:54:47 +01:00
Peter Barker 3df3b25c1f Sub: handle param_request_list in GCS_MAVLINK base class 2017-08-30 15:54:47 +01:00
Peter Barker 8216a0375d Sub: handle param_set in GCS_MAVLINK base class 2017-08-30 15:54:47 +01:00
Peter Barker 52463a5ed6 Sub: move send_autopilot_request calls up to GCS base class 2017-08-30 15:54:46 +01:00
Peter Barker ae9891d291 Sub: add constant structure holding firmware version 2017-08-30 15:54:46 +01:00
Jacob Walser 4ee6d8e980 Sub: Remove pressure constraint on preflight baro calibration 2017-08-29 08:10:05 -04:00
Jacob Walser 0bd5d6ca18 Sub: send useful information to GCS 2017-08-23 13:40:52 +01:00
Peter Barker 8c8fe4b1bb Sub: move serial_control case to base class 2017-08-17 12:42:31 +01:00
Peter Barker c7c9cb9b0f Sub: move play_tune and led_control handling to base class 2017-08-17 12:27:10 +01:00
Peter Barker 5a9af5bc28 Sub: use GCS_MAVLINK subclasses to handle set_mode 2017-08-16 13:11:07 +01:00
Michael du Breuil 6e55c9554a Sub: Support common version of MAV_CMD_DO_FLIGHT_TERMINATION 2017-08-15 15:14:56 +01:00
Peter Barker b15d72ddce Sub: send gps messages as separate queued messages 2017-08-09 16:18:22 +01:00
Peter Barker b14d99dc2c Sub: move sending of gps_raw up 2017-08-09 16:18:22 +01:00
Peter Barker 14bfccace4 Sub: move sending of system_time up 2017-08-09 16:18:22 +01:00
Peter Barker e94ae13cfd Sub: move sending of camera_feedback up 2017-08-09 16:18:22 +01:00
Peter Barker 8692bb4619 Sub: move sending of meminfo up 2017-08-09 16:18:22 +01:00
Peter Barker 7839132b1d Sub: use new retry_deferred method 2017-08-05 23:14:41 +01:00
Peter Barker e0879c6fce Sub: stop sending MSG_SERVO_OUT messages
This didn't ever result in a message being sent on Sub
2017-08-03 14:34:33 +01:00
Peter Barker 1fcab08bd0 Sub: move try_send_message queued_param_send up 2017-08-03 14:34:33 +01:00
Peter Barker 7c5ed54ffc Sub: move try_send_message send_hwstatus up 2017-08-03 14:33:37 +01:00
Peter Barker 7a72c3b1fb Sub: move try_send_message mission handling up 2017-08-03 14:24:47 +01:00
Peter Barker dce947b54f Sub: move try_send_message compass message handling up 2017-08-03 14:24:46 +01:00
Peter Barker 4865aef9e4 Sub: base SYS_STATUS load average on variable loop rate 2017-08-01 19:39:27 +01:00
Peter Barker 077f577e5c Sub: move common mavlink camera handling up 2017-07-28 14:32:58 +01:00
Peter Barker b299772a75 Sub: camera is responsible for taking distance-based-images and logging 2017-07-28 14:27:53 +01:00
Peter Barker d6d12a8cb1 Sub: handle GPS_INPUT in base GCS_MAVLINK class 2017-07-27 16:23:15 +01:00
Peter Barker f272c7b6bf Sub: move gps inject handling up to GCS_MAVLINK 2017-07-27 12:03:25 +01:00
Peter Barker 2aaaba8397 Sub: handle common GPS messages in base GCS_MAVLINK class 2017-07-25 14:00:45 +01:00
dheideman 199485beae Sub: Acknowledge reboot before rebooting 2017-07-22 09:54:05 +09:00
dheideman 22578bd7f0 Sub: fix absolute pressure sensor present flag 2017-07-21 14:26:38 -04:00
Peter Barker d2c57860fd Sub: remove MSG_STATUSTEXT entirely 2017-07-18 16:12:59 +01:00
Peter Barker 979f6a1980 Sub: move handling of PREFLIGHT_SET_SENSOR_OFFSETS up 2017-07-17 14:17:19 +01:00
Peter Barker c430b3affe Sub: move handling of MAG_CAL command longs up 2017-07-17 14:17:19 +01:00
Peter Barker 4723194a01 Sub: move mavlink support for servo/relay up 2017-07-16 23:56:00 +01:00
Peter Barker f2d75cbbe9 Sub: add common handling of mavlink command messages 2017-07-16 23:56:00 +01:00
Peter Barker 20937e755e Sub: move rally-point handling up 2017-07-14 01:28:05 +01:00
Peter Barker 187b4ef349 Sub: remove unneeded telemetry_delayed parameter 2017-07-12 17:01:36 +01:00
Peter Barker 68bcf4632c Sub: move handling of incoming statutext messages up 2017-07-12 16:52:24 +01:00
Peter Barker 2fde428890 Sub: remove global static send_statustext_chan 2017-07-11 23:53:53 +01:00
Peter Barker 48f2fcfebc Sub: move common mission handling up to GCS_MAVLINK 2017-07-11 23:45:17 +01:00
Peter Barker 9f73d2f9d8 Sub: eliminate gcs_send_mission_item_reached wrapper 2017-07-11 23:45:16 +01:00
Peter Barker f82fa22833 Sub: eliminate gcs_end_message wrapper 2017-07-11 23:45:16 +01:00
Peter Barker 279072cf25 Sub: use send_text method on the GCS singleton 2017-07-09 17:17:29 -04:00
Peter Barker fadff24674 Sub: create GCS subclass, use inheritted methods
This also adds a patch to set up gcs channel 0 early to make
BoardConfig happy
2017-07-07 16:18:37 +01:00
WickedShell 6615aee0b1 Sub: fix wrong GCS_MAVLink fallthrough
Coverity CID 142270
2017-07-05 12:52:36 +01:00
Peter Barker f3a717f3c0 Sub: handle knowledge of in_log_download in DataFlash 2017-06-27 03:10:43 +01:00
Peter Barker e1335a6029 Sub: move send-logs-via-mavlink code into DataFlash 2017-06-27 03:10:43 +01:00
Michael du Breuil df15a82f88 Sub: Handle NAV_CONTROLLER_OUTPUT.wp_dist overflowing 2017-06-20 15:41:50 +01:00
Peter Barker 06209a13d2 Sub: move MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS handling up 2017-06-17 15:07:48 +01:00
Peter Barker 75a89dbfeb Sub: 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 57ef598c07 ArduSub: change rangefinder msg for common one 2017-06-08 01:31:58 +01:00
Pierre Kancir e124cddeeb ArduSub: add support for DISTANCE_SENSOR 2017-06-08 01:31:57 +01:00
Randy Mackay 7bae493138 Sub: 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 66b4c821c9 Sub: Add MAV_CMD_DO_SET_CAM_TRIGG_DIST support. 2017-05-27 20:47:05 -04:00
Michael du Breuil 07fb0d541d Sub: Ingore landing message 2017-05-24 15:22:27 -07:00
Andrew Tridgell 58861eb51c Sub: use common send_queued_parameters() 2017-05-01 14:36:10 +10:00
Andrew Tridgell 0cfc6f8e0f Sub: ignore MSG_AOA_SSA 2017-04-19 20:48:42 +10:00
Jacob Walser d2629a13ee Sub: Remove handling of unsupported mavlink messages 2017-04-16 14:43:56 -04:00
Jacob Walser 697b095e99 Sub: Remove unused command_ack_counter 2017-04-16 14:25:13 -04:00
Jacob Walser 8c6fa6f651 Sub: Remove unused ap.usb_connected flag 2017-04-16 14:25:13 -04:00
Jacob Walser c093e1c37e Sub: Add failsafe mechanisms for depth sensor error 2017-04-16 14:25:13 -04:00
Jacob Walser b7de1eb88a Sub: failsafe.manual_control -> failsafe.pilot_input
reset pilot input failsafe timer when RC_CHANNELS_OVERRIDE is received
2017-04-16 14:25:13 -04:00
Jacob Walser 6a443fcce4 Sub: Fix redundant check in MAV_CMD_MISSION_START 2017-04-14 13:26:37 -04:00
Jacob Walser 84527d6e66 Sub: Remove unused auto_armed flag 2017-04-14 13:26:37 -04:00
Michael du Breuil 3a8994b2ce Sub: Send BATTERY_STATUS 2017-04-12 10:21:49 +09:00
Jacob Walser 3e471e808a Sub: Refactor methods in navigation.cpp 2017-04-07 14:47:48 -04:00
Jacob Walser 6a80fe3c22 Sub: Remove DISALLOW_GCS_MODE_CHANGE_DURING_RC_FAILSAFE 2017-04-06 17:48:39 -04:00
Jacob Walser 61d77c72fb Sub: Clean up stream rate var_info 2017-04-06 15:11:43 -04:00
Jacob Walser ea8dbbf96c Sub: Remove HIL_MODE stuff 2017-04-06 14:11:12 -04:00
Jacob Walser d794bf88cb Sub: Remove old/unused motor test code and motor_test.cpp 2017-04-06 14:11:12 -04:00
Jacob Walser 69c9dbc286 Sub: Remove deprecated/unused CLI and AP_Menu 2017-04-05 13:29:06 -04:00
Jacob Walser b0e5a93099 Sub: Remove VELHOLD mode
Obsolete since GUIDED implemented
2017-03-23 01:36:17 -04:00
Jacob Walser 0ce2896e22 Sub: Remove rc receiver code 2017-03-10 15:46:30 +11:00
Jacob Walser 93c6f64a91 Sub: Clean out/remove references to old landing code 2017-03-10 15:46:30 +11:00
Jacob Walser 40a27814e0 Sub: Remove unused flight modes 2017-03-10 15:46:30 +11:00
Jacob Walser 0803371956 Sub: Default mavlink message handling to GCS_Common 2017-03-01 22:32:33 -05:00
Jacob Walser e2a41c0a6c Sub: Implement reset all params via MAV_CMD_PREFLIGHT_STORAGE 2017-03-01 22:32:27 -05:00