Commit Graph

29956 Commits

Author SHA1 Message Date
Andrew Tridgell
2318c0e505 AP_Arming: added Scripting2 CAN protocol to switch 2022-07-03 08:21:55 +10:00
Andrew Tridgell
d8b98789e6 AP_Scripting: add support for scripting2 protocol 2022-07-03 08:21:55 +10:00
Andrew Tridgell
1b25babd8a AP_CANManager: added scripting2 protocol
allows for lua scripts to distinguish two CAN interfaces
2022-07-03 08:21:55 +10:00
Randy Mackay
a7aa77ff86 AP_Scripting: add lua docs for mount methods 2022-07-02 09:21:53 +09:00
Randy Mackay
b8560345f7 AP_Scripting: add mount-test example script 2022-07-02 09:21:53 +09:00
Randy Mackay
47e10eaefa AP_Scripting: add bindings to control mount 2022-07-02 09:21:53 +09:00
murata
531e92db8f AP_TECS: Unify coding style for if statements 2022-07-01 11:54:46 -07:00
Peter Barker
db59117b83 SITL: add tests for ICE Planes 2022-07-01 19:33:51 +10:00
Peter Barker
61e65ca5f2 AP_ICEngine: add tests for ICE Planes 2022-07-01 19:33:51 +10:00
François Carouge
84b0f6478c SITL/SIM_RF_MAVLink: fix incomplete initializer clauses 2022-07-01 18:24:43 +09:00
Yuri
f155c1b027 AP_Scripting: add rover-MinFixType and rover-SaveTurns examples 2022-07-01 18:23:31 +09:00
Andrew Tridgell
eefc41fe30 Filter: added a way to plot attenuation and phase lag for complex filters 2022-06-30 20:58:37 +10:00
Andrew Tridgell
50740124fe AP_Vehicle: implement INS_HNTCH_FM_RAT
this allows for a throttle based harmonic notch min frequency ratio,
allowing for the notch to go below the configured frequency at low
throttle

This is important for quadplanes, but will also benefit multirotors
flying at lower throttle due to lower payload or when descending

This also disables the throttle based harmonic notch when motors are
in SHUT_DOWN state
2022-06-30 20:58:37 +10:00
Andrew Tridgell
366aa7154c Filter: added FM_RAT for throttle notch frequency ratio
allow for configurable min frequency ratio for throttle based notches
2022-06-30 20:58:37 +10:00
Andrew Tridgell
9ac3472b47 AP_InertialSensor: add set_inactive() on notch filters 2022-06-30 20:58:37 +10:00
Peter Barker
c085b713ac AP_Common: correct comments on get_alt_cm and change_alt_frame 2022-06-30 20:08:24 +10:00
Ryan Beall
77f922a1ae AP_TECS.cpp: remove line copy error
This was a copy paste error that is duplicated in the correct spot (in line 530)
2022-06-30 20:06:33 +10:00
Randy Mackay
f03ac3648d AP_Mount: fixup handle do-gimbal-manager-pitchyaw flags 2022-06-29 10:56:48 +09:00
Randy Mackay
3b0869d098 AP_Mount: SToRM32_serial restructure and support for ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
f14f524ff5 AP_Mount: SToRM32 restructure and support for ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
18fe1d44b7 AP_Mount: Solo restructure and support for ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
d59e87ea59 AP_Mount: Servo restructure and support for ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
80b70dcd66 AP_Mount: Gremsy fixup for support of ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
d17e1b6fab AP_Mount: Alexmos restructure and support for ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
0d60e47c68 AP_Mount: backend restructure and support for ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
f0f95fb812 AP_Mount: frontend adds support for both ef/bf angle and rate 2022-06-29 10:56:48 +09:00
Randy Mackay
c22d8b379f AP_Mission: do_gimbal_manager_pitchyaw supports bf/ef angles and rates
also minor bug fix so verify DO_GIMBAL_MANAGER_PITCHYAW returns true
2022-06-29 10:56:48 +09:00
Randy Mackay
33a4efa936 AP_Mount: move mode, yaw_lock, roi_target and sysid target to backend 2022-06-29 10:56:48 +09:00
Randy Mackay
ec07c15e1e AP_Mount: set_roi_target and set_target_sysid lose struct and const before args 2022-06-29 10:56:48 +09:00
Randy Mackay
898bdb864c AP_Mount: fix handle_command_do_mount_configure instance handling 2022-06-29 10:56:48 +09:00
Randy Mackay
e58d72931e AP_Mount: Solo in sysid target sets lockedToBody
Also re-order calls in home-location mode to be consistent with other modes
2022-06-29 10:56:48 +09:00
Randy Mackay
e8ab4eb8b7 AP_Mount: SToRM32_serial provides calc_angle_to_xxx relative_pan argument 2022-06-29 10:56:48 +09:00
Randy Mackay
5958bced0c AP_Mount: SToRM32 provides calc_angle_to_xxx relative_pan argument 2022-06-29 10:56:48 +09:00
Randy Mackay
57a508b037 AP_Mount: Solo provides calc_angle_to_xxx relative_pan argument 2022-06-29 10:56:48 +09:00
Randy Mackay
3c501bb408 AP_Mount: alexmos provides calc_angle_to_xxx relative_pan argument 2022-06-29 10:56:48 +09:00
Randy Mackay
b0a473ee53 AP_Mount: alexmos minor spell fix 2022-06-29 10:56:48 +09:00
Randy Mackay
f426711177 AP_Mount: backend calc_angle_to_xxx requires relative_pan argument 2022-06-29 10:56:48 +09:00
Randy Mackay
3711c362ce AP_Mount: update_rate_and_angle_from_rc fix arg name to match units 2022-06-29 10:56:48 +09:00
Randy Mackay
23209ddafd AP_Mount: gremsy neutral mode leaves ef targets untouched 2022-06-29 10:56:48 +09:00
Peter Barker
5f095304cf GCS_MAVLink: add AP_LTM_TELEM_ENABLED 2022-06-28 20:19:41 +10:00
Peter Barker
75862b3e27 AP_LTM_Telem: add AP_LTM_TELEM_ENABLED 2022-06-28 20:19:41 +10:00
李孟晓
8a83e02e59 HAL_ChibiOS: hwdef: add support for ICP101XX to CUAV_GPS 2022-06-28 11:59:04 +10:00
李孟晓
522f1fa6de AP_Baro: add support for ICP101XX 2022-06-28 11:59:04 +10:00
Peter Barker
336a6b0359 AP_BoardConfig: remove reference to CONFIG_ARCH_BOARD_*
These are vestiges from when we ran both on ChibiOS and NuttX
2022-06-28 11:21:30 +10:00
François Carouge
e52e64b11c AP_Math: class template parameters not compliant in constructor declaration 2022-06-28 11:05:53 +10:00
François Carouge
772c80a038 AP_Common: class template parameters not compliant in constructor declaration 2022-06-28 11:05:53 +10:00
Peter Barker
2228f1407d hwdef: remove unused NO_DATAFLASH hwdef directive 2022-06-28 11:03:53 +10:00
Andy Piper
feaad96963 AP_HAL_ChibiOS: hwdef for Foxeer Reaper F745v2.
README for Reaper F745v2
2022-06-28 11:03:26 +10:00
Peter Barker
c2091fdef5 AP_GPS: fix clang++ warnings on static inits
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Peter Barker
16ea4f03b6 AP_Compass: fix clang++ warnings on static inits
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Peter Barker
b11cd3b69d AP_Baro: fix clang++ warnings on static inits
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Peter Barker
1185da02a6 AP_Airspeed: fix clang++ warnings on static inits
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Bill Geyer
2377d7a2c3 AC_AttitudeControl: move input_shaping_rate into input_shaping_ang_vel 2022-06-28 07:56:12 +09:00
Bill Geyer
be65358cc1 AC_AttitudeControl: incorporate suggested changes 2022-06-28 07:56:12 +09:00
Bill Geyer
355524206b AC_AttitudeControl: modify constructor to allow defaults 2022-06-28 07:56:12 +09:00
Bill Geyer
fd24b3912f AC_AttitudeControl: add comments 2022-06-28 07:56:12 +09:00
Bill Geyer
1cd537895e AC_AttitudeControl: add command model class for parameters 2022-06-28 07:56:12 +09:00
Bill Geyer
a547916ebf AC_AttitudeControl: only use rate shaping tc if tc is nonzero 2022-06-28 07:56:12 +09:00
bnsgeyer
7594f7a558 AC_AttitudeControl: incorporate sqrt controller in rate shaping 2022-06-28 07:56:12 +09:00
Andrew Tridgell
864353aa4d AP_Scripting: example script for lidar control
enable lidar for only landing in quadplanes by changing RNGFND_LANDING
2022-06-26 08:46:44 +10:00
Andrew Tridgell
a941e4cd41 AP_NavEKF: re-implemented EKF ring buffer
this fixes a bug where elemnts being pushed into the buffer more
slowly than we recall can be lost

for example, if you push a single element in then try a recall it will
fail
2022-06-24 20:25:39 +10:00
Andrew Tridgell
19da623077 AP_NavEKF: added test suite for EKF ring buffer 2022-06-24 20:25:39 +10:00
Andrew Tridgell
ba10c0ae42 AP_BattMonitor: make healthy() check all configured monitors
GCS reporting for SYS_STATUS should check all healthy, not just first
backend
2022-06-24 11:13:16 +10:00
Andrew Tridgell
93ee9a4ac1 AP_BattMonitor: allow INA2xx battery monitors to be powered after boot
the device doesn't show up till main battery is connected, so we need
this change to allow for separate avionics battery and main battery
with avionics battery powered on first
2022-06-24 11:13:16 +10:00
Andrew Tridgell
9a6fb19208 AP_BattMonitor: report arming unhealthy if backend unhealthy
important for i2c based battery backends
2022-06-24 11:13:16 +10:00
Peter Barker
1f4ebb49b5 AP_Mount: document point-at-home default mode option 2022-06-23 16:37:54 +10:00
Andrew Tridgell
5f8ea596a5 hwdef: changed Pixhawk6C board type to 56
production bootloader uses 56
2022-06-23 13:43:38 +10:00
Peter Barker
2d3092407f AP_HAL_Empty: move implementations of functions to header
Makes it much clearer what's implemented and what's dangling
2022-06-23 12:38:41 +10:00
Andrew Tridgell
881d9764d4 hwdef: added Pixhawk6C support 2022-06-23 12:37:24 +10:00
Andrew Tridgell
4d031a0c9e AP_Compass: HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE for Pixhawk6C 2022-06-23 12:37:24 +10:00
Andrew Tridgell
e48f405c08 AP_Compass: removed "AK09916 Wrong id" message
we don't need this on every board that doesn't have an I2C AK09916
2022-06-23 12:37:24 +10:00
Andrew Tridgell
b1e3b9414b hwdef: fixed Pixhawk6X ALT_RAM_MAP check 2022-06-23 12:37:24 +10:00
Peter Barker
f4df4298a0 AP_RangeFinder: make LeddarOne calculations more efficient 2022-06-22 21:15:18 +10:00
Peter Barker
90362a4849 AP_RangeFinder: tighten scope of stack variable definition 2022-06-22 21:15:18 +10:00
Peter Barker
6923f20ce6 AP_RangeFinder: stop persisting detections in LeddarOne driver
We don't use these readings except immediately after where we store them - so don't store them persistently.
2022-06-22 21:15:18 +10:00
Andy Piper
1287fc4fff AC_AttitudeControl: reset throttle mix to used mix when scaling mix down 2022-06-22 16:17:26 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
f7d21b63a7 AP_FETTecOneWire: Fix the recent change of NUM_SERVO_CHANNELS > 24 2022-06-22 11:51:23 +10:00
Randy Mackay
45cd158b1c AP_Mount: gremsy searches for gimbal while disarmed 2022-06-21 13:37:11 +09:00
Randy Mackay
a47ac7430b AP_Arming: add mount pre-arm check 2022-06-21 13:37:11 +09:00
Randy Mackay
8ba8c67452 AP_Mount: gremsy implements healthy 2022-06-21 13:37:11 +09:00
Randy Mackay
822ee75e20 AP_Mount: add healthy and pre_arm_checks
Co-authored-by: olliw42 <waldmanns@gmx.de>
2022-06-21 13:37:11 +09:00
Randy Mackay
10da8a42bd AP_Mount: replace JSTICK_SPD with RC_RATE 2022-06-21 13:37:11 +09:00
Isaac A
94064175af AP_HAL_ChibiOS: Allow KakuteF7 initialization without baro 2022-06-21 10:03:08 +10:00
Iampete1
dc0491a8ff AP_AHRS_view: add rotate method to move from AHRS to AHRS view referance frames 2022-06-21 10:01:30 +10:00
TunaLobster
0027660f3f AP_RCMapper: Increase parameter metadata range to match NUM_RC_CHANNELS 2022-06-21 09:57:44 +10:00
Peter Barker
deba0b712b AP_RangeFinder: correct creation/use of TFMINI_ADDR_DEFAULT
Named incorrectly and defined in wrong file...
2022-06-21 09:15:20 +10:00
Peter Barker
05131853d8 AP_UAVCAN: allow rangefinder backends to be individually compiled in 2022-06-21 09:15:20 +10:00
Peter Barker
3a347d32ca AP_RangeFinder: allow rangefinder backends to be individually compiled in 2022-06-21 09:15:20 +10:00
Peter Barker
ce1bb906b7 AP_HAL_ChibiOS: allow rangefinder backends to be individually compiled in 2022-06-21 09:15:20 +10:00
Peter Barker
4e438464d7 AP_Baro: tidy probing of external i2c baros 2022-06-21 09:09:55 +10:00
Bill Geyer
4bb3b08a4a AC_AutoTune: fix tradheli bug with load gain set 2022-06-20 13:00:53 +09:00
TunaLobster
afaca4b5f6 AP_RCMapper: Remove APM 2.x reference in parameter description 2022-06-18 08:26:40 +09:00
Andrew Tridgell
2e1af59057 AP_Rangefinder: fixed scaling on PWM driver and enable SCALING parameter
this fixes a bug introduced here:

  https://github.com/ArduPilot/ardupilot/pull/18829

and allows the scaling of PWM rangefinders to be adjusted
2022-06-17 08:21:44 +10:00
Andrew Tridgell
7e4fb803a2 AC_AttitudeControl: reduced default quadplane VTOL pos XY gains 2022-06-16 21:26:49 +10:00
Shiv Tyagi
c339b1d374 SIM_Precland: add option to set orientation of precland device in sitl 2022-06-16 12:43:55 +10:00
Randy Mackay
1400eba400 AP_Mount: minor include and definition re-order and fixup 2022-06-15 18:08:58 +10:00
Randy Mackay
d24d3c0af8 AP_Mount: add HAL_MOUNT_STORMSERIAL_ENABLED build option 2022-06-15 18:08:58 +10:00
Randy Mackay
59916d0327 AP_Mount: add HAL_MOUNT_STORM32MAVLINK_ENABLED build option 2022-06-15 18:08:58 +10:00
Randy Mackay
4f0ee1276b AP_Mount: add HAL_MOUNT_SERVO_ENABLED build option 2022-06-15 18:08:58 +10:00
Randy Mackay
e2106e63bf AP_Mount: add HAL_MOUNT_ALEXMOS_ENABLED build option 2022-06-15 18:08:58 +10:00