Commit Graph

1310 Commits

Author SHA1 Message Date
Peter Barker
41d0a79ec0 Sub: correct boot on boards with features missing
parameters don't exist for defaulting, so config error loop is entered.  The config error loop also isn't working well this early in the boot, so the board is not perfectly informative.

Config Error: param deflt fail:BARO_PROBE_EXT
no link
Config Error: param deflt fail:BARO_PROBE_EXT
no link
no link
Config Error: param deflt fail:BARO_PROBE_EXT
no link
2024-05-08 18:18:07 +10:00
Iampete1
fd9423b254 Sub: euler_rate_to_ang_vel takes Quaternion attitude 2024-05-07 08:34:40 +09:00
Peter Barker
cccd105ac9 ArduSub: remove Baro accumulate API
no backend actually needs to be prodded, everything is done on timers
2024-04-18 09:19:20 +10:00
Peter Barker
0c2ae35d88 ArduSub: move Arming, Beacon and RC_Mapper into ardupilotwaf.py
these were built for all vehicles, so put them in the common list
2024-04-17 18:11:46 +10:00
Peter Barker
860498d30e Sub: remove redundant home_is_set check
this is already guaranteed to be the case
2024-04-11 20:24:16 -03:00
Thomas Watson
58c51f9fe6 Sub: unmark FORMAT_VERSION as read-only
Matches other vehicles and allows GCSes to use documented behavior of a
zero write to FORMAT_VERSION to reset EEPROM contents.
2024-04-10 17:45:37 +10:00
Peter Barker
3443e1c12f ArduSub: remove far_from_EKF_origin sanity checks
some  flawed implementations, and the extreme-ardupilot project means these checks are no longer required
2024-04-10 17:17:12 +10:00
Peter Barker
89a9a0e6d1 ArduSub: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
Clyde McQueen
e4115efa67 Sub: publish filtered alt in mav msgs 2024-04-08 10:51:12 -03:00
Peter Barker
547358c86a ArduSub: stop passing serial manager to GPS init
it can get this via the singleton
2024-03-19 07:28:55 +11:00
Peter Barker
b03346c096 ArduSub: move AP_OSD into common libraries list 2024-03-19 07:15:10 +11:00
Peter Barker
62f1d40d3b ArduSub: allow HarmonicNotches to be compiled out of the code 2024-03-19 07:04:13 +11:00
Clyde McQueen
53db811626 Sub: support ABOVE_TERRAIN frame in auto 2024-03-11 13:38:38 -03:00
Willian Galvani
11127e885c Sub: update Release notes 2024-03-06 23:23:55 -03:00
Willian Galvani
1509a8ea8d Sub: add missing call to calc_pwm() 2024-03-06 17:49:53 -03:00
Iampete1
fd94222832 ArduSub: don't try and send MSG_RANGEFINDER if AP_RANGEFINDER_ENABLED is false 2024-03-05 12:32:20 +11:00
Willian Galvani
5a87b0a436 Sub: make master 4.6.0 dev 2024-03-01 18:12:32 -03:00
Peter Barker
bd8fdd29d8 ArduSub: move serial_manager parameters up to base class 2024-02-29 12:12:19 +11:00
Peter Barker
5e35c8850f ArduSub: remove unused old_top_element param from convert_class 2024-02-27 10:37:45 +11:00
Peter Barker
620723767d ArduSub: simplify g2 object conversion 2024-02-27 10:37:45 +11:00
Clyde McQueen
f9db039dcc Sub: add SURFTRAK mode 2024-02-21 18:59:20 -03:00
Peter Barker
ccc9231c67 ArduSub: move gripper up to AP_Vehicle
also make the singleton return a reference rather than a pointer
2024-02-21 21:05:12 +11:00
bugobliterator
c707ac1970 ArduSub: fix version setting in CheckFirmware app descriptor 2024-02-21 18:54:17 +11:00
Peter Barker
df72d3faac ArduSub: move parameter storage formatting up to AP_Vehicle 2024-02-13 14:23:35 +11:00
Peter Barker
80fa661042 ArduSub: move logger object up to AP_Vehicle 2024-02-13 10:54:29 +11:00
Peter Barker
00bca3499f Sub: move scripting up to AP_Vehicle 2024-02-07 18:24:12 +11:00
Peter Barker
3bf58ad540 ArduSub: add comment for lost AP_Stats object params 2024-02-07 18:24:12 +11:00
Peter Barker
cb05eef238 ArduSub: move can_mgr.init call up to AP_Vehicle
... also adds the call for Blimp...
2024-02-06 11:03:54 +11:00
Peter Barker
64ac69b160 ArduSub: move call to BoardConfig.init to AP_Vehicle 2024-02-01 07:59:11 +11:00
Peter Barker
81231997ff Sub: move AP_Stats to AP_vehicle 2024-01-30 11:12:21 +11:00
Peter Barker
aa14e73a0b ArduSub: use virtual method for GCS_MAVLink::handle_message
use more appropriate naming for the method.
2024-01-24 09:07:41 +11:00
J.R. Bronkar
6ffdfd9f48 ArduSub: fractional Loiter Turn Support
Adds special storage handling for loiter turns. Fractional Loiter
Turns 0<N<1 are stored by multiplying the turn number by 256, then
dividing that number by 256 on retrieval.
2024-01-22 20:27:20 -08:00
Peter Barker
852944a1b1 Sub: correct compilation when HAL_LOGGING_ENABLED is false 2024-01-17 18:25:55 +11:00
Peter Barker
0275494042 ArduSub: make AHRS attitude member variables private 2024-01-14 12:47:47 +11:00
Michael du Breuil
6dc891baf9 Sub: Fix AP_Relay param naming 2023-12-19 10:01:01 +11:00
Willian Galvani
15b480f105 Sub: add support for 32 buttons and two additonal axis 2023-12-05 12:04:16 +11:00
Clyde McQueen
ce824b725d Sub: copy 4.1 parm defaults 2023-11-29 22:13:02 -03:00
Randy Mackay
9839652588 Sub: SYSID_MYGCS param increment
Also add range
2023-11-28 07:54:45 +09:00
Andy Piper
2442bca978 Sub: update PID notch centers at 1Hz with average loop rate 2023-11-21 13:26:23 +11:00
Peter Barker
a966e4232b ArduSub: stop streaming trying SIM_STATE messages outside sim 2023-11-20 19:25:25 +11:00
Peter Barker
a0f4863dad ArduSub: tidy sending of esc telem generator messages 2023-11-20 19:25:25 +11:00
Peter Barker
964e0b9134 ArduSub: tidy sending of queued mcu status messages 2023-11-20 19:25:25 +11:00
Peter Barker
51481a8284 ArduSub: tidy sending of queued opticalflow messages 2023-11-20 19:25:25 +11:00
Peter Barker
e407c3aacc ArduSub: tidy sending of queued mount messages 2023-11-20 19:25:25 +11:00
Willian Galvani
41850ee550 Sub: use gain-ajusted deadzone for pilot_desired_yaw_rate 2023-11-10 09:45:43 -03:00
Willian Galvani
622ddcf47a Sub: scale get_pilot_desired_climb_rate() deadzone and output with pilot gain 2023-11-09 10:19:19 -03:00
Willian Galvani
a288e585ed Sub: Version to 4.5.0-dev 2023-11-07 12:26:37 +11:00
Nick Exton
2c6798a540 Sub: Use AP_Mount::clear_roi_target() to remove ROI 2023-10-30 08:28:23 +09:00
Peter Barker
5006242da0 ArduSub: tidy use of GPS mavlink defines 2023-10-27 14:16:47 +11:00
Peter Barker
c3e5ea0b0f ArduSub: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Michael du Breuil
9e07fbd949 Sub: Support not sending a status text on state change 2023-10-25 09:39:51 -07:00
Mykhailo Kuznietsov
ebe4d4a6dc ArduSub: Fix some typos
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Peter Barker
63d9bcd62c ArduSub: allow for compilation without AP_RTC_ENABLED 2023-10-11 19:17:27 +11:00
Peter Barker
4843fa4c4b ArduSub: accept MAV_CMD_CONDITION_YAW as both long and int in Sub 2023-10-10 08:32:54 +09:00
Peter Barker
5c10db1e0c ArduSub: don't send fence_status mavlink message if fence not compiled in 2023-10-04 19:13:23 +11:00
Peter Barker
5a1a4acab2 Sub: accept DO_CHANGE_SPEED as both command_long and command_int 2023-10-04 18:36:52 +11:00
Peter Barker
c1e12f691e Sub: accept MISSION_START as both long and int 2023-10-03 23:54:40 +11:00
Peter Barker
2eb5a7b09d ArduSub: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
Peter Barker
daf427f6d6 Sub: accept MAV_CMD_DO_MOTOR_TEST as both command-int and command-long 2023-09-27 17:39:55 +10:00
Clyde McQueen
5e8fed9d43 Sub: provide script access to joystick buttons 2023-09-27 08:14:36 +10:00
Peter Barker
fe51f5448f ArduSub: remove COMPASS_CAL messages from streamrates if tumble cal disabled
fatal error in SITL if we try to send messages with these disabled
2023-09-26 11:39:50 +10:00
Peter Barker
30101c1e0f Sub: accept NAV_LOITER_UNLIM and NAV_LAND as command_int too 2023-09-26 11:38:28 +10:00
Peter Barker
2d5452d540 ArduSub: support preflight calibration via command_int 2023-09-13 17:24:07 +10:00
Peter Barker
f064dcd902 ArduSub: pass mavlink_message_t to handle_command_*_packet
the "special case" blocks are getting longer and longer.  Merge the switch statements for the command type to be handled by passing around the message.
2023-08-22 10:11:33 +10:00
Willian Galvani
9d768c0843 Sub: create and use defaults_table 2023-07-31 12:32:06 -03:00
Rakesh Vivekanandan
1127d1e678 Sub: Guided Mode: Improved guided_set_destination_posvel() to support handling of yaw control. 2023-07-28 15:38:01 -03:00
Rakesh Vivekanandan
79bf9dd05d Sub: Guided Mode: Improved guided_set_velocity() and fixed Z-controller in guided_vel_control_run() 2023-07-28 15:38:01 -03:00
Rakesh Vivekanandan
d77ac1ae72 Sub: Guided Mode: Improved guided_set_destination() such that it can accept a desired yaw/yaw rate as input along with a position setpoint. 2023-07-28 15:38:01 -03:00
Rakesh Vivekanandan
7628fa45bf Sub: GCS_Mavlink: Improved the functionality of SET_POSITION_TARGET_LOCAL_NED's callback. 2023-07-28 15:38:01 -03:00
Rakesh Vivekanandan
6a36c05e4e Sub: Guided Mode: Helper function guided_set_yaw_state() to set yaw state and targets when the vehicle is in guided mode. 2023-07-28 12:04:54 -03:00
Willian Galvani
e12ed0fe1c Sub: set defaults for MOT_PWM_MIN and MOT_PWM_MAX 2023-07-27 10:46:18 -03:00
Rakesh Vivekanandan
d8b171e52b Sub: Introduced AUTO_YAW_RATE mode and its features. 2023-07-27 10:24:59 -03:00
Randy Mackay
816f9494b4 Sub: log MNT at 10hz 2023-07-26 17:33:18 +10:00
Willian Galvani
7ebe3c4bf1 Sub: rename mode files from control_ to mode_ 2023-07-13 14:56:40 -03:00
Willian Galvani
9b70ac1286 Sub: big mode refactor 2023-07-13 14:56:40 -03:00
Willian Galvani
d31f0d2312 Sub: Add AP_Stats
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2023-07-13 07:17:11 -03:00
Andrew Tridgell
46c214e9d4 ArduSub: removed set_blocking_writes_all calls 2023-07-12 17:06:02 +10:00
Henry Wurzburg
f59293c5a4 ArduSub: allow scaled passthru to go to trim on rc failsafe 2023-06-29 21:37:12 +10:00
Peter Barker
d9e89eb602 ArduSub: add option to disable relay and servorelay libraries 2023-06-20 09:36:39 +10:00
Jeevan K
078e1e0e89 ArduSub: Updated comment 2023-06-19 20:01:04 +10:00
Jeevan K
7200cdf4dd ArduSub: Comment Typo Fix 2023-06-19 20:01:04 +10:00
bugobliterator
6866ceb2e2 ArduSub: move sysid_my_gcs to be public 2023-06-17 14:49:22 +10:00
Peter Barker
76a2d89b51 ArduSub: move call of notify.update up to AP_Vehicle 2023-05-17 18:41:15 +10:00
Tom Pittenger
8a530ee0a6 Tools: move AP_KDECAN build to AP_Vehicle 2023-04-17 11:52:52 +10:00
bugobliterator
20bbff13c6 ArduSub: change INS_ to INS 2023-03-21 10:04:16 +11:00
Randy Mackay
a6afff837d Sub: remove unused do-control-video 2023-03-09 12:24:05 +11:00
Leonard Hall
6930e8872d Sub: Add support for terrain altitude time constant 2023-03-07 13:41:35 +11:00
Randy Mackay
e9d9326410 Sub: integrate camera frontend/backend split 2023-03-01 18:18:51 +11:00
Iampete1
4b30810d11 Sub: remove duplicate MOTB log documentation 2023-02-28 11:06:32 +11:00
Peter Barker
3bbe5ee3ff ArduSub: add support for mavlink in-progress message 2023-02-21 17:07:41 +11:00
rishabsingh3003
34702ed986 Sub: Obey loiter_ccw flag for loiter turns 2023-02-15 19:14:43 +11:00
Peter Barker
77039f38f6 ArduSub: add and use AP_ADVANCEDFAILSAFE_ENABLED 2023-02-08 19:00:13 +11:00
Pierre Kancir
8d12ca567b Sub: unify firmware name 2023-02-08 12:47:49 +11:00
Peter Barker
90f41c72f4 ArduSub: avoid using struct Location
clang reports this could be a problem when compiling under some EABIs.  Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
2023-02-04 22:51:54 +11:00
Iampete1
ff6c3f8889 ArduSub: use check_enabled helper 2023-01-23 11:00:13 +09:00
Peter Barker
d91cbf08c8 Sub: include SIM_ parameters in documentation 2023-01-17 11:23:40 +11:00
Iampete1
30ba68e5c7 ArduSub: use shared param info defines 2023-01-11 18:41:34 +11:00
Peter Barker
276303dccc ArduSub: make check_var_info void
Given all the callers die anyway, make it void
2023-01-10 10:48:15 +11:00
Peter Barker
7e3233f8e8 ArduSub: remove logging of first home location into CMD message set 2023-01-03 11:22:18 +11:00
Ohad Nir
8d366c16fb Sub:consider RC_CHANNELS_OVERRIDE for pilot_input_failsafe 2022-12-17 11:57:22 +11:00