Commit Graph

27439 Commits

Author SHA1 Message Date
Paul Riseborough
17c2ba5ac1 AP_NavEKF3: Fix bug causing too frequent resets if bad IMU data detected 2021-09-23 18:55:28 +10:00
Peter Barker
f0efc1300e AP_HAL_Linux: move defines of GPIO LOW/HIGH into cpp file
Insane having these generic defines happening if you include GPIO_BBB.h
2021-09-22 21:37:00 +10:00
Peter Barker
9c24916115 AP_HAL_SITL: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
275457fd2c AP_HAL_Linux: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
6ce79785b5 AP_OSD: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
dac4134533 AP_InertialSensor: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
df3cfe12a9 AP_VisualOdom: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
4b5525f53e SITL: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
224ff97f5c AP_Compass: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
9f6b9c7519 GCS_MAVLink: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
d6e5f8398d AP_RTC: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
0305a79b7b AP_Param: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
b66fd214f0 AP_NavEKF3: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
4aa6c212d2 AP_MSP: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
fec9d4850d AP_Logger: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
1976b2b859 AP_HAL: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
1bd62362a4 AP_HAL_ChibiOS: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
6d615a3e16 AP_GPS: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
df9de582e4 AP_DAL: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
b18bdb80d6 AP_BattMonitor: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
cf9a774bc2 AP_Baro: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
22e9ad4818 AP_Airspeed: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker
8f6bed23cf AP_AccelCal: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
bugobliterator
b43c9961a3 AP_Param: disable format security 2021-09-22 21:36:34 +10:00
bugobliterator
f3fef657f9 AP_GPS: handle failure to allocation of GPS CAN message subscribers 2021-09-22 21:36:34 +10:00
bugobliterator
0de393bf7f AP_BoardConfig: add allocation failure handling loop 2021-09-22 21:36:34 +10:00
Tatsuya Yamaguchi
1dcc5c3030 AP_BattMonitor: cope with AP_BATT_MONITOR_MAX_INSTANCES < 9 2021-09-22 18:58:12 +10:00
Iampete1
955be569a3 AP_Scripting: add forward flight motor shutdown applet 2021-09-22 18:16:32 +10:00
yaapu
6a459af624 AP_OSD: decrease blink frequency from 2Hz to 1Hz on MSP DisplayPort
Allows to actually see the blinking on hardware with a slow screen refresh rate
2021-09-22 18:06:12 +10:00
yaapu
9acfdaaa19 AP_OSD: added packed decimal support to MSP DisplayPort
This allows to take advantage of ArduPilot's compact decimal fonts
2021-09-22 18:06:12 +10:00
yaapu
f33d6c4ec1 AP_MSP: fix rssi rounding issue 2021-09-22 17:09:50 +10:00
Pierre Kancir
d853d16c42 AP_Math: fix vectorN ctor warning by using C++11 brace initilization in all cases 2021-09-21 20:51:37 +10:00
Paul Riseborough
e9c339a0a0 AP_NavEKF3: fix wind speed covariance initialisation bug 2021-09-21 17:16:36 +10:00
Andrew Tridgell
758ce2699e HAL_ChibiOS: added Hitec-Airspeed hwdef 2021-09-21 13:51:40 +10:00
Andrew Tridgell
7f59366cc0 HAL_ChibiOS: process AIRSPEED lines in hwdef.dat 2021-09-21 13:51:40 +10:00
Andrew Tridgell
f65620f4f3 AP_Airspeed: allow for an AIRSPEED list in hwdef.dat
this saves a lot of flash by only including specific drivers
2021-09-21 13:51:40 +10:00
Peter Barker
f07d40a570 AP_Mission: fix infinite loop with nav commands that won't start
Discovered this when trying to run the standard CMAC mission on Sub
2021-09-21 13:42:01 +10:00
Shiv Tyagi
a24a8c110b SRV_Channel : Improved should_e_stop method by using switch
This method earlier used >=, <= and == operators which is less maintainable. Hence, I replaced it by switch.

Co-Authored-By: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-09-21 11:17:09 +10:00
Gone4Dirt
30589f9b29 AP_Generator: Make unhealthy driver message persist 2021-09-21 11:14:03 +10:00
Andy Piper
e1fdab8423 AP_RCTelemetry: don't enter parameter mode while armed.
exit parameter mode quickly on ping
construct and respond to ping frames correctly
2021-09-21 10:41:58 +10:00
Iampete1
f541653502 SRV_Channel: fix override timeout without repeated calls 2021-09-21 10:24:04 +10:00
Iampete1
db6490818f AP_Button: update FUNx values 2021-09-21 09:36:24 +10:00
Iampete1
524ea39dfa RC_Channel: add convert_options function 2021-09-21 09:36:24 +10:00
Iampete1
c67705b02d RC_Channel: do_aux_function_armdisarm no longer needs to be virtual 2021-09-21 09:36:24 +10:00
Iampete1
39ca7dae1c RC_Channel: add two new ARMDISARM options and deprecate old 2021-09-21 09:36:24 +10:00
Josh Henderson
96cabfc423 SITL: add unit tests for SIM_MS5525 2021-09-21 09:30:58 +10:00
Josh Henderson
18a0632276 SITL: MS5XXX drivers use check_conversion_accuracy 2021-09-21 09:30:58 +10:00
Josh Henderson
2a2399c8f1 SITL: airspeed DLVR add atmosphere temperature model 2021-09-21 09:30:58 +10:00
Josh Henderson
c454cea401 AP_Airspeed: fix MS5525 driver to allow copying driver to 64bit SITL 2021-09-21 09:30:58 +10:00
Josh Henderson
5e90649a6e SITL: fix MS5525 for temp <20C and negative pressures 2021-09-21 09:30:58 +10:00
Hwurzburg
aa402d9a55 AP_Tuning: add options to prevent spamming tuning error messages 2021-09-21 07:56:19 +09:00
Hwurzburg
502aff27da AC_AttitudeControl: add options to prevent spamming tuning error messages 2021-09-21 07:56:19 +09:00
Iampete1
169375d14f RC_Channel: arming_check_throttle to virtual 2021-09-18 15:52:38 +01:00
Shiv Tyagi
cdb4ec8ad0 Plane : Improved LAND_THEN_NEUTRL to work on all control surfaces
This fixes the issue #18593

Co-Authored-By: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2021-09-17 22:06:24 -05:00
Michelle Rossouw
c9a3b16aa7 SITL: Blimp SITL add initial dynamics 2021-09-18 08:26:23 +10:00
Andrew Tridgell
f77e64ac83 HAL_SITL: Fixed default PWMs for blimp 2021-09-18 08:26:23 +10:00
Andrew Tridgell
5dcfa95444 GCS_Mavlink: allow setting of AHRS_TRIM_Z 2021-09-17 14:07:14 +10:00
Andrew Tridgell
3715ce6d1a AP_AHRS: allow setting of AHRS_TRIM_Z 2021-09-17 14:07:14 +10:00
Andrew Tridgell
fd86cb0591 AP_Vehicle: moved accel cal update handling from vehicles 2021-09-17 14:07:14 +10:00
Andrew Tridgell
fefade783b AP_InertialSensor: allow accelcal with a rotation 2021-09-17 14:07:14 +10:00
Andrew Tridgell
3f043dd933 AP_AHRS: added get_view_rotation() 2021-09-17 14:07:14 +10:00
Andrew Tridgell
63fcb804b3 AP_UAVCAN: added CAN_Dn_UC_OPTION parameter
this allows for 2 ways of controlling conflicts in the UAVCAN DNA
database. The first is to set CAN_Dn_UC_OPTION to 1, which resets the
DNA database, thus clearing any node conflicts.

The second is to set CAN_Dn_UC_OPTION to 2, which ignores node
conflicts in the DNA database

These options are useful for vehicles with UAVCAN smart batteries
where the node ID is fixed but the hwid changes and you want to do
battery swapping (possibly without rebooting)
2021-09-17 12:32:59 +10:00
Andrew Tridgell
17f8b0b11a AP_Param: disable debug code by default
found on EU dev call
2021-09-16 21:05:48 +10:00
Andrew Tridgell
119df09c44 SITL: cope with a socket error in FlightAxis
this fixes an issue that has arisen with the new threading approach
where RF would occasionally freeze
2021-09-16 14:31:10 +10:00
yaapu
94aba33d10 AP_OSD: added multi screen and stats support to DJI FPV OSD 2021-09-16 09:54:25 +10:00
yaapu
9f0d9a5652 AP_MSP: added multi screen and stats support to DJI FPV OSD 2021-09-16 09:54:25 +10:00
Iampete1
934a4e26c9 AR_Motors: re-work omni output to scale evenly at saturation 2021-09-16 08:48:47 +09:00
Iampete1
7ec7b478f0 AC_WPNav: add getter for wp_radius_cm 2021-09-15 20:36:56 +10:00
Iampete1
0a41cdaa24 SRV_Channel: add ignore reversed flag to set_trim_to_min_for 2021-09-15 18:59:07 +09:00
Iampete1
950dcf9242 AP_MotorsUGV: ignore servo reverse when setting trim for brushed with relay 2021-09-15 18:59:07 +09:00
Iampete1
85e57a3bd8 AP_Avoidance: correct ADSB vertical velocity conversion 2021-09-15 17:55:50 +10:00
Peter Barker
16c11fc4fa AP_Airspeed: allow zero offset if we are skipping calibration 2021-09-15 17:52:34 +10:00
Iampete1
bf695e4eeb AP_HAL_ChibiOS: atof to strtof 2021-09-15 17:36:12 +10:00
Iampete1
34f5b800b6 AP_Generator: atof to strtof 2021-09-15 17:36:12 +10:00
Iampete1
17e8ea0136 AP_RangeFinder_Params: update PIN discription 2021-09-15 17:31:54 +10:00
yaapu
53ea385291 AP_MSP: removed unnecessary pure virtual methods 2021-09-15 17:28:56 +10:00
yaapu
e1b12fbee3 AP_MSP: use const structures and brace initialization where possible
saves ane extra 130bytes
2021-09-15 17:28:56 +10:00
yaapu
3bbf2c1f70 AP_MSP: removed unstructured writes to msp dst buffer 2021-09-15 17:28:56 +10:00
yaapu
a2b83d675f AP_Scripting: added a frsky battery example 2021-09-15 17:21:41 +10:00
Peter Barker
305a8ad48a AP_Scripting: add and use HAL_QUADPLANE_ENABLED 2021-09-14 11:23:18 +10:00
Josh Henderson
7a3425faca AP_ADSB: sagetech use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
f534a315ea AP_Proximity: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
51023fc846 AP_NMEA_Output: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
3006d50f97 AP_NavEKF3: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
d5f5a3024a AP_NavEKF2: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
f76f86c207 AP_InertialNav: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
06251335da AP_GPS: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
38ead58df2 AP_AHRS: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
996b3b8b1e AC_Sprayer: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
c0b18e4d52 AC_Avoid: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Josh Henderson
a3e475822b AC_AttitudeControl: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Hwurzburg
6dfbd9ce31 AP_HAL_ChibiOS: add batt mon defaults to Kakutef4 Mini 2021-09-14 10:14:20 +10:00
Willian Galvani
68cbb47d68 HAL_Linux: RCOutput_PCA9685: implement force_safety_on/off 2021-09-14 10:11:17 +10:00
Willian Galvani
38e8020e4b HAL_Linux: try to stop PWMs before shutting down due to SIGTERM 2021-09-14 10:11:17 +10:00
Rhys Mainwaring
6cb4e6b31d SITL: update simpleRover C++ JSON interface example
- Provide a cmake file for cross platform builds
- Modify the example to respond to throttle commands on RC channel 3 (default for Rover)
- Add more detail to readme

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2021-09-14 09:54:39 +10:00
Iampete1
d9e30452ed AP_Mission: only continue after land if next waypoint is a takeoff 2021-09-14 08:24:02 +09:00
Iampete1
3dca9b4534 AR_Motors: stop setting safety limit 2021-09-14 09:23:02 +10:00
Iampete1
2abe120969 SRV_Channel: remove set_safety_limit 2021-09-14 09:23:02 +10:00
Iampete1
cc03b2975c AP_IOMCU: iofirmware: remove saftey PWM 2021-09-14 09:23:02 +10:00
Iampete1
c1a2379504 AP_IOMCU: remove safe PWM 2021-09-14 09:23:02 +10:00