Peter Barker
b88f414320
AP_GPS: allow UBLOX driver to be compiled out
2022-07-13 17:56:38 +10:00
Peter Barker
e858a0fab7
AP_GPS: factor out a _detect_instance method
...
This means we don't need the goto to handle the case of a detected GPS,
and it also allows for restructure remove the "else" statements, which
will allow compilinmg out the uBlox driver
2022-07-13 17:56:38 +10:00
Andrew Tridgell
0b9c5d6dc1
AP_ESC_Telem: fixed race condition in update_rpm()
...
if another thread updates at the same time then we could get division
by zero
2022-07-13 17:33:00 +10:00
Andrew Tridgell
1995dbf47c
AP_Scripting: added update_rpm() scripting binding
2022-07-13 17:33:00 +10:00
Andrew Tridgell
ec31a13275
AP_ESC_Telem: expose update_rpm() for scripting
2022-07-13 17:33:00 +10:00
Tamas Nepusz
19bc7ebebe
build_bootloaders.py should invoke bin2hex.py with the same Python interpreter as its own
2022-07-13 17:24:19 +10:00
Randy Mackay
67520c55d5
Tools: move Karuizawa location
2022-07-12 21:29:24 +09:00
TunaLobster
670378dc73
Tools: rstemit.py: Change Range to be clearer meaning
2022-07-12 12:58:39 +10:00
Peter Barker
d768bcc904
GCS_MAVLink: eliminate get_mavlink_channel
...
there's no dependence on any SerialManager stuff when determining this. The protocol passed through was always mavlink...
2022-07-12 11:32:57 +10:00
Peter Barker
8ab0c03ada
AP_SerialManager: eliminate get_mavlink_channel
...
there's no dependence on any SerialManager stuff when determining this. The protocol passed through was always mavlink...
2022-07-12 11:32:57 +10:00
Peter Barker
38119e17c7
GCS_MAVLink: correct gcs_out_of_space_to_send methodname
...
the "_count" is incorrect given the method which this calles on the link object
2022-07-12 11:10:53 +10:00
Peter Barker
d1f4e95b26
AP_Rally: clarify that rtl altitude is in cm amsl
2022-07-12 11:06:27 +10:00
Peter Barker
a2a63e14b1
AP_Rally: tidy calculation of nearest rally/home
2022-07-12 11:06:27 +10:00
Andrew Tridgell
4d4a1ddd42
waf: setup UBSAN_ENABLED define
2022-07-12 11:00:08 +10:00
Andrew Tridgell
9b0c8674d6
HAL_SITL: catch ubsan errors into a log file
2022-07-12 11:00:08 +10:00
Andrew Tridgell
88f0a324fd
AP_Math: added rounding functions
...
prevent undefined behaviour in float -> integer types
2022-07-12 11:00:08 +10:00
Andrew Tridgell
e2a83ba428
AP_NavEKF3: fixed undefined behaviour in logging
2022-07-12 11:00:08 +10:00
Andrew Tridgell
a24ed6a7f1
AP_NavEKF2: fixed undefined behaviour in logging
2022-07-12 11:00:08 +10:00
Andrew Tridgell
f55aadfedf
HAL_SITL: fixed undefined behaviour in GPIO
2022-07-12 11:00:08 +10:00
Andrew Tridgell
2f7a8769c0
autotest: added --ubsan and --ubsan-abort to sim_vehicle.py and autotest.py
...
allows for undefined behaviour checking in SITL
2022-07-12 11:00:08 +10:00
Andrew Tridgell
acf56204f2
waf: added --ubsan and --ubsan-abort options
2022-07-12 11:00:08 +10:00
Andrew Tridgell
3385d3ae62
Plane: support NAV_DELAY in plane
...
allow for delayed takeoff, and takeoff at a particular time (for swarm
takeoff)
also check for takeoff command in landing sequence arming check
this allows for takeoff->land->disarm->delay->arm->takeoff->land
missions
2022-07-12 10:34:26 +10:00
Andrew Tridgell
511b0f69f2
AP_Mission: skip aux function in determining if a takeoff
...
and reset landing sequenece flag on a takeoff command
2022-07-12 10:34:26 +10:00
Iampete1
ecc3ae2d05
AP_Logger: Log Structure: remove comma on included AIS structure
2022-07-12 09:39:54 +10:00
Iampete1
8f7cad39cd
AP_AIS: only include log structures if enabled
2022-07-12 09:39:54 +10:00
Iampete1
60408fd16e
hwdef: skyviper: update AP_AIS_ENABLED to AP_AIS_ENABLED
2022-07-12 09:39:54 +10:00
Iampete1
1a70f9fffc
Tools: scripts: build options: update AP_AIS_ENABLED to AP_AIS_ENABLED
2022-07-12 09:39:54 +10:00
Iampete1
faa414fbdb
AP_AIS: add dummy methods
2022-07-12 09:39:54 +10:00
Iampete1
28989f1838
Tools: ardupilotwaf: add AP_AIS to build
2022-07-12 09:39:54 +10:00
Iampete1
e8607c09f1
GCS_MAVLink: send ais message
2022-07-12 09:39:54 +10:00
Iampete1
30fffb491c
AP_Vehicle: add AIS
2022-07-12 09:39:54 +10:00
Iampete1
b94e1c5027
AP_AIS: add singleton
2022-07-12 09:39:54 +10:00
Iampete1
6b06e2eb9b
Blimp: add AIS to ADSB stream rate
2022-07-12 09:39:54 +10:00
Iampete1
50024a6ec2
Plane: add AIS to ADSB stream rate
2022-07-12 09:39:54 +10:00
Iampete1
cbaea15c96
Copter: add AIS to ADSB stream rate
2022-07-12 09:39:54 +10:00
Iampete1
7fd157acb4
Rover: move AIS to vehicle
...
This reverts most of commit e86665a989
.
2022-07-12 09:39:54 +10:00
Peter Barker
2ca68da77a
autotest: correct setting mode by number
2022-07-12 08:51:21 +10:00
Peter Barker
a672c7df97
autotest: add test for changing modes by mode number
...
Useful for when you don't have a mapping entry for the mode number yet
2022-07-12 08:51:21 +10:00
Andrew Tridgell
a92161cd18
GCS_MAVLink: improved start battery cell monitoring
...
this fixes two issues:
1) we are not reporting the sag corrected voltage to GCS when we are
sending individual cells
2) we don't cope with having more than AP_BATT_MONITOR_CELLS_MAX
cells (or 12 for low flash boards, 14 for 2M boards)
it fixes this by distributing the extra voltage over the calls.
This change is particularly important for high cell count DroneCAN
smart batteries, where we currently would not handle more than 14
cells and the GCS would display the wrong voltage
the PR also cleans up the use of volts vs mVolts for the local
variables
2022-07-11 14:21:41 +10:00
Shiv Tyagi
489a27ca19
SITL: fix sim_precland orientation bug
2022-07-11 10:10:55 +10:00
RuffaloLavoisier
0e0c23a8e3
AP_Logger : correct spelling on comment
2022-07-11 08:51:27 +09:00
RuffaloLavoisier
2172095e3f
Copter : correct spelling on comment
2022-07-11 08:51:27 +09:00
chobitsfan
a723abf986
AP_Motors: reuse spool_step for code refactoring
2022-07-11 08:39:34 +09:00
Peter Barker
d5f2a95417
autotest: build Heli in parallel to Copter
...
CI always seems to have the heli tests stuck out at the end. This should fix that at tthe cost of a few extra seconds of compilation
2022-07-10 21:01:42 +10:00
Peter Barker
72734d38de
autotest: add test for AUTO_LAND_TO_BRAKE
...
Having some terrain-based issues with BRAKE mode
2022-07-10 20:59:52 +10:00
Peter Barker
7647e38f3f
autotest: create get_home_tuple_from_mission method
...
Useful if you want to start a mission where a saved waypoint file's home location is
2022-07-10 20:59:52 +10:00
Andrew Tridgell
0103776d83
Filter: fixed test_notchfilter for the change in allocate_filters()
...
changed for triple notch
2022-07-10 06:57:29 +10:00
Andrew Tridgell
6a1e80a03a
Plane: when ICE overrides throttle zero the vfwd integrator
2022-07-10 06:56:58 +10:00
Andrew Tridgell
32e1767647
AP_ICEngine: added option to force low throttle on engine off
...
this fixes an issue with EFI engines that use low throttle demand to
stop the engine, instead of using an ignition channel. This option
needs to be set on these aircraft to prevent the idle governor or the
fwd throttle integrator in quadplanes from keeping the engine on when
the pilot asks for it to be off.
2022-07-10 06:56:58 +10:00
Peter Barker
0ec06511ae
Tools: build_options: mount backends depend on mount being enabled
2022-07-08 16:00:57 +10:00