Commit Graph

30774 Commits

Author SHA1 Message Date
Andrew Tridgell bb1b2dafae AP_InternalError: only panic in SITL if debug enabled
a user recently had a flow of control panic in quadplane in
cygwin/missionplanner SITL. The panic this caused means we don't get
logging information on what line of code was triggered

the panic in SITL for internal errors is only useful if you have debug
information and can then attach a debugger. Without debug information
it is much better to behave the same as a real vehicle and report an
internal error (with line number)
2022-10-21 22:14:39 +11:00
Peter Barker 725b7b30ae GCS_MAVLink: remove more methods based on HAL_VISUSALODOM_ENABLED
Many of these mthods are calling another method which has no body when HAL_VISUALODOM is false
2022-10-21 15:03:35 +11:00
Randy Mackay f2ed41f5cf AP_AHRS: pre-arm msg loses extra AHRS prefix 2022-10-21 08:07:39 +11:00
Peter Barker 1b7ced4e2e AP_RangeFinder: remove conversion code from 2019 2022-10-20 08:00:32 +11:00
Henry Wurzburg 3ef45c684f AP_Airspeed: generalize ARSPD_BUS metadata 2022-10-19 23:27:25 +11:00
Andrew Tridgell 256addc0f0 SITL: added plane-3d for aerobatic plane 2022-10-19 23:25:22 +11:00
Andrew Tridgell 01a52a5427 hwdef: use minimal GPS driver (ublox only) on low flash boards
this buys us about 22k of flash
2022-10-19 21:07:22 +11:00
Peter Barker 342a5a71a9 GCS_MAVLink: move setting of MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW sensors flags up 2022-10-19 21:00:48 +11:00
Andrew Tridgell 3ef1b1031a GCS_MAVLink: prevent segv in ftp
if the user disables ftp by changing BRD_OPTIONS after ftp has started
then we could dereference a nullptr
2022-10-19 19:09:24 +11:00
yaapu 89c30ae345 AP_Frsky_Telem: fixed roll and pitch for VTOL view 2022-10-19 18:36:58 +11:00
Iampete1 48ce8c4e16 AP_Scripting: binding gen: add number of argument to manual functions and generate docs for manual 2022-10-19 18:35:32 +11:00
Iampete1 a1607b954c AP_Scripting: docs: fix missing 2022-10-19 18:35:32 +11:00
Iampete1 ac633dfe5e AP_Scripting: tests: add docs compare python script 2022-10-19 18:35:32 +11:00
Andrew Tridgell 0858eb0dba GCS_MAVLink: send HYGROMETER_SENSOR message if data available 2022-10-19 13:17:30 +11:00
Andrew Tridgell dc5492f9ca AP_Airspeed: support DroneCAN airspeed with hygrometer data
some DroneCAN airspeed sensors can send hygrometer data, for when they
have de-icing support
2022-10-19 13:17:30 +11:00
Henry Wurzburg 80fdd48500 AP_Soaring: Correct metadata formatting 2022-10-18 09:38:47 -07:00
Iampete1 c623ae8b82 AP_Logger: MessageWriter: SysInfo: write RCOut string 2022-10-18 11:53:59 +11:00
Henry Wurzburg ab29dd8241 AP_SOARING: correct metadata for speed params 2022-10-18 11:44:09 +11:00
Andy Piper 6b602cefec AP_SerialManager: only use the first defined serial port for RCIN 2022-10-18 11:20:25 +11:00
Andy Piper c815f04e97 AP_RCProtocol: add has_uart() 2022-10-18 11:20:25 +11:00
Peter Barker f75f68c2f1 GCS_MAVLink: add AP_MAVLINK_BATTERY2_ENABLED define
on by default but can be turned off in next stable
2022-10-18 11:12:49 +11:00
Leonardo Garcia 72c6977ea5 AP_InertialSensor: Fix BMI085 accel scaling
Original BMI088 has 24G range so it was hardcoded for *scale* within
read_fifo_accel. Added a class variable accel_range which is assigned
the correct value when the sensor type is received (16.0 or 24.0).
2022-10-18 11:03:34 +11:00
Peter Barker 6c3f9f9778 GCS_MAVLink: fix set-default-rate of a message we don't send by default
this fixes a problem where a GCS must know that a message isn't sent by default if they want to set it back to its default rate
2022-10-18 10:11:00 +11:00
Michael du Breuil 6b0dd7e689 AP_GPS: Fix novatel driver to handle DOP correctly, and fix overly optimistic horizontal accuracy estimate 2022-10-18 10:06:46 +11:00
Tom Pittenger 812128125b AP_BattMonitor: add set_temperature() by external temperature sources/libraries 2022-10-18 10:05:31 +11:00
Tom Pittenger 89bcd65603 AP_ESC_Telem: allow external libraries, like AP_TemperatureSensor, to override the temperature 2022-10-18 10:05:31 +11:00
Tom Pittenger 475fb67c2b AP_TemperatureSensor: use AP_Enum<>, add sitl, add _config.h 2022-10-18 10:05:31 +11:00
Tom Pittenger 1205e26ace AP_TemperatureSensor: add Dummy methods so that Sub can use this feature by default but everything else not 2022-10-18 10:05:31 +11:00
Tom Pittenger b3a4219b06 hwdef: added new f303-TempSensor based on mRo f303 kitcan 2022-10-18 10:05:31 +11:00
Tom Pittenger e398579277 AP_TemperatureSensor: refactor for upcoming upgrades 2022-10-18 10:05:31 +11:00
Tom Pittenger 9ed192a371 AP_TemperatureSensor: add driver MCP9600 2022-10-18 10:05:31 +11:00
Tom Pittenger c4f7470cbc AP_TemperatureSensor: refactor for upcoming upgrades 2022-10-18 10:05:31 +11:00
Tom Pittenger 0ca53d5065 AP_TemperatureSensor: TSYS01 adapt to front/back end split
Co-authored-by: Joshua Henderson <hendjoshsr71@gmail.com>
2022-10-18 10:05:31 +11:00
Joshua Henderson 3fdf87a6c7 SITL: TSYS01 add sim temperature based on altitude 2022-10-18 10:05:31 +11:00
Tom Pittenger 1254e18fa9 AP_Vehicle: add AP_TemperatureSensor
Co-authored-by: Joshua Henderson <hendjoshsr71@gmail.com>
2022-10-18 10:05:31 +11:00
Iampete1 14a786bdfa AC_AttitudeControl: remove duplicate `_attitude_target.normalize()` 2022-10-18 08:30:46 +11:00
Andrew Tridgell d398e567a3 AP_AHRS: added ATSC logging
log scale factors for angle P scaling when not == 1.0
2022-10-18 07:38:39 +11:00
Andrew Tridgell bd1be3b41c AC_AttitudeControl: added single loop override of angle P gains
this is used by quadplanes in back-transiton to prevent oscillation
caused by driving the fixed wing controller too fast
2022-10-18 07:38:39 +11:00
Andrew Tridgell 01d006ebd1 APM_Control: added access to time constant 2022-10-18 07:38:39 +11:00
Iampete1 da0ee9a8cb AP_Scripting: set lua nullptr after delete 2022-10-17 08:29:53 +11:00
Andrew Tridgell 1c5c1a566f AP_RPM: fixed SITL RPM backend for new motor mask 2022-10-16 20:38:19 +11:00
Andrew Tridgell 1138f9e624 SITL: allow for extra actuators to be marked as motors 2022-10-16 20:38:19 +11:00
Andrew Tridgell dc3f6fe69d AP_ESC_TELEM: allow for non-continguous ESC telem motor sets
this fixes ESC telem for quadplanes with motors at 5-8 or 9-12
2022-10-16 20:38:19 +11:00
Andrew Tridgell 1871c6bef7 HAL_SITL: use motor mask for noise checking for motors 2022-10-16 20:38:19 +11:00
Andrew Tridgell c42acd553e AP_InertialSensor: use motor_mask from SITL for which outputs are motors
generate noise based on motor_mask
2022-10-16 20:38:19 +11:00
Andrew Tridgell ac2701b1bf AP_Vehicle: removed num_dynamic_notches limit in dynamic harmonic
use INS_MAX_NOTCHES instead, allowing for more ESCs to be added by lua
scripts
2022-10-16 20:38:19 +11:00
Andrew Tridgell 02c06167c1 Filter: allow for expansion of dynamic filters
this allows for the number of dynamic filters on a harmonic notch
filter to expand at runtime, which allows for ESC RPMs to be populated
from other than AP_Motors, such as with lua scripts or for fwd motors
in a SLT quadplane
2022-10-16 20:38:19 +11:00
Andrew Tridgell a0af08a3aa SITL switched to motor_mask for which actuators are motors
this allows for any output to be an ESC, which allows for proper
simulation of quadplanes with ESCs on outputs 5-8 or 9-12, for testing
notch filtering
2022-10-16 20:38:19 +11:00
Andrew Tridgell 4b8b2d8236 SITL: support playback of new GPS log format 2022-10-15 17:20:42 +11:00
Andrew Tridgell 6f805cb537 AP_GPS: fixed resolution of KSXT parsing for NMEA
needs to be double precision for lat/lon
2022-10-15 17:20:42 +11:00