Peter Barker
365d2ef3ff
ArduSub: add missing include
2022-09-28 20:10:21 +10:00
Peter Barker
7546530050
ArduSub: correct compilation with rally disabled
2022-09-27 10:16:47 +10:00
Peter Barker
9b5d70f7b5
ArduSub: add and use AP_CAMERA_ENABLED
2022-09-21 11:58:38 +10:00
Peter Barker
48308b8156
ArduSub: add and use AP_RPM_ENABLED
2022-09-20 09:28:27 +10:00
Willian Galvani
830c1a4a3e
Sub: stop position control when in velocity mode
2022-09-15 11:06:23 -03:00
Michael du Breuil
e5a6e1133f
Sub: Don't send HWSTATUS by default
2022-09-13 14:27:06 +10:00
Randy Mackay
d5c87d87cf
Sub: integrate MNT1_ param rename
2022-09-06 13:53:25 +09:00
Randy Mackay
ff382d8f7c
Sub: default RC7 and 8 to gimbal yaw and pitch control
2022-09-06 13:53:25 +09:00
Andrew Tridgell
b3e4306b70
Sub: removed use of "blended" earth frame accel
2022-08-21 18:51:59 +10:00
Peter Barker
2cb5a0cc26
ArduSub: rename OpticalFlow class to AP_OpticalFlow
...
Brings us in-line with other classes in ArduPilot.
Removes ambiguity with AP_HAL::OpticalFlow which can cause compilation errors as we start to make code more portable across targets
2022-08-18 14:24:01 +10:00
Randy Mackay
796b39e908
Sub: replace send-mount-status with send-gimbal-device-attitude-status
2022-08-15 20:29:25 -04:00
Peter Barker
9576075800
ArduSub: move call to compass cal update up to AP_Vehicle
2022-08-16 10:06:44 +10:00
Iampete1
ed094ffc6b
ArduSub: params always use set method
2022-08-03 13:43:48 +01:00
Iampete1
cf1e1b2969
ArduSub: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
Iampete1
2d8b9f7cbe
Sub: Fence moved to vehicle
2022-07-27 19:04:56 +10:00
Iampete1
8960fce4dc
Sub: set defualt format version
2022-07-20 17:59:59 +10:00
Iampete1
720117298d
Sub: stop using custom pos controller
2022-07-05 16:00:03 -03:00
Randy Mackay
d0c489a0be
Sub: calls to mount.set_angle_target set earth-frame or body-frame
...
this is a non-functional change
2022-06-29 10:56:48 +09:00
Peter Barker
c672301df3
ArduSub: adjust for when LTM telemetry is disabled
2022-06-28 20:19:41 +10:00
Randy Mackay
5add147c8d
Sub: set param default for MNT_RC_RATE to 30deg/s
2022-06-21 13:37:11 +09:00
Peter Barker
ac4d8404bb
Sub: let AHRS update orientation in its own time
2022-06-12 17:32:11 +10:00
Randy Mackay
b0b6d35a5a
Sub: remove unused MSG_GIMBAL_REPORT
2022-06-07 09:27:47 +10:00
GH6947
9304fa0f52
Sub: roll pitch comments
...
In ArduSub modes Auto & Guided, direct (not translated to forward/lateral) Roll and Pitch values come from the RC channels, not from wp controller. The existing comments are leftovers from ArduCopter
2022-05-26 10:09:23 +09:00
murata
047b2d5578
Sub: Clarify that the target_yaw_rate variable is set
2022-05-20 11:21:22 +09:00
Peter Barker
317457ec1a
ArduSub: support *10 multipler when storing/retrieving radius in NAV_LOITER_TURNS
2022-05-11 17:40:35 +10:00
Peter Barker
8a9a856de8
ArduSub: move logging of compass ERR flags into AP_Compass
2022-05-10 19:46:40 +10:00
Peter Barker
1764dce39e
ArduSub: remove handling of MAVLINK_MSG_ID_SET_HOME_POSITION
...
We decided to remove this after 4.2 was out in favour of
MAV_CMD_DO_SET_HOME which has been available since 2015.
The gcs-maintainers list was notified in Feburary.
2022-05-10 09:46:22 +10:00
ES-Alexander
21cd4f1976
sub: GCS_Mavlink: fix depth hold typemask bug
2022-05-05 17:22:05 -03:00
Peter Barker
5a4963e4f8
ArduSub: move error logging of sensor health into AP_Baro
2022-05-03 17:38:09 +10:00
Andy Piper
0b754aeba8
Sub: move fast_loop into scheduler tasks
2022-05-03 08:20:13 +09:00
Peter Barker
785615de2f
ArduSub: tidy includes
2022-05-03 09:14:58 +10:00
Tatsuya Yamaguchi
32a39055db
Sub: wscript: remove duplicated AP_RCMapper
2022-04-28 08:32:34 +09:00
Willian Galvani
cd9cc1419b
Sub: Improve althold to handle small inputs with payload/buyoancy better
2022-04-13 16:23:55 -03:00
Peter Barker
42383dd6f2
ArduSub: stop libraries including AP_Logger.h in .h files
...
AP_Logger.h is a nexus of includes; while this is being improved over
time, there's no reason for the library headers to include AP_Logger.h
as the logger itself is access by singleton and the structures are in
LogStructure.h
This necessitated moving The PID_Info structure out of AP_Logger's
namespace. This cleans up a pretty nasty bit - that structure is
definitely not simply used for logging, but also used to pass pid
information around to controllers!
There are a lot of patches in here because AP_Logger.h, acting as a
nexus, was providing transitive header file inclusion in many (some
unlikely!) places.
2022-04-08 19:18:38 +10:00
Peter Barker
07b299997d
ArduSub: split AP_HAL_SITL and HAL_SIM_ENABLED
2022-03-17 14:39:55 +11:00
murata
e52931c692
Sub: Change the process for errors
2022-03-08 14:36:19 -08:00
Shiv Tyagi
8fe9a8e9f6
Sub: change circle_nav.set_radius to circle_nav.set_radius_cm
2022-03-01 09:31:10 +09:00
Peter Barker
0a9481a557
ArduSub: include cleanups
2022-03-01 11:21:33 +11:00
Peter Barker
c33590a63b
ArduSub: add RebootRequred to stream rate parameters
2022-03-01 11:01:12 +11:00
Peter Barker
bbc040d807
ArduSub: send deprecated message warning for MAVLINK_MSG_ID_SET_HOME_POSITION
2022-02-10 12:13:43 +11:00
Joshua Henderson
fc5ecfcafd
Sub: remove position_vector.cpp
2022-02-08 12:14:10 +11:00
Joshua Henderson
2836ec4ae0
Sub: SET_POSITION_TARGET_LOCAL_NED above origin
2022-02-08 12:14:10 +11:00
Peter Barker
ac6842b0ac
ArduSub: stop passing mission in Terrain constructor
...
Terrain can use the mission singleton
This means Copter can have terrain while compiling mission out
2022-02-08 11:20:20 +11:00
Peter Barker
abbbfc0e85
ArduSub: move logging of LogEvent::SET_HOME up
2022-02-08 11:04:26 +11:00
Peter Barker
2372a4f3b6
ArduSub: provide default implemenation of handle_change_alt_request
...
The TODO items to actually implement these are almost 6 years old.
Since then these methods have been burning space.
This doesn't even make sense for several vehicles, so a default
implementation which does nothing seems OK.
2022-02-08 10:59:13 +11:00
murata
a7108ed136
Sub: Remove meaningless semicolons
2022-02-07 08:27:34 +09:00
Peter Barker
b2fdd39c06
Sub: mark use of get_velocity_NED as UNUSED_RESULT
...
velocity will stay at zero, which seems a reasonable thing to continue
with in this function
2022-02-02 19:32:47 +11:00
Shiv Tyagi
036a1b0d20
Sub: rename GUID to GUIP
...
We have introduced separate logging for guided and attitude targets in guided mode in copter. This is to make it consistent with those changes
2022-01-26 21:36:48 +09:00
Peter Barker
a25e4f82cc
ArduSub: move logging of SIMSTATE, AHRS2 and POS into AP_AHRS library
2022-01-25 10:59:17 +11:00
Peter Barker
4640ef9a66
ArduSub: rename AP_AHRS::get_position to get_location
2022-01-25 10:47:22 +11:00
Joshua Henderson
a765bb048d
Sub: move Airspeed to AP_Vehicle
2022-01-19 18:21:32 +11:00
Iampete1
834ec4cea2
Sub: move motbatt logging into AP_Motors
2022-01-18 10:18:10 +11:00
Jaaaky
132baa1ad0
ArduSub: Fix build with RPM_ENABLED
2022-01-15 08:30:51 +09:00
Peter Barker
9b60443fa4
ArduSub: move RPM sensor logging into AP_RPM
2022-01-11 11:09:26 +11:00
Peter Barker
7a9a701c63
ArduSub: move INS notch filter logging into INS
2022-01-05 16:34:36 +11:00
Peter Barker
c19b5d9e3c
ArduSub: make vehicles write notch log messages
2022-01-05 16:34:36 +11:00
Peter Barker
f637facea2
Sub: create and use AP_OPTICALFLOW_ENABLED
2021-12-29 18:12:03 +11:00
Peter Barker
79536ca2e5
ArduSub: adjust for rename of OpticalFlow.cpp
2021-12-28 10:16:20 +11:00
Peter Barker
7dadc9f050
ArduSub: tidy log message id definitions
...
Add a comment indicating only 20 ids are available to the vehicle
2021-12-21 10:42:18 +11:00
Gone4Dirt
33ed08d07e
Sub: Make RPM log independant of RC log mask
2021-12-16 12:48:48 +11:00
Andrew Tridgell
3d2ecfe3c5
ArduSub: revert compass parameter changes
2021-12-04 16:51:53 +11: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
Iampete1
b608b82041
Sub: remove compass params underscore
2021-11-30 08:14:43 +09:00
Josh Henderson
bdac4a2416
Sub: INAV rename for neu & cm/cms
2021-11-30 10:08:07 +11:00
Josh Henderson
17243b5630
Sub: inav use _xy()
2021-11-30 10:08:07 +11:00
Josh Henderson
5391262900
ArduSub: get_bearing & get_horizontal_distance use Vector2f
2021-11-30 10:08:07 +11:00
Peter Barker
b7eec83f52
ArduSub: remove unused GUIDED_LOOK_AT_TARGET_MIN_DISTANCE_CM define
2021-11-29 15:09:00 +11:00
Peter Barker
422bb3cfbb
ArduSub: allow specification of Scheduler table priorities
2021-11-17 19:00:04 +11:00
Peter Barker
bc39b8d74c
ArduSub: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED
2021-11-15 20:27:40 +11:00
Peter Barker
9bc9179d8d
ArduSub: ensure ENABLE_SCRIPTING is always defined
2021-11-15 20:27:40 +11:00
Peter Barker
1c544702d2
ArduSub: handle renaming of AP_InertialNav_NavEKF to AP_InertialNav
2021-10-20 18:09:36 +11:00
Peter Barker
4c1c0e591f
ArduSub: move SITL object up to AP_Vehicle
2021-10-19 11:34:43 +11:00
Iampete1
b7db7f8cac
Sub: convert to PWM min and max in AP_Motors
2021-10-11 22:19:17 -04:00
Iampete1
44c5153df8
Sub: update_throttle_range don't set_throttle_range
2021-10-11 22:19:17 -04:00
Willian Galvani
0adc4562ad
Sub: add exception for linux boards when setting BARO_EXT_BUS
2021-10-11 17:57:52 -03:00
Willian Galvani
d5ec5f1dfc
Sub: Motor-test: change disarm method on motor test timeout
2021-10-11 17:56:06 -03:00
Peter Barker
f3e5e9463b
Sub: stop passing current_loc into AP_Camera
2021-09-29 18:33:01 +10:00
Josh Henderson
69997626d3
Sub: modes keep controllers initialized when disarmed
2021-09-28 17:03:16 +10:00
Iampete1
adb58a9b60
Sub: fix RC init order to avoid error message
2021-09-21 17:49:47 +10:00
Iampete1
7e1eb970bc
Sub: convert to new ARMDISARM
2021-09-21 09:36:24 +10:00
Andrew Tridgell
dbe0bef58b
Sub: moved accel cal update to vehicle code
2021-09-17 14:07:14 +10:00
Josh Henderson
d6d9577f27
Sub: use vector.xy().length() instead of norm(x,y)
2021-09-14 10:43:46 +10:00
Leonard Hall
f3dc47ce3d
Copter: Add units to the AC_AttitudeControl Library
2021-09-09 08:01:14 +09:00
Andrew Tridgell
fd758113ce
Sub: no need to fabs() get_default_speed_down() as it does fabs already
2021-09-07 18:55:00 +09:00
Leonard Hall
c2f7702094
Sub: Separate landing and terrain following.
2021-09-06 16:00:19 +09:00
Peter Barker
29d2eed9e4
Sub: view update does not take skip_ins_update
2021-08-31 14:28:53 +10:00
Peter Barker
80a56a5fdf
ArduSub: eliminate AP::ahrs().get_location
2021-08-31 09:47:31 +10:00
Andrew Tridgell
4daedd4572
Sub: added MCU_STATUS message
2021-08-25 07:11:31 +10:00
Andrew Tridgell
bf7f140052
Sub: added slew rate and Dmod for PID_TUNING message
2021-08-19 12:08:54 +10:00
Peter Barker
aa22126355
ArduSub: stop sending SENSOR_OFFSETS
...
Only works for first compass instance.
We have all of these in parameters anyway.
2021-08-18 18:06:24 +10:00
Peter Barker
f35a94a730
ArduSub: DCM handles centrifugal correction application internally now
2021-08-17 10:36:46 +10:00
Peter Barker
9f8d01827a
ArduSub: move VehicleClass handling to AHRS frontend
...
.... and renaming the enumeration while we're at it
2021-08-17 10:34:07 +10:00
Patrick José Pereira
190f1c5098
Sub: Parameters: Add default value for MNT_TYPE
...
It's very unlikely that a ROV may exist without a gimbal or any kind of camera control,
the common use case is to use a single servo to control the camera and this is why
we set the default value of MNT_TYPE as 1 (Servo).
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-08-16 17:49:54 -04:00
bugobliterator
6ec8919bdd
Sub: change class name from SITL::SITL to SITL::SIM
2021-08-05 07:25:31 +10:00
Willian Galvani
8ee38a7171
Sub: update release notes for 4.0.3
2021-08-02 18:29:15 -04:00
Peter Barker
3e13790039
ArduSub: use AP::compass().available in place of enabled()
2021-07-30 12:19:42 +10:00
Peter Barker
e98af90749
ArduSub: rename for AHRS restructuring
2021-07-21 21:01:39 +10:00
Willian Galvani
da906f6b0f
Sub: use BARO instead of GND prefix to set default baro parameters
...
This updates the code to deal with the changes from 3f6fd49507
2021-07-13 06:50:24 +10:00
Peter Barker
088120b8f3
ArduSub: use singleton to access AP_Terrain data
2021-07-12 17:34:44 +10:00
Peter Barker
ed0b0451cf
ArduSub: remove AC_TERRAIN compilation option
...
Use AP_TERRAIN_AVAILABLE instead
2021-07-12 17:34:44 +10:00
Leonard Hall
48a99df2b3
Sub: seperate kinimatic shaping from pid limit setting
2021-07-10 20:25:05 +09:00
Leonard Hall
5a133dac84
Sub: adjust for AttitudeControl library changes
2021-07-10 20:25:05 +09:00
Andrew Tridgell
c059f8c044
Sub: fixes for use of longitude_scale()
2021-07-10 07:20:41 +10:00
Willian Galvani
6ef37daaad
Sub: use scheduler.get_loop_period_s() instead of MAIN_LOOP_SECONDS
2021-07-08 13:09:34 -04:00
Peter Barker
bc4ee95004
ArduSub: remove misleading NOINLINE comment
...
NOINLINE hasn't been used in years in these files
2021-07-08 21:28:38 +10:00
Stephen Dade
2a1f6e1b31
ArduSub: Add support for HIGH_LATENCY2 messages
2021-07-07 17:10:05 +10:00
Andrew Tridgell
702f95d4c6
Sub: fixed longitude wrap
2021-06-25 15:33:55 +10:00
Andrew Tridgell
70f874e288
Sub: update for new double precision position APIs
2021-06-24 21:34:30 +10:00
Andrew Tridgell
18dd373ff5
Sub: use cleaned up APIs
2021-06-24 20:28:45 +10:00
Peter Barker
6f81c250be
ArduSub: remove optical flow pointer from AP_AHRS
...
Nothing was ever using it.
2021-05-30 10:44:42 +10:00
Peter Barker
26d1e34c19
ArduSub: remove pointless init_optflow wrapper
...
Hiding a one-line call in a wrapper just adds size to the build
2021-05-28 13:41:50 +09:00
Randy Mackay
05d74ba50d
Sub: call AC_PosControl::write_log in modes with only vertical control like AltHold
2021-05-26 18:58:31 +10:00
Hwurzburg
8a6c09c39a
ArduSub: make centideg metadata incr and range consistent
2021-05-25 10:10:18 +10:00
Leonard Hall
4c3a5c0918
Sub: Fix before squash
2021-05-24 20:13:37 +10:00
Leonard Hall
266bd22df3
Sub: Use PosControl fixes
2021-05-24 20:13:37 +10:00
Leonard Hall
74d22594db
Sub: integrate AC_PosControl::get_roll_cd rename
2021-05-12 17:16:00 +10:00
Josh Henderson
7e5ac5b648
ArduSub: Privatize AP_IntertialSensor Logging
2021-04-29 19:19:12 +10:00
Peter Barker
cb7ac6fb54
ArduSub: tidy setting of sensor status flags
2021-04-14 18:03:27 +10:00
Peter Barker
2e23822b27
ArduSub: move handling of last-seen-SYSID_MYGCS up to GCS base class
2021-04-07 17:54:21 +10:00
Randy Mackay
224cd5a0d3
Sub: auto-yaw-correct-xtract uses target velocity instead of position error
...
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2021-04-03 12:07:59 +09:00
Randy Mackay
afa59b9a60
Sub: integrate s-curves, remove spline support
2021-04-03 12:07:59 +09:00
Josh Henderson
f7b39b19f0
ArduSub: make Location(Vector3f) require ALTFRAME
2021-03-30 08:56:35 +09:00
Randy Mackay
dbecf363f3
Sub: HAL_PROXIMITY_ENABLED replaces PROXIMITY_ENABLED
2021-03-26 16:22:46 +09:00
Peter Barker
34d6094838
ArduSub: remove Log_Write_Performance which is not called anywhere
2021-03-26 16:35:08 +11:00
Siddharth Purohit
f95fe1d464
ArduSub: move underscore one layer down for GPS
2021-03-12 16:32:36 +09:00
Tom Pittenger
5b684e5e2b
Sub: change SRx_ docs value 1 50
2021-03-03 18:17:22 +11:00
Peter Barker
840bdbba62
Sub: show frame class as part of banner
...
Similar to how Copter does in its equivalent method.
frame type is not used on Sub ATM
2021-02-12 08:37:20 +09:00
Willian Galvani
e448910ff0
Sub: don't override default RNGFND1_TYPE
...
This is causing side-effects in QGC 4.1, as it reports the Range-
finder to be in bad health, which causes qgc to show "not ready to
fly" instead of "ready to fly" which might confuse users
2021-02-11 10:43:50 -08:00
Peter Barker
82edfc6237
Sub: remove unused prev_control_mode_reason
2021-02-03 19:22:25 +11:00
Patrick José Pereira
678cbdfb4f
ArduSub: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Peter Barker
2b890eda53
ArduSub: move control_mode_reason up to AP_Vehicle
2021-02-03 18:24:52 +11:00
Randy Mackay
e7c2eb1705
Sub: ahrs pre-arm skips position checks
2021-01-26 10:46:49 +11:00
Peter Barker
f6f19eeeb2
ArduSub: add do_disarm_checks boolean to disarm call
...
this creates symmetry between arming and disarming, at least as far as
the top-level arm() and disarm() calls are concerned.
2021-01-12 08:48:44 +09:00
Josh Henderson
aaa1341b75
ArduSub: privatize AHRS logging
2021-01-12 10:13:22 +11:00
Tom Pittenger
d45ff51bd1
Sub: extend Stream rates param count to match MAVLINK_COMM_NUM_BUFFER
2020-12-29 07:52:09 -07:00
yaapu
2e69ba1091
ArduSub: added virtual getters for waypoint info
2020-12-10 12:39:44 +11:00
Andrew Tridgell
cd2f2f96eb
rename barometer parameters to BARO prefix
2020-12-08 13:22:17 +11:00
Andrew Tridgell
aca46c177d
ArduSub: moved init_safety to AP_Vehicle
2020-12-08 11:14:24 +11:00
Peter Barker
1c19a228ac
Sub: nail GND_EXT_BUS down to bus 1 on Pixhawk1
2020-12-04 16:37:10 +11:00
Peter Barker
6e5e73ef2c
Sub: initialise celsius library on configured (barometer) external bus
2020-12-04 16:37:10 +11:00
Peter Barker
64e1784cb7
Sub: use set_default_by_name for GND_EXT_BUS
2020-12-04 16:37:10 +11:00
Randy Mackay
a8f4ab3d43
Sub: guided pos hold init loses redundant set-auto-yaw-mode
...
also use wpnav's 3d stopping point method
2020-11-27 10:52:17 +09:00
Jacob Walser
c2e3520add
Sub: update release notes for 4.0.2
2020-11-23 12:41:39 -05:00
Willian Galvani
4415d4ed56
Sub: update release notes for 4.0.1
2020-11-23 12:41:30 -05:00
Iampete1
d197ec4072
Sub: add airspeed sensors
2020-10-27 11:24:49 +11:00
Randy Mackay
4bf4872504
Sub: integrate ahrs::get_variances change
...
offset is no longer returned
2020-10-21 08:58:45 +09:00
Randy Mackay
facc0ea8bb
Sub: integrate ahrs.pre_arm_check
2020-10-07 11:53:07 +11:00
Peter Barker
1ea3ca768c
Sub: correct compilation when logging disabled
2020-10-06 11:25:09 +11:00
Peter Barker
13e5e03a0d
ArduSub: move orderly rebooting code from GCS into AP_Vehicle
...
Several places we reboot the vehicle we should probably do several of
the things done in this code - flushing parameters, forcing safety on
etc.
2020-09-29 18:07:59 +10:00
Peter Barker
d37624ccd6
Sub: remove stale MAGNETOMETER config option from config files
...
This isn't used in the code any more
2020-09-29 11:17:08 +10:00