Commit Graph

962 Commits

Author SHA1 Message Date
Peter Barker aae9dc55e3 Sub: move responsibility for logging into library 2019-04-23 10:06:17 +10:00
Peter Barker c6a9130d84 Sub: call compass cal routine directly from sched table 2019-04-23 10:06:17 +10:00
Peter Barker f66f36287e Sub: move setting of compass sys_status bits up 2019-04-16 09:48:23 +10:00
Peter Barker cb88bc7f53 Sub: adjust for desired spool state renames 2019-04-14 12:18:03 +09:00
Michael du Breuil 75e5efc16e Sub: Check all EKF cores are healthy before arming 2019-04-09 10:53:25 +10:00
Pierre Kancir 8425a58585 ArduSub: move check_latlng to Location 2019-04-08 12:56:01 -07:00
Jacob Walser 3c58fba030 sub: version to 3.7.0-dev 2019-04-08 15:07:29 -04:00
Leonard Hall d8d3522cba Sub: replace set_throttle_out_unstabilized 2019-04-08 09:42:21 +09:00
Michael du Breuil 698e4e440e Sub: Fix rangefinder init 2019-04-06 09:15:22 +11:00
Jacob Walser 5ac19bc5a3 sub: update release notes for 3.5.4 2019-04-05 11:56:37 -04:00
Michael du Breuil 3017a762f0 Sub: include FWversion 2019-04-05 20:12:53 +11:00
Peter Barker 8b34852147 Sub: add param conversion from MAG_ENABLE to COMPASS_ENABLED 2019-04-02 10:24:49 +11:00
Peter Barker b1c4a5ade7 Sub: move enabled parameter into compass library 2019-04-02 10:24:49 +11:00
Tom Pittenger 2dc766556d Sub: rename dataflash to logger 2019-03-28 16:40:57 +11:00
Peter Barker e3561f7204 Sub: add log entry if depth sensor failure is resolved 2019-03-27 12:02:53 -04:00
Peter Barker 706a75ad03 Sub: move Log_Write_Error into library 2019-03-27 12:36:40 +11:00
Patrick José Pereira d2052cdd35 Sub: Use new reset_i in relax_alt_hold_controllers
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-03-26 13:37:18 -04:00
Patrick José Pereira 33768cd79c Sub: Fix overshoot from joystick input
This approach waits for a zero derivative point and to set the new actual position
Such method is necessary since the inertia of the ROV underwater is bigger than aerial vehicles
resulting in a big overshoot

Fix #9797

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-03-26 13:37:18 -04:00
Peter Barker 173611e819 Sub: move various sensor status flag updates up 2019-03-26 11:03:21 +11:00
Jacob Walser ad67511f46 Sub: bugfix fail condition in motor test initialization 2019-03-25 09:00:26 +11:00
Peter Barker 513a635ff7 Sub: remove definition of Devo constructor 2019-03-23 11:25:21 +11:00
Peter Barker b3f76e39ec Sub: move command-long DO_SET_HOME up 2019-03-19 19:56:13 +11:00
Peter Barker f4cafe4ffa Sub: add dummy methods to avoid linking DevoTelem 2019-03-19 14:39:14 +11:00
Peter Barker fabf0a10d5 Sub: move vehicle_initialised to be on GCS not GCS_MAVLink 2019-03-19 14:39:14 +11:00
Peter Barker 1ce531b921 Sub: move base_mode and frame_type into GCS from GCS_MAVLink 2019-03-19 14:39:14 +11:00
Peter Barker 5b618fb582 Sub: fill Notify flag for flying 2019-03-19 14:39:14 +11:00
Peter Barker eb7cf9843e Sub: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker b1c789f73d Sub: move sending of RPM message up 2019-03-16 10:33:01 +09:00
Peter Barker 069a2d0e35 Sub: compass init never fails 2019-03-13 13:06:50 +11:00
Peter Barker c48042424b Sub: use enum class for ArmingMethod and ArmingRequired 2019-03-12 19:48:14 +11:00
Peter Barker d7735a316a Sub: remove unused calculation of longitude scale 2019-03-12 10:11:12 +11:00
Peter Barker b04d084a50 Sub: move sending of send_pid_tuning up 2019-03-05 10:41:56 +11:00
Michael du Breuil e8401671e3 Sub: Allow scripting to run 2019-03-05 08:45:54 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 3fd5e05601 Sub: replace location_offset() and get_distance() function calls with Location object member function calls
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
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