Commit Graph

31469 Commits

Author SHA1 Message Date
Andrew Tridgell
863b4bf928 AP_Compass: fixed zero compass diagonals
this fixes a regression from 4.2 to 4.3.

previously we automatically set the diagnoals to 1,1,1 if they were
0,0,0. We don't do that any more. I was helping a user who had copied
an old config with 0,0,0 for diagonals and did not understand two
things:

- the compass did not work in 4.3
- large vehicle mag cal didn't work
2023-01-17 12:05:19 +11:00
Peter Barker
5078e6ea00 SITL: exclude SIM_SAIL_TYPE from non-Rover builds 2023-01-17 11:23:40 +11:00
Peter Barker
0c7ce291ec SITL: document the SIM_WOW_PIN parameter 2023-01-17 11:23:40 +11:00
Peter Barker
6c03134169 AP_HAL_SITL: use AP_CSVReader to read from Log serial-async dump 2023-01-17 11:21:48 +11:00
Peter Barker
20fc2d091c AP_CSVReader: add simple CSV reader 2023-01-17 11:21:48 +11:00
Iampete1
c99c17f1ce AMP_Control: Roll and Pitch Controller: don't reset pid_info.I in reset_I calls 2023-01-17 11:19:39 +11:00
Iampete1
2371d83620 AC_PID: dont change pid_info.I in set/reset methods 2023-01-17 11:19:39 +11:00
Peter Barker
84d49d5a88 hwdef: skyviper-v2450: remove EK3 external nav and body-frame-odometry
Neither of these are applicable to SkyViper
2023-01-17 10:50:37 +11:00
Peter Barker
d78ea08d24 AP_AHRS: move AP_AHRS_SIM::get_results into backend file 2023-01-17 10:49:56 +11:00
Iampete1
722ec745e9 AP_BattMoniter: don't allow equal low and critical FS thresholds 2023-01-17 10:36:09 +11:00
Andrew Tridgell
ffb6a9fb7f AP_OpenDroneID: set EMERGENCY status on crash or chute deploy
RemoteID modules are required to set EMERGENCY status on uncontrolled
descent or crash. This fixes our implementation to do that, either via
existing vehicle crash checking code or via a parachute release
2023-01-17 10:31:26 +11:00
chobits
f467acbe92 AP_HAL_ChibiOS: no dma for unused kakuteh7 uart2 2023-01-17 10:24:42 +11:00
Henry Wurzburg
71099c881d AP_Scripting: add error check to mission_load.lua 2023-01-17 10:24:08 +11:00
Henry Wurzburg
8865d79015 AP_Mission: add error check to mission_load.lua 2023-01-17 10:24:08 +11:00
Henry Wurzburg
c8617ccf01 AP_Scripting:Add mission to Script_Controller and improve 2023-01-17 10:24:08 +11:00
Henry Wurzburg
509d4b7fbf SITL:make MAG1 param consistent names 2023-01-17 08:45:30 +11:00
Andrew Tridgell
12c24df476 AP_HAL_SITL: added old_size to heap_realloc 2023-01-16 09:19:16 +11:00
Andrew Tridgell
deb86be1da AP_HAL_Linux: added old_size to heap_realloc 2023-01-16 09:19:16 +11:00
Andrew Tridgell
13cbccc016 AP_HAL: added old_size to heap_realloc 2023-01-16 09:19:16 +11:00
Andrew Tridgell
e255bbbd40 AP_HAL_ESP32: added old_size to heap_realloc 2023-01-16 09:19:16 +11:00
Andrew Tridgell
365de4b505 AP_HAL_ChibiOS: added old_size to heap_realloc 2023-01-16 09:19:16 +11:00
Andrew Tridgell
b45be75a98 AP_Scripting: use MultiHeap class 2023-01-16 09:19:16 +11:00
Andrew Tridgell
22a16f9672 AP_Common: added MultiHeap class
for scripting allocation with multiple heaps
2023-01-16 09:19:16 +11:00
Henry Wurzburg
e96a55c1b6 SITL:add SIM param metadata 2023-01-15 21:58:12 +11:00
Andrew Tridgell
a2b0bbffdb HAL_SITL: implement SIM_UART_LOSS 2023-01-15 21:57:15 +11:00
Andrew Tridgell
d3ea7b0ca6 SITL: added SIM_UART_LOSS parameter 2023-01-15 21:57:15 +11:00
Andrew Tridgell
dfdecc52c4 GCS_MAVLink: fixed FTP terminate session error
this caused ftp downloads to intermittently fail. The cause is the FTP
client may ask for a session terminate and then immediately afterwards
a ftp open. The open would fail as the ftp session was considered
active
2023-01-15 21:57:15 +11:00
Andrew Tridgell
abb3cdd6b8 AP_TECS: added max throttle time for takeoff with no airspeed sensor 2023-01-15 12:17:27 +11:00
Andrew Tridgell
d15c5ce233 AP_Vehicle: added takeoff_throttle_max_t for fixed wing 2023-01-15 12:17:27 +11:00
Peter Barker
08f652fe2c AP_HAL_ChibiOS: ignore array bounds check while checking 0x0 for writes
Fixes compiler error on g++ 12

../../libraries/AP_HAL_ChibiOS/Scheduler.cpp:568:20: error: array subscript 0 is outside array bounds of 'const uint8_t [0]' [-Werror=array-bounds]
  568 |         if (addr0[i] != 0) {
2023-01-12 23:30:15 +11:00
Peter Barker
c42754b691 AP_AHRS: create an AP_AHRS_SIM backend 2023-01-12 13:11:40 +11:00
Henry Wurzburg
c79672b96c SITL: add SITL param metadata and fix a few 2023-01-12 09:19:27 +11:00
Peter Barker
9cb3bfbe05 AP_HAL_ChibiOS: disable batch sampler on SkyViper-v2450
saves ~1.8kB
2023-01-11 19:08:41 +11:00
Peter Barker
e5c3dd871c AP_InertialSensor: create explicit define for AP_INERTIALSENSOR_BATCHSAMPLER_ENABLED
this allows the batch sampler to be removed for size reasons, or because you don't have logging enabled
2023-01-11 19:08:41 +11:00
Andy Piper
c620ba58df AP_Motors: use _dt instead of loop rate for throttle slew calculation 2023-01-11 18:59:52 +11:00
Andy Piper
80fb33fb8b AP_AHRS: add throttle slew to RATE
log PD scaling values
2023-01-11 18:59:52 +11:00
Andy Piper
53b7f96a5d AC_AttitudeControl: boost PD on roll and pitch when slew limit is hit
boost angle P when slew limit is hit
move to a single parameter for thrust-gain boosting
add PD scaling support
2023-01-11 18:59:52 +11:00
Andy Piper
f3ecb4ee6c AC_PID: support PD boosting 2023-01-11 18:59:52 +11:00
Andy Piper
ad94c5cab1 AP_Motors: calculate throttle slew rate
use derivative filter and apply filtering to slew detector
2023-01-11 18:59:52 +11:00
Andy Piper
9caf94b5e4 AP_HAL_ChibiOS: simple conversion tool for betaflight pin definitions 2023-01-11 18:57:33 +11:00
Andy Piper
094a52e433 AP_HAL_ChibiOS: FoxeerH743 hwdef 2023-01-11 18:57:33 +11:00
Iampete1
15daff879e AP_Param: add shared Info defines 2023-01-11 18:41:34 +11:00
Iampete1
dd31742463 AP_Param: align param info structures to save flash 2023-01-11 18:41:34 +11:00
Iampete1
5c013552ed AP_OSD: align param info structures to save flash 2023-01-11 18:41:34 +11:00
Iampete1
57e35f39b1 AP_NMEA_Output: align param info structures to save flash 2023-01-11 18:41:34 +11:00
Peter Barker
37b54a7c9c AP_Param: correct compilation when debugging enabled
Correct passing through ov varargs from macro
2023-01-11 13:55:36 +11:00
MAD-CRAZY-MAN
63efa7e480 hwdef: update thepeach hwdef-bl.dat 2023-01-11 10:00:57 +11:00
Peter Barker
c71c93e2b0 AP_Vehicle: make check_var_info void
Given all the callers die anyway, make it void
2023-01-10 10:48:15 +11:00
Peter Barker
7f9714d722 AP_Param: make check_var_info void
Given all the callers die anyway, make it void
2023-01-10 10:48:15 +11:00
Iampete1
e2535d1197 AP_OSD: rework param defualting 2023-01-10 10:42:52 +11:00