Commit Graph

24046 Commits

Author SHA1 Message Date
Tom Pittenger
150b8653a4 Revert "AP_Param: add set_and_save_and_notify()"
This reverts commit 96a2aa485a.
2020-10-07 19:11:38 +11:00
Tom Pittenger
787d7f5254 Revert "AP_Math: add function to convert any base to any base"
This reverts commit 935cb39dff.
2020-10-07 19:11:38 +11:00
Tom Pittenger
a0f25640a2 Revert "AP_Math: add bitwise fetch/load 16, 24, 32bit operations"
This reverts commit 6efaa29577.
2020-10-07 19:11:38 +11:00
Tom Pittenger
899cc9ef5d Revert "AP_SerialManager: add support for Sagetech protocol"
This reverts commit b74c22864d.
2020-10-07 19:11:38 +11:00
Tom Pittenger
8e1f5ec6cd Revert "AP_ADSB: create backend and add Sagetech driver" 2020-10-07 19:11:38 +11:00
Tom Pittenger
f2e65ea3cd Revert "AP_ADSB: Sagetech for 2MB only"
This reverts commit 1fce38c62a.
2020-10-07 19:11:38 +11:00
Tom Pittenger
b2eb3eb881 Revert "AP_ADSB: conditionally compile based on HAL_ADSB_ENABLED"
This reverts commit 465357e715.
2020-10-07 19:11:38 +11:00
Tom Pittenger
90b4056aa4 Revert "AP_ADSB: remove annoying debug"
This reverts commit 5a535b25e3.
2020-10-07 19:11:38 +11:00
Tom Pittenger
ee8f50e6a5 Revert "AP_Math: fix LoadUint() to allow 32bit values"
This reverts commit 5e2450c4ea.
2020-10-07 19:11:38 +11:00
Andy Piper
af8d6c5fc9 AP_Scheduler: add the fast loop to task statistics 2020-10-07 18:08:19 +11:00
Randy Mackay
530eb6d236 AC_WPNav: remove unused reached_spline_destination 2020-10-07 15:41:18 +09:00
Andrew Tridgell
1b5551206a AP_IOMCU: fixed bug in SBUS output when scanning for FPort input
when we are looking for FPort input, we normally switch UART3 on the
IOMCU to 115200 to look for inverted inputs at 115200 baudrate. We
need to disable this switching when we have SBUS output enabled to
prevent a change in the SBUS output baudrate

Many thanks to afishman for finding this bug

Fixes #15522
2020-10-07 16:44:13 +11:00
Randy Mackay
d31a00a6a1 AP_Scripting: replace prearm_healthy binding with healthy 2020-10-07 11:53:07 +11:00
Randy Mackay
eeb1a1846c AP_NavEKF3: replace prearm_healthy with pre_arm_check 2020-10-07 11:53:07 +11:00
Randy Mackay
b2d4622320 AP_NavEKF2: replace prearm_healthy with pre_arm_check 2020-10-07 11:53:07 +11:00
Randy Mackay
1d97416a51 AP_AHRS: replace prearm_healthy with pre_arm_check
Also removes prearm_failure_reason
2020-10-07 11:53:07 +11:00
mhefny
02daa4c3ec AP_InertialSensor: update L3G4200D driver 2020-10-06 09:27:26 -07:00
mhefny
1200d0e2f8 AP_HAL: add PROBE_IMU_I2C2 to linux.h 2020-10-06 09:27:26 -07:00
Randy Mackay
d9de6e8de9 AP_Common: UINT16_VALUE, UINT32_VALUE get parentheses around arguments 2020-10-06 20:52:29 +11:00
Randy Mackay
4381eff482 AP_Proximity: simplify get_horizontal_distances
no need to fill in missing orientations.  This is only used for reporting to the ground stations
2020-10-06 20:52:29 +11:00
Randy Mackay
e081d83185 AP_Proximity: Lightware SF45B driver 2020-10-06 20:52:29 +11:00
Randy Mackay
f3b193d6f8 AP_Common: add UINT32_VALUE 2020-10-06 20:52:29 +11:00
Randy Mackay
63a21c6c12 AP_Proximity: add correct_angle_for_orientation to backend 2020-10-06 20:52:29 +11:00
Randy Mackay
cf020e1d84 AP_Proximity: minor spelling fix for SF40c assert 2020-10-06 20:52:29 +11:00
Andrew Tridgell
e995a198bd AP_GPS: always send GPS2_RAW if 2nd GPS configured
this improves the display on the GCS when the GPS has not yet been
found. This is particularly important after a reboot, as otherwise the
GCS may display stale information from the previous boot
2020-10-06 16:48:19 +11:00
Randy Mackay
4b7709f11d AP_Parachute: move sink rate check to new method
also remove unused critical_sink accessor
2020-10-06 16:14:59 +11:00
Randy Mackay
17d4e797fb AP_Parachute: formatting fixes 2020-10-06 16:14:59 +11:00
Michael du Breuil
b04844ca13 AP_Logger: Log all vibration instances 2020-10-06 14:20:49 +11:00
Randy Mackay
835e6fc764 AP_VisualOdom: T265 ignores position and speed for 1sec after reset 2020-10-06 09:18:04 +09:00
Randy Mackay
d9b90bf19f AP_Logger: VISP and VISV get ignored field 2020-10-06 09:18:04 +09:00
Andrew Tridgell
8e08d93026 AP_GPS: fixed pre-arm check on ublox M9 GPS
this prevents a failure from config of SOL and TMODE messages
2020-10-06 10:22:52 +11:00
vierfuffzig
60b37f395e AP_OSD_Screen.cpp: add decimal precision to vspd 2020-10-06 10:17:43 +11:00
Tom Pittenger
5e2450c4ea AP_Math: fix LoadUint() to allow 32bit values 2020-10-05 15:32:53 -07:00
Patrick José Pereira
e4f8d47423 AP_LeakDetector: AP_LeakDetector_Digital: Improve status logic
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-10-05 16:39:03 +01:00
Tatsuya Yamaguchi
ea0d869a9c RC_Channels: redefine surface tracking auxiliary function 2020-10-05 13:23:51 +09:00
QioTek
f04de7d610 HAL_ChibiOS: Add QioTekZealotF427 build target
I've added the hwdef to support the QioTekZealotF427

It has 3 IMU sensors(ICM20698,ICM20602,BMI055), a Compass(Ist8310),
2Baro sensors(DSP310,MS5611), an integrated analog OSD, 14motor
outputs, 4Relay output, 5uarts, 2Power Module input, an i2c, a Can.
2020-10-05 07:41:06 +11:00
Andrew Tridgell
11b3c622dd AP_BoardConfig: allow more serial ports to have flow control 2020-10-03 20:22:56 +10:00
Andrew Tridgell
702a3926f8 HAL_ChibiOS: setup defines for more flow control pins
allow all uarts to have flow control
2020-10-03 20:22:56 +10:00
Andrew Tridgell
5e80b10396 HAL_ChibiOS: enable telem3 on Durandal
the RCIN issue is not there in the final production boards
2020-10-03 20:22:56 +10:00
Peter Barker
6711c479de SITL: fix RPLidarA2 instructions and diagnostic output 2020-10-02 16:05:15 +10:00
Andrew Tridgell
e471b23f58 HAL_ChibiOS: add a max quota of GPIO interrupts
This implements a max quota of GPIO interrupts per 100ms period to
prevent high interrupt counts from consuming all CPU and causing a
lockup. The limit is set as 10k interrupts per 0.1s period. That limit
should be high enough for all reasonable uses of GPIO interrupt
handlers while being below the level that causes significant CPU loads
and flight issues

This addresses issue #15384
2020-10-02 09:38:24 +10:00
Andrew Tridgell
965af98f4a AP_InternalError: added an internal error for GPIO ISR overload 2020-10-02 09:38:24 +10:00
Andrew Tridgell
c62b86e3c1 AP_HAL: added timer_tick() on GPIO 2020-10-02 09:38:24 +10:00
Peter Barker
4bbf623cac AP_Soaring: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker
914316a529 AP_RangeFinder: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker
460bb7291e AP_Proximity: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker
b024ff8ea4 AP_Notify: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker
3a8751d8a7 AP_NavEKF: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker
10e0646251 AP_Generator: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker
0eb34912cf AP_ADSB: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker
12af51e356 AC_Autorotation: remove unused variables 2020-10-01 21:13:20 +10:00
Patrick José Pereira
57373180d1 AP_LeakDetector: Remove not used LeakDetector_Type enum
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-10-01 16:31:13 +10:00
Andrew Tridgell
2b13ad35ec AP_OLC: remove use of algorithm header
not needed
2020-10-01 09:40:45 +10:00
Michel Pastor
8465588467 AP_OLC: clean namespace and use constexpr instead of init method 2020-10-01 09:40:45 +10:00
giacomo892
4eeccb61cd WAF: Add AP_OLC to build 2020-10-01 09:40:45 +10:00
giacomo892
b00d3e00bc AP_OSD: Add OLC (pluscode) element 2020-10-01 09:40:45 +10:00
giacomo892
481d72255f AP_OLC: Open Location Code support 2020-10-01 09:40:45 +10:00
bugobliterator
0a4ea250ad AP_HAL_ChibiOS: disable CANFilter on H7 boards temporarily 2020-10-01 07:19:19 +10:00
Peter Barker
a5a13f37c9 SITL: adjust for START_STOP_D now not polluting global namespace 2020-09-30 23:14:40 +10:00
Peter Barker
6cbb553adc AP_Frsky_Telem: reformat new filed using astyle.sh; no history to lose 2020-09-30 23:14:40 +10:00
Peter Barker
9c211d9847 AP_Frsky_Telem: move #defines to be static const members of AP_Frsky_Backend 2020-09-30 23:14:40 +10:00
Peter Barker
0bb7a31850 AP_Frsky_Telem: move all method implementations into correct files 2020-09-30 23:14:40 +10:00
Peter Barker
05d7950261 AP_Frsky_Telem: frontend/backend split 2020-09-30 23:14:40 +10:00
Iampete1
4e064ef812 AC_Circle: add Circle options 2020-09-30 17:58:12 +10:00
Andy Piper
ac8dc26d41 AP_Filesystem: increase tasks buffer size 2020-09-30 17:37:20 +10:00
Andy Piper
958c19543f AP_Scheduler: print task total time as a percentage of all tasks time 2020-09-30 17:37:20 +10:00
Iampete1
608e1dcdc4 AP_WindVane: report apparent wind with named float 2020-09-30 17:03:58 +10:00
bugobliterator
84f3e70b10 AP_Compass: add set_dev_id when initialising HIL 2020-09-30 17:01:37 +10:00
Peter Barker
7cb8cde417 GCS_MAVLink: 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
3aabb45059 AP_Vehicle: 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
yaapu
e7a49dd624 GCS_Mavlink: refactor zero_rc_outputs() out of GCS_Mavlink 2020-09-29 18:07:59 +10:00
yaapu
bc7c5a0c8e SRV_Channels: refactor zero_rc_outputs() out of GCS_Mavlink 2020-09-29 18:07:59 +10:00
Randy Mackay
f5a04fd1a3 AP_NavEKF3: shorten buffer size send_text message length 2020-09-29 08:57:52 +09:00
Donione
ff80be19c1 AP_GPS: fix type and update reserved bytes in ublox PVT 2020-09-28 16:31:14 -07:00
yaapu
f33d197b16 AP_RCProtocol: fix fport rssi 2020-09-29 09:04:38 +10:00
Randy Mackay
7398529f6b AP_NavEKF3: minor format fix 2020-09-28 20:57:39 +09:00
Peter Barker
abab203b32 SITL: remove zero initialisations, move more into class definitions 2020-09-28 12:15:04 +10:00
Andrew Tridgell
174dc3b032 AP_BoardConfig: disable watchdog in examples
not a lot of use in example code
2020-09-26 11:47:46 +10:00
Andrew Tridgell
5a535b25e3 AP_ADSB: remove annoying debug 2020-09-26 06:02:31 +10:00
Peter Barker
0c88af99da GCS_MAVLink: revert removal of private channel check when forwarding
This reverts 6dc77c97ce

The commit caused a regression on Solo as the gimbal is "nodding",
indicating traffic from the autopilot is getting through to the gimbal.
2020-09-25 09:42:27 +10:00
Peter Barker
8e6cde25dc AP_Logger: keep pointer to link rather than using its ->chan 2020-09-25 09:01:00 +10:00
Patrick José Pereira
1ee03a0d2e AP_Common: Add missing const in AP_FWVersion variables
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-09-25 08:55:18 +10:00
giacomo892
9c42c0f176 AP_Baro: remove unnecessary debug on DPS280 2020-09-25 08:19:29 +10:00
Vikas Singh
38c52acf9b AP_Filesystem: add simple File I/O example 2020-09-24 13:00:08 +10:00
Andrew Tridgell
4b747430e1 HAL_ChibiOS: save 2k in f103 bootloader
don't include serial bl support if dev list is empty
2020-09-24 12:32:19 +10:00
Siddharth Purohit
6fb973081b AP_HAL_ChibiOS: enable all I2C compasses by default for f103 boards 2020-09-24 12:32:19 +10:00
Andrew Tridgell
0e8c8c29a8 HAL_ChibiOS: fixed f303-MatekGPS build 2020-09-24 12:32:19 +10:00
Andrew Tridgell
246e790484 AP_Bootloader: use new hal CAN interface for CAN support 2020-09-24 12:32:19 +10:00
Siddharth Purohit
a79efaeb1d AP_HAL_ChibiOS: hwdef: add support for HAL CANIface based bootloader 2020-09-24 12:32:19 +10:00
Siddharth Purohit
882c86c394 AP_HAL_ChibiOS: add app start offset to leave space for params 2020-09-24 12:32:19 +10:00
Siddharth Purohit
22ab426cf2 AP_HAL: make bools to use single bit in CANTxItem 2020-09-24 12:32:19 +10:00
Siddharth Purohit
72cf040f81 AP_Compass: add option to selectively disable Compass I2C backend 2020-09-24 12:32:19 +10:00
Siddharth Purohit
0ca2f56b71 AP_HAL: add support for external buffer to be used in ByteBuffer 2020-09-24 12:32:19 +10:00
Siddharth Purohit
9aa0970eed AP_HAL: disable protocol drivers for bootloader builds 2020-09-24 12:32:19 +10:00
Siddharth Purohit
1f16aa8360 HAL_ChibiOS: add hwdef for CubeOrange-periph 2020-09-24 12:32:19 +10:00
Siddharth Purohit
d8852615ed AP_UAVCAN: disable UAVCAN library when libuavcan drivers are disabled 2020-09-24 12:32:19 +10:00
Siddharth Purohit
62df67a4b8 HAL_ChibiOS: hwdef: modify to use HAL CAN driver instead of ChibiOS's 2020-09-24 12:32:19 +10:00
Siddharth Purohit
36ffcdae30 HAL_ChibiOS: modify hal can drivers for use by AP_Periph 2020-09-24 12:32:19 +10:00
Siddharth Purohit
c7d69e4d13 AP_HAL: disable CAN Protocol Drivers for AP_Periph 2020-09-24 12:32:19 +10:00
Samuel Tabor
b6f92989a7 AP_Soaring: Only compile if HAL_SOARING_ENABLED. 2020-09-24 07:30:48 +10:00