Commit Graph

1028 Commits

Author SHA1 Message Date
Peter Barker 97792d1774 Sub: AHRS set_orientation renamed to update_orientation 2019-02-26 10:28:09 +11:00
Peter Barker 285fe4c79c Sub: explicitly type constant
This makes clang happier
2019-02-20 19:23:54 +11:00
Peter Barker 1ce80e1f17 Sub: remove stale STREAM_RAW_CONTROLLER_msgs variable 2019-02-20 19:23:54 +11:00
Peter Barker e75dccfc71 Sub: Rally no longer takes ahrs in constructor 2019-02-20 18:03:38 +11:00
Peter Barker 57e8528a96 Sub: move update_sensor_flags to GCS_Sub.cpp 2019-02-20 11:57:00 +11:00
Peter Barker cb95bf7814 Sub: move update_sensor_status_flags into GCS subclasses 2019-02-19 14:09:59 +11:00
Peter Barker bb706305d0 Sub: move sensor flags to be a GCS thing rather than a GCS_MAVLINK thing 2019-02-19 14:09:59 +11:00
Peter Barker 7b80f56a80 Sub: GCS_MAVLink takes care of mavlink capabilities 2019-02-19 13:14:52 +11:00
Peter Barker 57e5991fde Sub: move try_send_message of nav_controller_output up 2019-02-19 10:08:00 +11:00
Peter Barker db362eaa13 Sub: remove redundant home-setting sanity checks 2019-02-15 08:28:45 +11:00
Peter Barker 8937ef3190 Sub: make setting of home boolean in preparation for sanity checks 2019-02-15 08:28:45 +11:00
Peter Barker dc0ad11f7a Sub: use altitude frame mapping function
Remove checking for coordinate frames

This is very much NFC.  This change uncovers previous dead code in the
case that we are not ignoring yaw.
2019-02-13 10:06:49 +11:00
Peter Barker 44b7763caf Sub: move handling of command-int MAV_CMD_DO_SET_HOME up 2019-02-13 09:42:26 +11:00
Peter Barker 0c8f0377ca Sub: move handling of fence point handling up 2019-02-08 11:47:59 +09:00
Peter Barker 5002fa2081 Sub: move handling of MAV_CMD_DO_SET_FENCE_ENABLED up 2019-02-08 11:47:59 +09:00
Peter Barker 17e4981785 Sub: move handling of RC_CHANNELS_OVERRIDE up 2019-02-05 13:59:21 +11:00
Peter Barker fc19ce03b6 Sub: move sending of sys_status message up 2019-02-05 11:07:39 +11:00
Peter Barker 1690f78f4c Sub: move handling Write_Event into AP_Logger 2019-02-04 09:30:07 +09:00
Peter Barker 3521d98b52 Copter: move handling Write_Event into AP_Logger 2019-02-04 09:30:07 +09:00
Randy Mackay aa7743e991 Sub: integrate AC_WPNav::get_speed rename to get_default_speed 2019-01-31 19:34:32 +09:00
Peter Barker 66624c46a6 Sub: AC_Fence is included for all vehicles 2019-01-31 13:44:29 +09:00
Peter Barker 05c9ded9fc Sub: move sending of fence_status message up 2019-01-31 13:44:29 +09:00
Peter Barker 79eb0ac75f Sub: fence no longer takes reference to ahrs in constructor 2019-01-31 11:25:38 +09:00
Peter Barker 6fc76a32af GLOBAL: use AP::logger() and strip redundant Log_ from methods 2019-01-18 18:08:20 +11:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Francisco Ferreira 8850ab73a6
Sub: add KDECAN to included libraries 2019-01-18 00:57:33 +00:00
Peter Barker 9783bf730f Sub: log_terrain_data no longer takes a DataFlash argument 2019-01-18 11:17:40 +11:00
Peter Barker 696c8e3fb9 Sub: Log_Write_SIMSTATE no longer takes dataflash pointer 2019-01-18 11:16:54 +11:00
Peter Barker 9e8d2d7f7d Sub: remove PX4 FWVersion info 2019-01-16 11:47:55 +11:00
Peter Barker d8e90ded90 Sub: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Peter Barker b4c65dde92 Sub: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Peter Barker d92f34c3d0 Sub: adjust for location flags being moved out of union 2019-01-16 11:45:29 +11:00
Randy Mackay 8ba87171e6 Sub: desired-ground-idle replaces spin-when-armed 2019-01-15 11:41:44 +09:00
Pierre Kancir 2c895599e1 Sub: correct rc_checks_copter_sub call 2019-01-11 08:38:53 +09:00
Peter Barker 23ab90c596 Sub: Terrain uses rally singleton 2019-01-09 10:14:16 +11:00
Randy Mackay 8830e8d4e5 Sub: remove unused error code 2019-01-08 19:42:32 +09:00
Michael du Breuil b4c5041aad Sub: Remove unneeded GCS rally override 2019-01-08 10:39:50 +11:00
Michael du Breuil 58895b5a82 Sub: Reset all storage when format version is incorrect 2019-01-08 10:35:37 +11:00
murata 90f2f38fb2 Sub: Delete NuttX version processing 2019-01-08 10:06:20 +11:00
Andrew Tridgell 088442880e build: removed makefile build system 2018-12-22 11:06:59 +11:00
Andrew Tridgell 25c659822a Sub: changed Log_Write_Rate to use AHRS_View 2018-12-21 22:17:52 +11:00
Peter Barker 8a44bf50a8 Sub: split SIMSTATE, AHRS2 and AHRS3 onto their own ap_message ids 2018-12-19 13:19:23 +11:00
Peter Barker 0e1957328e Sub: split DISTANCE_SENSOR onto its own ap_message id 2018-12-19 07:24:37 +11:00
Peter Barker 87d27957d9 Sub: try_send_message caller checks telemetry_delayed 2018-12-18 14:25:56 +11:00
Peter Barker d1daacd699 Sub: split SYS_STATUS and POWER_STATUS onto separate ap_messages 2018-12-18 14:05:20 +11:00
Francisco Ferreira 6f01073786 Sub: fix error in task scheduled rate 2018-12-14 09:17:02 +09:00
Peter Barker bbf1c434c6 Sub: DataFlash uses AP_Mission singleton 2018-12-13 14:45:30 +09:00
Peter Barker aab9103356 Sub: GCS_MAVLink now uses Mission singleton 2018-12-13 10:52:52 +09:00
Peter Barker e498883624 Sub: split MSG_SCALED_PRESSURE into three separate messages 2018-12-12 21:36:01 +11:00
Peter Barker 85f579021e Sub: GCS_MAVLink uses dataflash singleton 2018-12-11 08:43:47 +09:00
Peter Barker 2e58eb1d46 Sub: call GCS update_send at main loop rate 2018-12-10 12:52:41 +09:00
Peter Barker 5e196525bf Sub: split MSG_RAW_IMU1 into per-IMU ap_messages 2018-12-10 12:52:41 +09:00
Peter Barker 4d21630bf0 Sub: send both SYS_STATUS or POWER_STATUS or neither 2018-12-10 12:52:41 +09:00
Peter Barker e2e17b8822 Sub: rename send_extended_status1 to send_sys_status 2018-12-10 12:52:41 +09:00
Peter Barker b31ce6ae69 Sub: adjust for new update entry points into GCS 2018-12-10 12:52:41 +09:00
Peter Barker fe6342107b Sub: add parameter stream to list-of-all-streams 2018-12-10 12:52:41 +09:00
Peter Barker 85a96195fd Sub: rename MSG_EXTENDED_STATUS2 to MSG_MEMINFO 2018-12-04 18:01:38 +11:00
Peter Barker a40937337d Sub: rename MSG_RAW_IMU2 and MSG_RAW_IMU3 to reflect what they send 2018-12-04 17:45:32 +11:00
Peter Barker 27405f9dd7 Sub: remove pointless wrappers around gcs functions 2018-11-23 10:56:17 +11:00
Peter Barker 376a422cff Sub: OpticalFlow takes care of its own logging 2018-11-13 10:40:23 +11:00
Peter Barker 2bca18b712 Sub: do not pass ahrs to opticalflow constructor 2018-11-13 10:40:23 +11:00
Peter Barker 102f06bb92 Sub: move sending of optical flow status up to base class 2018-11-13 10:40:23 +11:00
Peter Barker 2116737e35 Sub: don't pass ahrs to terrain constructor 2018-11-08 20:59:45 +11:00
Peter Barker cadeb428b6 Sub: stop passing ahrs to Mission constructor 2018-11-08 10:01:16 +09:00
murata 9bf4428c28 Sub: Add patch number to VERSION notation 2018-11-08 09:11:07 +09:00
Michael du Breuil 4540109513 Sub: Fix battery failsafe parameter conversion 2018-11-06 10:18:39 +09:00
Michael du Breuil 68d713b971 Sub: Make capability init consistent 2018-11-05 14:04:36 +11:00
Peter Barker 793ff201b4 Sub: remove dead do_erase_logs method 2018-11-02 20:44:31 +09:00
Peter Barker a487cb09ed Sub: move handling of gimbal messages up
Sub: move handling of mav_cmd_do_mount_control up

Sub: move handling of deprecated mount messages up

Sub: move handling of command_do_set_roi up

Sub: move handling of command_do_set_roi up

Sub: mount no longer takes ahrs in constructor
2018-10-30 17:19:14 +11:00
Peter Barker d690baecf9 Sub: let AP_Mission handle common camera commands 2018-10-30 15:37:18 +11:00
Peter Barker 5a8a3963d4 Sub: move servorelayevents mission handling into AP_Mission 2018-10-30 15:37:18 +11:00
Peter Barker e79d107761 Sub: mission library handles gripper 2018-10-30 15:37:18 +11:00
Peter Barker 7289f0d04c Sub: AC_Avoid is built on all vehicles 2018-10-30 12:10:42 +11:00
Andrew Tridgell a8f5079df9 Sub: enable in-flight compass learning 2018-10-24 07:25:42 +10:00
Peter Barker ecd69e4359 Sub: remove pointless zero-initialisation 2018-10-23 16:12:45 +11:00
Peter Barker da5ed06714 Sub: leave AHRS to log and notify home changes 2018-10-16 10:55:13 +11:00
Peter Barker 47b5cf98ea Sub: make libraries get EKF control limits themselves 2018-10-09 10:47:38 +11:00
Michael du Breuil 27fad4489e Sub: Cope with AC_PosControl renaming 2018-09-20 15:15:45 -07:00
Leonard Hall ccb30d44ac Sub: Missing Loiter Init on accel 2018-09-19 17:29:55 +09:00
Michael du Breuil 18512eebbb Sub: Allow starting mission commands to fail 2018-09-11 06:42:00 +10:00
Peter Barker c0a990fda7 Sub: correct failsafe recovery test 2018-09-07 18:11:11 +09:00
Peter Barker 753be1142f Sub: use camera singleton to get camera rather than callback 2018-08-31 15:48:56 +10:00
Peter Barker e4c0ef789b Sub: GCS_MAVLink uses compass singleton, stop implementing get_compass 2018-08-31 15:48:56 +10:00
Peter Barker ff9a7b3f44 Sub: failsafe: subtract times, don't add them
Avoids integer wrap issues
2018-08-25 16:14:01 +09:00
Randy Mackay 012dd57246 Sub: rename gcs_check_input to gcs_update 2018-08-24 15:30:50 +09:00
Michael du Breuil 7fd8211253 Sub: Remove unneeded ServoRelayEvent mask set 2018-08-20 21:31:06 -07:00
Randy Mackay 54df7ad88d Sub: remove compass accumulate 2018-08-06 11:05:34 +10:00
Andrew Tridgell 660da5aaea Sub: fixed RC_Channels parameter docs 2018-08-04 12:28:38 +10:00
Peter Barker 1ba0901e51 Sub: minimal support for inheritting from RC_Channel 2018-08-01 12:11:30 +09:00
Michael du Breuil ad185edd48 Sub: Update notify initilization 2018-08-01 09:22:09 +10:00
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 d183847aa3 Sub: use compass singleton for logging 2018-07-04 20:11:27 +01:00
Peter Barker 3cfdcb1f2c ArduSub: use ArmingMethod enumeration 2018-07-03 15:16:38 +10:00
Peter Barker cc46ab3092 Sub: use singletons in AP_Arming 2018-07-03 13:44:11 +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
Patrick José Pereira 90601c80e9 Sub: Simplify some returns
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-29 15:51:30 -04:00
Patrick José Pereira e229d46612 Sub: Update functions argument names to match with cpp
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-29 15:51:30 -04:00
Peter Barker fd055bfa58 Sub: use check_failed function 2018-06-23 15:33:19 +10:00
Patrick José Pereira d14b37e89c Sub: Change from labs to abs for floats
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-21 17:24:14 +01:00
Patrick José Pereira cbef5db174 Sub: Simplify return logic
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-21 17:24:14 +01: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
Peter Barker 4cc236b8a7 Sub: use AP_RTC
Sub: AP_GPS now sets the system time directly

Sub: use AP_RTC for delays in missions
2018-06-15 08:01:22 +10: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 3701fc0937 Sub: Move from micros() to AP_HAL::micros()
AP_HAL::micros() 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 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
Patrick José Pereira 5a8d04e8f5 Sub: Simplify some returns logic
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-08 11:25:51 -04:00
Michael du Breuil c642d1ed74 Sub: Rework to support override changes 2018-06-05 09:51:09 +10:00
Peter Barker 1dbfb9943c Sub: make VFR_HUD always return height above MSL 2018-06-05 09:38:20 +10:00
Michael du Breuil 5a0a8a6705 Sub: Remove software type param 2018-06-05 09:14:12 +10:00
Peter Barker 31c6d7aaa0 Sub: Location gets ahrs from singleton 2018-06-01 16:18:33 +01: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 48a4523a73 Sub: fix comments in config.h 2018-06-01 13:28:43 +09:00
Peter Barker 69d8980608 Sub: split home-set and home-locked state 2018-05-29 14:38:45 +10: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 a81b4266fe Sub: remove arguments to send_home and send_ekf_origin 2018-05-17 20:42:36 +10: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
Peter Barker 9a73f0c260 Sub: move Log_Write_Home_And_Origin into AP_AHRS 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 936c7faa3e Sub: AP_Proximity is now a common library 2018-05-16 23:21:41 +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
Michael du Breuil 3927fb3107 Sub: Remove the usage of RC_Channels::set_overrides() 2018-05-11 12:13:39 +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
Jacob Walser cd98bef1f7 Sub: Update release notes for Sub-3.5.3 2018-05-08 14:41:36 -04:00
Peter Barker b7cd5491e2 Sub: move try_send_message handling of RC_CHANNELS up 2018-05-08 12:33:32 +01:00
Patrick José Pereira e62b560095 Sub: Move SITL barometer check to control_check_barometer
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-07 17:28:51 -04: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 aadbd04726 Sub: Update release notes for 3.5.3-beta 2018-04-29 17:21:26 -04:00
Andrew Tridgell 705474a2ff Sub: remove old pde file
this was here for upgrading very old MissionPlanner versions. We can
remove it now
2018-04-26 14:25:01 +10:00
Michael du Breuil 6642b9e585 Sub: Support new RC_Channels::read_input() 2018-04-26 08:00:09 +10: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 7caca6a251 Sub: reduce default ACRO_YAW_P by 25% to 3.375 2018-04-23 15:12:35 -04:00
Jacob Walser 4fae5cdfcf Sub: disarm motors if failsafe action fails 2018-04-23 15:12:35 -04:00
Jacob Walser 4fe8746a2a Sub: remove arbitrary scalars from manual mode inputs
fix bluerobotics/ardusub#150
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
Patrick José Pereira 0878f5044c Sub: Send a clear message if depth sensor is not connected
Fix bluerobotics/ardusub#151

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-04-19 07:45:00 -07:00
Peter Barker c7327acef7 Sub: use AP_ServoRelayEvents singleton 2018-04-18 20:31:55 +09:00
Peter Barker a10c843e6e Sub: GPS now logs its own data 2018-04-18 13:50:55 +09:00
Peter Barker fdd410f105 Sub: Baro does its own dataflash logging 2018-04-12 19:12:12 +01:00
Michael du Breuil 9f673c2746 Sub: Use RC_Channels instead of hal.rcin 2018-04-11 21:47:07 +01:00
Jacob Walser de0d158f37 Sub: apply yaw input scaling in manual mode
Close bluerobotics/ardusub#68
2018-04-11 14:06:32 -04:00
Michael du Breuil e840006ff9 Sub: Check MANUAL_CONTROL target 2018-04-10 16:54:34 +01:00
Randy Mackay defdeaed95 Sub: integrate AC_Loiter 2018-04-04 10:45:10 +09:00
Randy Mackay 6728659b4a Sub: add AC_Loiter to make build 2018-04-04 10:45:10 +09: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 78ca188dc3 Sub: use ins singleton 2018-03-16 00:37:35 -07:00
Randy Mackay d43341c532 Sub: run guided velocity control at main loop rate 2018-03-16 13:50:57 +09:00
Randy Mackay c857f8332b Sub: replace NTUN with PSC logging 2018-03-16 13:50:57 +09:00
Randy Mackay 01d1d41302 Sub: integrate attitude control inertial_frame_reset 2018-03-16 13:50:57 +09:00
Randy Mackay 2154d08185 Sub: remove setting of pos-con jerk 2018-03-16 13:50:57 +09:00
Randy Mackay 2697e19513 Sub: guided removes xy mode from calls to pos-con
Also always limit angle to maintain altitude
2018-03-16 13:50:57 +09:00
Randy Mackay da17034a3d Sub: replace smoothing gain with AC_AttitudeControl::set_input_tc 2018-03-16 13:50:57 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas f63388cb07 Sub: Obey RANGEFINDER_ENABLED and AC_TERRAIN build macros 2018-03-15 15:03:22 +00:00
Ebin 5dde62cce9 Sub: Changed log message IDs to enum
Changes log message IDs to enum and removes values for the params in LoggingParameters enum
2018-03-14 09:33:39 +09:00
Peter Barker 06f6135daa Sub: use baro singleton 2018-03-08 21:20:05 -08:00
Peter Barker 5e1e3dc822 Sub: delete correct assignment operator 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
Jacob Walser c1c471dbaa Sub: Fix comment
Fix #7856
2018-03-06 13:57:34 -05:00
murata 5da13774d5 Sub: Adjust to the defined value. 2018-03-02 09:27:43 +09: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
Patrick José Pereira 1196019b53 Sub: Correct joystick transform_manual_control_to_rc_override
Correct override channel number

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-02-21 09:03:42 -08:00
Jacob Walser 8f227201e0 Sub: move reset params to default handling to GCS base class 2018-02-20 10:49:09 +11:00
dheideman 47d5de353d Sub: Set neutral controls when switching to manual/acro mode 2018-02-13 11:41:37 -05:00
Jacob Walser 08298fced6 Sub: clear roll/pitch trim when setting neutral controls 2018-02-13 11:41:37 -05:00
dheideman b94ed3aecd Sub: Adjust roll/pitch joystick button logic 2018-02-13 11:41:36 -05:00
Andrew Tridgell 59868f425e Sub: use scheduler.get_last_loop_time_s() 2018-02-13 17:15:05 +11:00
Peter Barker 44a1553535 Sub: eliminate perf_update scheduler table shim 2018-02-13 17:15:05 +11:00
Andrew Tridgell 832a96d29f Sub: use filtered loop time 2018-02-13 17:15:05 +11:00
Peter Barker ae958632ec Sub: pass log-performance-bit at init time rather than update time 2018-02-13 17:15:05 +11:00
Peter Barker 980fbf6cfb Sub: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker 3e6ba8d96e Sub: move PERF: statustext sending into AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker 7313d9e7a7 Sub: use AP_Scheduler's loop() function 2018-02-13 17:15:05 +11:00
Peter Barker 9bb1224cef Sub: use scheduler ticks in place of mainloop_count 2018-02-13 17:15:05 +11:00
Peter Barker 044bc9adf0 Sub: tell PerfInfo the configured loop rate 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
Andrew Tridgell 58dfca8ccd Sub: pass loop rate to perf_info 2018-02-08 17:36:33 +11:00
Michael du Breuil 02a660e0ce Sub: Move battery logging to AP_BattMonitor 2018-02-06 00:11:32 +00:00
Randy Mackay 8d344ef7b4 Sub: removed defaults for PIDs moved to AC_PosControl 2018-01-31 08:48:21 +09:00
Randy Mackay 6a701b2412 Sub: move pos-control pids to pos-control library 2018-01-23 12:00:43 +09:00
Randy Mackay cef50d8a30 Sub: velocity pi moved to position control library 2018-01-23 12:00:43 +09:00
Michael du Breuil 2b81058ca1 Sub: Support AP_BattMonitor_Params 2018-01-17 22:21:55 +00:00
Andrew Tridgell c1504dadab Sub: use AP_FEATURE_BOARD_DETECT 2018-01-15 11:46:02 +11:00
ChrisBird 0fb679b2b2 Sub: Separate max ascent and descent speeds
This is to match a change made to Copter.

It might be relevant to sub in that users may wish to have asymmetrical descent and ascent rates.

New parameters named:
PILOT_SPEED_UP (technically renamed PILOT_VELZ_MAX)
PILOT_SPEED_DN

Removed parameter PILOT_VELZ_MAX (technically renamed to PILOT_SPEED_UP).

Modes impacted:
ALT_HOLD
CIRCLE
POSHOLD

Update a section in GUIDED mode but I don't think it is ever used but update just in case.

It will use the PILOT_SPEED_UP for ascending max velocity.  For down it will check if
it is 0, if so then it will PILOT_SPEED_UP instead, if non zero it will use PILOT_SPEED_DN.
This retains current behavior and gives the flexibility to change it if desired.

The above behavior is less of a concern for Sub but to keep it consistent its been implemented it the same way.
2017-12-28 15:16:08 -05:00
dheideman 8b0b96d56e Sub: Add servo toggle button function 2017-12-28 14:14:47 -05:00
dheideman 8fec2cbea3 Sub: Add momentary servo button function 2017-12-28 14:14:47 -05:00
Daniel Heideman 963d6a7739 Sub: Add momentary relay button function 2017-12-28 14:14:47 -05:00
Peter Barker ed82421f27 Sub: remove argument to check()
Also, fence_check was renamed to check()
2017-12-28 15:38:37 +00:00
Peter Barker b25a81e09d Sub: AP_AHRS no longer requires GPS in constructor 2017-12-27 00:58:02 +00:00
Peter Barker 268b8799d0 Sub: stop setting home distance in fence 2017-12-15 01:42:49 +00:00
Andrew Tridgell 4c9f48244e Sub: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Peter Barker 4c2a750f06 Sub: fence no longer requires AP_InertialNav 2017-12-13 10:04:50 +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
Dr.-Ing. Amilcar Do Carmo Lucas 9f6342a1d1 Sub: Move some common functions to AP_Math (NFC) 2017-12-05 08:54:49 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 0404d3588d Sub: Use DEGX100 define instead of hardcoded value (NFC) 2017-12-05 08:54:49 +09:00
Peter Barker 9040bb5f97 Sub: tighten type of result variable in handleMessage 2017-12-01 17:01:10 +00:00
Patrick José Pereira b724884344 Sub: Remove unnecessary cast in init_rc_out
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2017-11-27 15:14:34 -08:00
Peter Barker 7aaf25afd3 ArduSub: support for units on fields 2017-11-23 10:40:30 +11:00
Randy Mackay f01b483657 Sub: move barometer_accumulate to sensors.cpp
non-functional change
2017-11-22 17:13:14 +09:00
Andrew Tridgell b16ae19bce Sub: use cork/push wrapper 2017-11-21 14:10:54 +11:00
Peter Barker fc3721c123 Sub: add average and stddev time to SCHED_DEBUG output 2017-11-16 15:31:53 +00:00
Peter Barker 901dc46708 Sub: use AP::PerfInfo library 2017-11-16 15:31:53 +00:00
Peter Barker 6d2b0ecc82 Sub: AP_Camera uses GPS singleton 2017-11-16 15:28:37 +00:00
Peter Barker 2fc9b3b5f4 Sub: use gps singleton for GCS functions 2017-11-15 13:43:03 +00:00
Jacob Walser f28c58ce3b Sub: Update release notes for 3.5.2 2017-11-14 09:08:42 -05:00
André Kjellstrup 00484073b9 Sub: Option to trig by distance only when in AUTO mode 2017-11-14 00:10:22 +00:00
Peter Barker c436235b05 Sub: remove defaulting of report value in rc_calibration_checks 2017-11-08 19:08:21 +09:00
Peter Barker 450c8f4f3a Sub: remove redundant call to ins_checks
pre_arm_checks in AP_Arming already makes this call
2017-11-08 19:08:19 +09:00
Peter Barker 7961a8f5c8 Sub: rc calibration checks are called by AP_Arming 2017-11-08 19:08:01 +09:00
dheideman 99f63d63e8 Sub: Add joystick button functions for relays 3 & 4 2017-10-27 12:14:41 -04:00
Peter Barker 6d32fb7f2a Sub: call ins's periodic function 2017-10-27 16:33:45 +11:00
Jacob Walser eabc608b2e Sub: cleanup unused variable 2017-10-26 23:59:34 -04:00
Jacob Walser 1998cf93d2 Sub: JS_LIGHTS_STEP -> JS_LIGHTS_STEPS 2017-10-26 15:45:57 -04:00
Jacob Walser b7e367e21d Sub: always neutralize inputs during pilot input failsafe 2017-10-26 14:47:16 -04:00
Jacob Walser fb2e87032d Sub: use configured rc input range for lights input instead of hard coded values 2017-10-26 14:24:15 -04:00
dheideman 4e1c7fff37 Sub: Ignore input hold button if disarmed 2017-10-26 10:52:53 -04:00
dheideman 69be1725b6 Sub: Disable input hold on disarm 2017-10-26 10:52:53 -04:00
Jacob Walser 15658f1526 Sub: rework camera tilt input and slew limiting 2017-10-26 10:44:23 -04:00
Jacob Walser e8326ef120 Sub: remove manual control button debounce timer
This was a really long time for a debounce, and
this code belongs to the program actually polling for input.
2017-10-26 10:44:23 -04:00
Jacob Walser bc0827ffd7 Sub: force GND_EXT_BUS at boot for Pixhawk 1 and 2 2017-10-25 21:07:09 +11:00
Andrew Tridgell aeb2a628c4 Sub: fix for AP_Motors API change 2017-10-22 15:52:50 +11:00