Commit Graph

23537 Commits

Author SHA1 Message Date
Andrew Tridgell
fb5a06b8da AP_Terrain: added AP namespace access to terrain 2020-07-10 13:28:38 +10:00
Andrew Tridgell
9466e7e71e GCS_MAVLink: make correct_offboard_timestamp_usec_to_ms protected
for use by vehicle code
2020-07-10 13:28:38 +10:00
Andrew Tridgell
f9f8822e47 SITL: added ship takeoff/landing simulation
this allows for a ship with a given radius and speed, allowing for
testing of ship takeoff and landing systems
2020-07-10 13:28:38 +10:00
Andrew Tridgell
91aaa7876d GCS_MAVLink: reserve another mavlink channel
for SimShip
2020-07-10 13:28:38 +10:00
Andrew Tridgell
925b44dee5 SITL: split out GPS and MAG parameters into their own tables
this creates space for new parameter trees
2020-07-10 13:28:38 +10:00
Andrew Tridgell
d0d7a46492 AP_AHRS: fixed SITL origin handling
we need to keep origin and home separate for AHRS_EKF_TYPE=10. This
caused issues with resets in RealFlight leading to the plane not
descending
2020-07-10 10:08:51 +09:00
Andy Piper
be3a2cc294 AP_RCTelemetry: disable CRSF debug 2020-07-09 17:42:17 +10:00
Randy Mackay
5b7918030f AP_ToshibaCAN: correct unused portion of motor reply data1 packet 2020-07-09 08:41:42 +09:00
Randy Mackay
0850b0acae AP_ToshibaCAN: handle negative RPM 2020-07-09 08:41:42 +09:00
Harshit Kumar Sankhla
33ac9efe17 SITL: add parameters for 2nd baro 2020-07-08 16:25:31 +10:00
Harshit Kumar Sankhla
27fc7dcf0a AP_Baro: get SITL to work with multiple baros
baro readings are independent of each other
and can be configured to behave differently
2020-07-08 16:25:31 +10:00
Henry Wurzburg
b84b6b52b3 RC_Channel: add terrain follow disable switch for CRUISE/FBWB 2020-07-08 13:39:42 +10:00
Randy Mackay
9c7f382392 AP_RangeFinder: remove unused set_rfnd_bit 2020-07-08 11:42:10 +09:00
Andy Piper
98562cc523 SITL: build fix on macos 2020-07-08 08:52:30 +10:00
Andy Piper
5bc1b11a80 AP_RCTelemetry: CRSF support
battery and heartbeat telemetry
parse VTX packets and VTX telemetry
provide GPS, Battery, Attitude, FlightMode telemetry
issue parameter updates at scheduled rate
support setting power levels with dbm
support standalone mode
set defaults from incoming VTX packets
output configured VTX settings
2020-07-07 18:48:06 +10:00
Andy Piper
4e88adf86e AP_RCProtocol: TBS CRSF implementation
refactor rc channels decoding into backend
refactor SBUS to use decode_11bit_channels()
only support big-endian
don't include CRSF in iomcu
2020-07-07 18:48:06 +10:00
Andy Piper
2bae080be4 AP_HAL_ChibiOS: increase RCIN stack size 2020-07-07 18:48:06 +10:00
Andy Piper
34a28cce00 SITL: add CRSF simulation driver 2020-07-07 18:48:06 +10:00
Andy Piper
a9ded9d870 AP_HAL_SITL: add CRSF simulation driver 2020-07-07 18:48:06 +10:00
Andy Piper
820d6654af AP_Vehicle: add VideoTX 2020-07-07 18:48:06 +10:00
Andy Piper
ac5a7275bf AP_Camera: move crc8_dvb_s2 to AP_Math 2020-07-07 18:48:06 +10:00
Andy Piper
d4c5b945b3 AP_Math: move crc8_dvb_s2 here and add additional crc8 functions 2020-07-07 18:48:06 +10:00
Andy Piper
d9f11c1a0a AP_SerialManager: add CRSF support and CRSF protcol 2020-07-07 18:48:06 +10:00
Paul Riseborough
24fccd5d87 AP_NavEKF3: Don't delay GPS use unnecessarily
Fixed wing should not wait for bias state convergence after in-flight yaw alignment
2020-07-07 15:33:58 +10:00
Paul Riseborough
9a4108f55e AP_NavEKF3: Simplify setting EK3_MAG_CAL
Don't require user to separately set EK3_MAG_CAL to fly without a magnetomer
2020-07-07 15:33:58 +10:00
Paul Riseborough
0dc598a6e1 AP_NavEKF3: Fix param description and comment 2020-07-07 15:33:58 +10:00
Paul Riseborough
25cba50f10 AP_NavEKF3: Fix EK2_MAG_CAL parameter description 2020-07-07 15:33:58 +10:00
Paul Riseborough
21ea5d5039 AP_NavEKF3: Require GSF yaw history for reset when not using a yaw sensor 2020-07-07 15:33:58 +10:00
Paul Riseborough
f86c2e1db6 AP_NavEKF3: Don't fuse EKF-GSF yaw for FW flight 2020-07-07 15:33:58 +10:00
Paul Riseborough
354b551ef0 AP_NavEKF3: Handle repeated FW flight without magnetometer
The EKF can build up large yaw errors on ground so it is safer to stop using GPS and re-align after launch as per first launch.
2020-07-07 15:33:58 +10:00
Paul Riseborough
8ff6780323 AP_NavEKF3: Clarify distinct use cases for 'takeoff expected' 2020-07-07 15:33:58 +10:00
Paul Riseborough
d1a0c2eb30 AP_NavEKF3: Start EKF-GSF yaw estimator before fixed wing takeoff 2020-07-07 15:33:58 +10:00
Paul Riseborough
b469a80633 AP_NavEKF3: Reset all co-variances when performing a yaw reset 2020-07-07 15:33:58 +10:00
Paul Riseborough
d8c2096ad8 AP_NavEKF3: improve angle accuracy during no mag launch 2020-07-07 15:33:58 +10:00
Paul Riseborough
f7c8ee807c AP_NavEKF3: Reset yaw estimator bias states at start of flight
Enables yaw bias to be learned when sitting stationary on ground.
2020-07-07 15:33:58 +10:00
Paul Riseborough
ea4589ea94 AP_NavEKF2: Reset yaw estimator bias states at start of flight
Enables yaw bias to be learned when sitting stationary on ground.
2020-07-07 15:33:58 +10:00
Paul Riseborough
5ad5498b07 AP_NavEKF: Enable external setting of yaw estimator bias states 2020-07-07 15:33:58 +10:00
Paul Riseborough
709a42cb7f AP_NavEKF: remove unnecessary memcopy 2020-07-07 15:33:58 +10:00
Paul Riseborough
4a743a3827 AP_NavEKF: Remove unnecessary reset operations and class variables
The setting of EKF state variances is only required when commencing or recommencing velocity fusion.
The function that resets the EKF and GSF class variables has been renamed to be more consistent with its function.
2020-07-07 15:33:58 +10:00
Paul Riseborough
b6d9b6f3c7 AP_NavEKF2: Update documentation for non-compass use case
Instruction now explicitly specifies that all COMPASS_USE parameters must be set to 0 and COMPASS_ENABLE must be set to 1
2020-07-07 15:33:58 +10:00
Paul Riseborough
bcd23e1063 AP_NavEKF3: Fix one frame delay in processing yaw estimator velocity data 2020-07-07 15:33:58 +10:00
Paul Riseborough
ccaa4d6aa9 AP_NavEKF2: Fix one frame delay in processing yaw estimator velocity data 2020-07-07 15:33:58 +10:00
Paul Riseborough
0ce4dd457d AP_NavEKF: Fix one frame delay in processing yaw estimator velocity data 2020-07-07 15:33:58 +10:00
Andy Piper
90acff647c AP_BLHeli: log telemetry at 10Hz 2020-07-07 11:44:33 +10:00
Peter Barker
2e55584417 AP_NavEKF3: correct comments on getFilterFaults and getFilterTimeouts methods 2020-07-07 10:50:41 +10:00
Peter Barker
081c0bbfe0 AP_NavEKF2: correct comments on getFilterFaults and getFilterTimeouts methods 2020-07-07 10:50:41 +10:00
Peter Barker
741520d598 GCS_MAVLink: find next bucket to send when sending-ids emptied on msg removal
We need to find the next bucket of messages to send when we've removed
the last message id from the current set of IDs we're sending out - not
just when we've empted the bucket the messages came from in the first
place.

An internal check caught this bug - the
'next_deferred_bucket_message_to_send called on empty bucket' error
2020-07-07 10:49:31 +10:00
juvinski
fad8ee8384 AP_Relay: Added support to Relay pins on BBBMini
This request add support for Relay Pins on BBBMini:
Pin:
	P8_17: Relay Pin 1
	P8_18: Relay Pin 2
	P8_19: Relay Pin 3
	P8_34: Relay Pin 4
	P8_13: Relay Pin 5
	P8_14: Relay Pin 6
2020-07-06 17:35:27 -07:00
Andrew Tridgell
0c87b2d885 AP_Generator: fixed misaligned access in RicenPower 2020-07-07 10:23:00 +10:00
Andrew Tridgell
90232fa6c0 GCS_MAVLink: fixed alignment errors in FTP server 2020-07-07 10:23:00 +10:00
Andrew Tridgell
21937a7830 AP_RCProtocol: fixed alignment errors in SRXL2
invalid alignment used
2020-07-07 10:23:00 +10:00
Andrew Tridgell
c5a60c31a7 HAL_Linux: fixed build warnings in RC input methods 2020-07-07 10:23:00 +10:00
Andrew Tridgell
7138811a57 AP_Common: fixed cast warnings for ExpandingArray 2020-07-07 10:23:00 +10:00
Andrew Tridgell
19093e25be AP_HAL: added ptr accessors to sparse-endian.h 2020-07-07 10:23:00 +10:00
Andy Piper
6162605388 AP_RCProtocol: ignore SRXL2 dbm rssi value like BF does 2020-07-07 09:03:40 +10:00
Mark Whitehorn
285f16e829 AP_Arming: add pre-arm check for VTOL manual forward throttle 2020-07-07 08:37:46 +10:00
Mark Whitehorn
2af6e255d1 RC_Channel: add RC option for VTOL manual forward throttle
fix RC_OPTION metadata for 209: Forward Throttle
2020-07-07 08:37:46 +10:00
Andrew Tridgell
6bab6d94bf AP_Scripting: fixed equality test for uint32_t 2020-07-06 10:08:19 -07:00
Randy Mackay
613d2c2e0a AP_RangeFinder: LightWareSerial gets small comment 2020-07-06 13:57:43 +09:00
Randy Mackay
2ca0d400a6 AP_Proximity: remove incorrect comment from SF40c 2020-07-06 13:54:17 +09:00
Andrew Tridgell
b6a5509409 AP_Math: added test for vector2f rotate 2020-07-06 14:46:48 +10:00
Andrew Tridgell
259cf10373 AP_Scripting: added rotate binding to Vector2f 2020-07-06 14:46:48 +10:00
Andrew Tridgell
24d0804249 AP_Math: added rotate() method to Vector2f 2020-07-06 14:46:48 +10:00
murata
98feb06183 AP_RangeFinder: Add GYUS42v2 to the TYPE item 2020-07-05 08:52:03 +10:00
murata
b12fcff89a AC_Fence: Matching Message Style 2020-07-04 22:55:35 +10:00
Peter Barker
9d7fd47267 SITL: add simulated GY-US42-v2 rangefinder 2020-07-04 13:40:10 +10:00
Peter Barker
0b431f3ecd AP_HAL_SITL: add simulated GY-US42-v2 rangefinder 2020-07-04 13:40:10 +10:00
Peter Barker
6ec497229b AP_RangeFinder: add serial support for GY-US42v2 rangefinder 2020-07-04 13:40:10 +10:00
Randy Mackay
443d4186a4 SITL: default vicon to send position and speed 2020-07-04 09:50:28 +09:00
craigy72
6557f3c258 AP_Scripting: fixup serial_test.lua 2020-07-04 09:11:09 +09:00
Patrick José Pereira
8bb74a12d0 AP_Motors: Remove double underscore header guard
The code now uses `#pragma once` and double underscore as a prefix
can result in undefined behaviour.
Ref: https://eel.is/c++draft/lex.name#3.1

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-07-03 14:53:33 +10:00
Peter Barker
4b2851a9b2 RC_Channel: add text for Generator AUX_FUNC 2020-07-03 08:21:42 +09:00
Peter Barker
1639bd7d09 AP_Generator: remove heat model for generator
It was agreed that the existing hyteresis in the H2 controller was
sufficient
2020-07-03 08:21:42 +09:00
Peter Barker
c5ac42d985 AP_Generator_RichenPower: allow operation with no generator present 2020-07-03 08:21:42 +09:00
Peter Barker
df8d8cefd6 AP_Generator: use new mavlink generator status flags 2020-07-03 08:21:42 +09:00
Peter Barker
88c8dd8465 SITL: add RichenPower generator simulator 2020-07-03 08:21:42 +09:00
Peter Barker
6056cc9d54 AP_HAL_SITL: add support for simulated RichenPower generator 2020-07-03 08:21:42 +09:00
Peter Barker
8e708a0a32 AP_BattMonitor: add backend for generator supply 2020-07-03 08:21:42 +09:00
Peter Barker
fce9046dcf AP_Arming: add generator checks 2020-07-03 08:21:42 +09:00
Peter Barker
b2bd8d5759 RC_Channel: add support for RichenPower generator control 2020-07-03 08:21:42 +09:00
Peter Barker
007a85e873 SRV_Channel: grab a servo function to control the RichenPower generators 2020-07-03 08:21:42 +09:00
Peter Barker
e2056f56e3 GCS_MAVLink: support for sending generator message 2020-07-03 08:21:42 +09:00
Peter Barker
4296f6ed4b AP_Vehicle: add instance for RichenPower generator 2020-07-03 08:21:42 +09:00
Peter Barker
3001812630 AP_SerialManager: add support for RichenPower generator 2020-07-03 08:21:42 +09:00
Peter Barker
e5367232b3 AP_Generator: add serial driver to read from RichenPower hybrid generators
AP_RichenPower: add support for sending HYBRID message
2020-07-03 08:21:42 +09:00
Peter Barker
cadb1012df AP_HAL_ChibiOS: reenable full features on KakuteF7Mini 2020-07-02 18:38:46 +10:00
Andrew Tridgell
ce8591ddbc HAL_ChibiOS: re-enable full features on KakuteF7 and OMNIBUSF7V2
we now have enough space with recent changes for these boards
2020-07-02 18:38:46 +10:00
Peter Barker
ff46541604 SITL: add simulated LightWare serial lidar talking new binary protocol 2020-07-02 10:50:59 +10:00
Peter Barker
c3246d61f4 AP_HAL_SITL: add simulated LightWare serial lidar talking new binary protocol 2020-07-02 10:50:59 +10:00
Randy Mackay
429e70fb94 AP_RangeFinder: LightwareSerial uses nullptr for strtof 2020-07-01 13:00:48 +09:00
Randy Mackay
85c4db6896 AP_RangeFinder: LightwareSerial driver loses unnecessary initialisation 2020-07-01 13:00:48 +09:00
Randy Mackay
cdbc0c782b AP_RangeFinder: add sf30d binary protocol support
Co-authored-by: Tatsuya Yamaguchi <susumu-336@hotmail.co.jp>
2020-07-01 13:00:48 +09:00
Iampete1
992d84ac22 SILT: MATLAB add Simulink instuctions to readme 2020-07-01 09:13:57 +10:00
bnsgeyer
019482075d SITL: add Simulink heli example 2020-07-01 09:13:57 +10:00
Iampete1
63280111c9 SITL: add Simulnk Rover example 2020-07-01 09:13:57 +10:00
Iampete1
a63275ca39 SITL: examples: add Simulink libary and functions 2020-07-01 09:13:57 +10:00
Iampete1
c466274046 SILT: SIM_JSON: update logging and report airspeed 2020-07-01 09:13:57 +10:00
Andy Piper
fd96cdf6e0 AC_AutoTune: set FLTT to zero while twitching
add pilot testing message
2020-06-30 20:09:48 +10:00
Andy Piper
c707303336 AP_HAL_ChibiOS: hold buzzer ping low in bootloader for omnibusf4pro 2020-06-30 17:58:35 +10:00
Andy Piper
48e0da8444 AP_HAL_ChibiOS: pull buzzer pin low in Kakute F7 bootloader to prevent startup scream 2020-06-30 17:58:35 +10:00
Henry Wurzburg
49be9d1626 SRV_Channel: fix parameters appearing in wiki param list erroneously 2020-06-30 16:24:19 +10:00
Henry Wurzburg
a3f0ce0a87 AP_BattMonitor: fix parameters appearing in wiki param list erroneously 2020-06-30 16:24:19 +10:00
Henry Wurzburg
9d86a3e2ef AP_Arming: fix parameters appearing in wiki param list erroneously 2020-06-30 16:24:19 +10:00
Andrew Tridgell
20b2396646 HAL_ChibiOS: fixed bug in undef of pins
revert pin to initial state on undef
2020-06-30 14:28:30 +10:00
Henry Wurzburg
8e6028ec1a AP_Terrain: Update spacing param description in line with firmware useage 2020-06-30 09:51:30 +10:00
Randy Mackay
f9a866d09a AP_HAL_ChibiOS: luminousbee4 serial5 to mavlink2 2020-06-30 09:42:49 +10:00
Randy Mackay
3e0bb4110a AP_HAL_ChibiOS: fmuv4 serial5 to mavlink2 2020-06-30 09:42:49 +10:00
Randy Mackay
ced448b706 AP_HAL_ChibiOS: DrotekP3Pro serial5 to mavlink2 2020-06-30 09:42:49 +10:00
Randy Mackay
211c20da38 AP_SerialManager: default serial 1 and 2 protocols to MAVLink2 2020-06-30 09:42:49 +10:00
murata
91101aac01 AP_BoardConfig: Define a method class
AP_BoardConfig: Define a method class
2020-06-30 09:21:16 +10:00
Peter Barker
edba1cca4a AP_GyroFFT: cast to unsigned to avoid signed/unsigned comparison
https://discuss.ardupilot.org/t/a-compile-error-about-sitl/57319/14
seems to show older compilers getting confused about what the type of
the RHS is here.  Make it unambiguous for them.
2020-06-29 10:19:14 +10:00
Randy Mackay
30bcf4d13b AP_Logger: VISP and VISV reset counter becomes uint8 2020-06-25 15:31:43 +10:00
Tom Pittenger
8f6e9caf93 AP_GPS: change GPS_AUTO_SWITCH #define list to enum class
enumeration entry had to change to NONE to avoid name conflict with DISABLED
2020-06-25 11:10:31 +10:00
Michael du Breuil
ff007dd017 AP_Scripting: Allow generator to cope with windows line endings
Also fixes allowing an extra new line on the depends entries to be
emitted, as well as a possible stack overflow in the generator if
you inserted a malicious comment.
2020-06-24 09:37:36 -07:00
Paul Riseborough
9507a2e157 AP_NavEKF2: Fix parameter description 2020-06-24 21:16:50 +09:00
Randy Mackay
ec5f84c926 AP_NavEKF3: remove unused terrainHgtStableSet_ms 2020-06-24 21:16:50 +09:00
Randy Mackay
a8c2be26ba AP_NavEKF2: remove unused terrainHgtStableSet_ms 2020-06-24 21:16:50 +09:00
Randy Mackay
dccc3e22d9 AP_NavEKF3: minor comment fix re RNG_USE_HGT 2020-06-24 21:16:50 +09:00
Randy Mackay
d0a2198e00 AP_AHRS: expose EKF setTerrainHgtStable accessor 2020-06-24 21:16:50 +09:00
Paul Riseborough
ed5b695c94 AP_NavEKF3: Clarify intended use of setTerrainHgtStable accessor 2020-06-24 21:16:50 +09:00
Paul Riseborough
502b96f49c AP_NavEKF2: Clarify intended use of setTerrainHgtStable accessor 2020-06-24 21:16:50 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
fca8d33c50 AP_NavEKF3: fix vertical flyaways when rangefinder stops providing data 2020-06-24 21:16:50 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
83dc46d539 AP_NavEKF2: fix vertical flyaways when rangefinder stops providing data 2020-06-24 21:16:50 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
a3d140b949 AP_NavEKF3: reduce duplicated code. 2020-06-24 21:16:50 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
280d33d030 AP_NavEKF2: reduce duplicated code. 2020-06-24 21:16:50 +09:00
Paul Riseborough
11a0fef3d0 AP_NavEKF2: Fix indent 2020-06-24 21:16:50 +09:00
Paul Riseborough
fc18ee91df AP_NavEKF2: Add missing fallback to baro for range beacon use case 2020-06-24 21:16:50 +09:00
Paul Riseborough
344d621a08 AP_NavEKF3: Add missing fallback to baro for range beacon use case 2020-06-24 21:16:50 +09:00
Paul Riseborough
d118c8fc38 AP_NavEKF2: Fix range aid switching logic
Clarifies use of EK2_RANGE_USE_HGT and EK2_ALT_SOURCE parameters to control range finder use.
Setting EK2_RNG_USE_HGT to a positive number to enable automatic switching between the primary height source (baro or GPS) and range finder should be disabled if any primary height source other than Baro or GPS is selected via the EK2_ALT_SOURCE parameter.
2020-06-24 21:16:50 +09:00
Paul Riseborough
906731222d AP_NavEKF3: Fix range aid switching logic
Clarifies use of EK3_RANGE_USE_HGT and EK3_ALT_SOURCE parameters to control range finder use.
Setting EK3_RNG_USE_HGT to a positive number to enable automatic switching between the primary height source (baro or GPS) and range finder should be disabled if any primary height source other than Baro or GPS is selected via the EK3_ALT_SOURCE parameter.
2020-06-24 21:16:50 +09:00
Rishabh
4fa2c3f5ba AP_Logger: Log if BendyRuler has avoided changing directions 2020-06-24 11:42:20 +09:00
Rishabh
7dd7565d14 AC_Avoid: Improve BendyRuler hesitancy by avoiding significant bearing change 2020-06-24 11:42:20 +09:00
Randy Mackay
03ea646e50 GCS_MAVLink: send_battery_status uses memcpy for cell voltages
Co-authored-by: WickedShell <Wicked.Shell.Scripts@gmail.com>
2020-06-24 10:19:15 +09:00
Randy Mackay
77d6b19d86 AP_BattMonitor: Generic driver timeout definition in seconds
also remove unnecessary init of local data variable
also change assert to be more forgiving
2020-06-24 10:19:15 +09:00
Randy Mackay
3e519b25a4 AP_BattMonitor: fix comments re voltage scaling 2020-06-24 10:19:15 +09:00
Randy Mackay
912e089c18 AP_Logger: fix BCL voltage scaling
voltages are in millivolts
2020-06-24 10:19:15 +09:00
Randy Mackay
65aea0e9c1 GCS_MAVLink: send_battery_status sends min of cell 10 11 and 12 2020-06-24 10:19:15 +09:00
Randy Mackay
82423384bf AP_Logger: BCL msg logs up to 12 battery cell voltages 2020-06-24 10:19:15 +09:00
Randy Mackay
cc6298e7ac AP_BattMonitor: SMBus Generic reads up to 12 cell voltages
Checks for the highest cell for 15 seconds and then reduces the cell voltage calls to cover only those cells that actually exist

also renames SMBus _last_cell_update_us
2020-06-24 10:19:15 +09:00
Iampete1
b1c3ea467b AC_Circle: constantly update velocity from params 2020-06-24 08:57:08 +09:00
Randy Mackay
473b027e03 AP_Vehicle: minor formatting fix 2020-06-24 08:34:41 +09:00
Randy Mackay
5b90c98e02 AP_Scripting: add rover-set-steering-and-throttle example script 2020-06-24 08:34:41 +09:00
Randy Mackay
d665a0a440 AP_Scripting: add binding for set_desired_steering_and_throttle 2020-06-24 08:34:41 +09:00
Randy Mackay
73508564f7 AP_Vehicle: add set_steering_and_throttle
only for use with scripting on rover
2020-06-24 08:34:41 +09:00
Andy Piper
88cda25d62 AP_Compass: enable LIS3MDL and friends 2020-06-23 19:59:10 +10:00
Iampete1
c27bdafea4 AC_PosControl: correct VELXY_D_FILT Description 2020-06-23 11:40:12 +09:00
Rishabh
c53d42e665 AP_Scripting: Remove send_text if directory is created 2020-06-23 10:42:41 +10:00
Michael du Breuil
e4d0484b75 RC_Channel: Cope with selective overrides and no RC reciever in a healthier way 2020-06-23 09:33:30 +10:00
Michael du Breuil
e02145efa0 AP_Arming: Use control_in rather then in_trim_dz() to cope with override only vehicles 2020-06-23 09:33:30 +10:00
Leonard Hall
edadbae240 AC_AttitudeControl: Handle zero accel value correctly in angle correction. 2020-06-23 08:21:47 +09:00
Michael du Breuil
7fae084793 GCS_MAVLink: Only send a single battery status per call 2020-06-23 09:18:56 +10:00
Henry Wurzburg
fe2a468b14 RC_Channel: fix metadata order on _OPTIONS 2020-06-22 20:56:39 +10:00
MATEKSYS
903b44da7d HAL_ChibiOS: Add DPS310 for MatekF405-WING,F765-WING and H743 2020-06-22 19:35:01 +10:00
Andy Piper
07ad4798dc AP_BLHeli: allow all motor frequencies to be returned
cater for ESCs not returning telemetry all the time
slew rpm updates for the harmonic notch
2020-06-21 19:09:35 +10:00
Andy Piper
cb524b7d3d AP_Vehicle: add function to log dynamic notch frequencies
move harmonic notch update here
2020-06-21 19:09:35 +10:00
Andy Piper
d402761a4b AP_GyroFFT: allow all three peaks to be returned so that we can have three independent harmonic notches
log dynamic harmonic notch per-peak
move health check into update() and make accessors const
use AP_Vehicle log function when necessary
2020-06-21 19:09:35 +10:00
Andy Piper
71f99542a8 Filter: allow harmonic notch center frequencies to be updated individually 2020-06-21 19:09:35 +10:00
Andy Piper
61bb42cc0c AP_InertialSensor: allow up to four distinct notch center frequencies to be updated
apply the LPF after the notch filters to reduced notch-induced noise
2020-06-21 19:09:35 +10:00
Rishabh
bd7190767e AP_Scripting: Create scripts folder automatically 2020-06-20 21:39:06 +10:00
Pierre Kancir
431468452c AP_NavEKF3: add --debug-ekf to debug the EKF 2020-06-20 19:59:05 +10:00
Pierre Kancir
9bbd2b19c2 AP_NavEKF2: add --debug-ekf to debug the EKF 2020-06-20 19:59:05 +10:00
Randy Mackay
ca0ae57b56 AP_NavEKF3: protect against position-delta sensor data being NaN 2020-06-19 13:46:52 +09:00
Randy Mackay
331f2f5fe7 AP_NavEKF3: writeExtNavData stores pos to buffer first
This is a non-functional change
2020-06-19 13:46:52 +09:00
Randy Mackay
578800dfbb AP_NavEKF3: protect against ExtNav being NaN 2020-06-19 13:46:52 +09:00
Randy Mackay
989ffb79cd AP_NavEKF2: minor format fix 2020-06-19 13:46:52 +09:00
Randy Mackay
966d59a26d AP_NavEKF2: protect against ExtNav being NaN 2020-06-19 13:46:52 +09:00
Peter Barker
349c11d631 RC_Channel: comment some of our range conventions on RC channel options 2020-06-19 10:03:02 +09:00
Rishabh
47e4e9f7c9 AC_Avoid: Store 3D data in OA_DB and use 3D distance in BendyRuler 2020-06-19 09:45:34 +09:00
Rishabh
9b5922786e AP_Proximity: Push 3D data into OA_DB 2020-06-19 09:45:34 +09:00
Rishabh
0779cf436e AP_Math: Added function to calculate shortest distance betwwen point and line segment in 3D 2020-06-19 09:45:34 +09:00
Iampete1
a23934fe93 AP_Scripting: add set angle demo 2020-06-19 10:09:35 +10:00
Iampete1
dc34dfb003 AP_Scripting: add guided mode set angle 2020-06-19 10:09:35 +10:00
Iampete1
98d5aa91a8 AP_Vehicle: add scripting guided mode set angle 2020-06-19 10:09:35 +10:00
Andrew Tridgell
4aa10a6c30 AP_GPS: added force_disable_yaw() API 2020-06-18 15:01:00 +10:00
Andrew Tridgell
7d430ae0ca RC_Channel: added rc option 105 to disable GPS yaw
very useful when doing testing of a moving baseline GPS yaw setup
2020-06-18 15:01:00 +10:00
Andrew Tridgell
9f0967eb94 AP_Terrain: added verbose option to terrain tester 2020-06-18 13:29:13 +10:00
Tatsuya Yamaguchi
ed14518634 AP_RangeFinder: TYPE param becomes enable flag 2020-06-18 12:30:00 +10:00
Rishabh
15f25aa2a5 AC_Avoid: Skip unnecessary retries to build inner fences 2020-06-17 16:44:57 +09:00
Rishabh
4ec8602de2 AC_Avoid: Remove unnecessary sanity checks 2020-06-17 16:43:27 +09:00
Peter Barker
e4621e6921 GCS_MAVLink: do not process commands after we have decided to reboot 2020-06-17 11:54:03 +10:00
Rishabh
34b17d0993 AC_Avoid: Check if origin is set before any obstacle avoidance algorithm is run 2020-06-17 08:26:50 +09:00
Andy Piper
1280eff6ef RC_Channel: add AIRMODE for copter 2020-06-16 20:30:26 +10:00
Peter Barker
040f78f515 RC_Channel: announce RC switch changes via statustext 2020-06-16 14:03:07 +10:00
Peter Barker
0c5d31f40f AP_Logger: ensure log directory exists before opening log
This will help with starting logs when inserting a fresh SD card which
doesn't have the ardupilot log directory on it
2020-06-16 12:03:21 +10:00
Peter Barker
66f8359c6b AP_Logger: factor out an ensure_log_directory_exists method 2020-06-16 12:03:21 +10:00
Randy Mackay
839e03f3e4 AP_AHRS: attitudes_consistent obeys always_use_EKF 2020-06-16 11:29:24 +10:00
Peter Barker
799c538c3e AC_Fence: ALT_MAX is Copter-and-Sub only 2020-06-16 11:21:47 +10:00
Peter Barker
30c65e57be SITL: remove use of Vector3 as function 2020-06-16 11:06:47 +10:00
Peter Barker
2f8c0dd65b AP_Math: remove use of Vector3 as function 2020-06-16 11:06:47 +10:00
Peter Barker
0f2bcea647 AP_Compass: remove use of Vector3 as function 2020-06-16 11:06:47 +10:00
Peter Barker
8c0aed9c6c AP_AHRS: remove use of Vector3 as function 2020-06-16 11:06:47 +10:00
Peter Barker
dad5b4e903 AP_Math: remove use of Vector2 as function 2020-06-16 11:00:44 +10:00
Michael du Breuil
f25d20f549 AP_Compass: Only send a single MAG_CAL_* message per poll
this fairly allocates bandwidth between the calibrators
2020-06-16 10:09:14 +10:00
Michael du Breuil
ab2dea5b86 AP_Common: Add % operator to TSIndex 2020-06-16 10:09:14 +10:00
Rishabh
b3a2b360e6 AC_Fence: clear breach if breached fence is not enabled 2020-06-16 08:27:19 +09:00
Andrew Tridgell
7f429302ed HAL_ChibiOS: increase monitor thread stack to 768 bytes
attempt to fix issue #14582
2020-06-15 17:56:34 +10:00
bugobliterator
82480f0a3d AP_Compass: return id of max empty compass state when prio id is 0 2020-06-13 07:52:20 +10:00
Andrew Tridgell
6fa623d074 HAL_ChibiOS: added Holybro Pix32v5 2020-06-12 21:23:16 +10:00
ashvath100
042ca7861f AP_Scripting: get_output_scaled method 2020-06-12 14:48:02 +10:00
Peter Barker
ea03504af2 AP_Camera: rename 'enum aux_switch_pos_t' to 'enum class AuxSwitchPos' 2020-06-12 08:11:46 +10:00
Peter Barker
8fd50dd66e AP_Arming: rename 'enum aux_switch_pos_t' to 'enum class AuxSwitchPos' 2020-06-12 08:11:46 +10:00
Peter Barker
88f4232e46 RC_Channel: rename 'enum aux_switch_pos_t' to 'enum class AuxSwitchPos' 2020-06-12 08:11:46 +10:00
MATEKSYS
14e01e21b7 HAL_ChibiOS: MatekH743: move baro to I2C2 bus 2020-06-11 17:31:59 +10:00
Andrew Tridgell
c1403a2e2b HAL_ChibiOS: fixed default CubeOrange pin for 2nd current sensor 2020-06-10 17:32:11 +10:00
Andrew Tridgell
9ddc7ea763 SITL: rebuilt linux tcp connector for matlab 2020-06-10 17:08:58 +10:00
Iampete1
2f99326db8 SITL: MATLAB: fix conector auto reconect 2020-06-10 17:08:58 +10:00
Iampete1
10000ed8ee SITL: recompile MATLAB pnet function 2020-06-10 17:08:58 +10:00
Peter Barker
8867457c4f AP_OSD: fix pointless multiple/divide
This is scaling code; OSD wants 0 to 99 vs 0 to 255 the uint8_t
function gives.  Use the unerlying 0-1 function in the OSD code in
preference to unscaling it from 255 then scaling to 99
2020-06-10 09:39:59 +10:00
Peter Barker
0e964a4654 AP_Logger: use config error loop rather than abort
Also add a specific check for the length of the labels field
2020-06-10 09:02:35 +10:00
chobits
f5f403947c AP_NavEKF2: clarify POSNE_M_NSE desc 2020-06-09 20:44:57 +09:00
chobitsfan
4477e2c617 AP_VisualOdom: fix desc typo 2020-06-09 13:31:21 +09:00
chobitsfan
01e6b316a6 AP_VisualOdom: clarify POS_M_NSE and YAW_M_NSE description 2020-06-09 13:31:21 +09:00
chobitsfan
255c685a8a AP_Logger: fix missing unit description in VISP 2020-06-09 13:31:21 +09:00
Randy Mackay
6714aa4e83 AP_Logger: shorten VISP and VISV log field names 2020-06-09 13:31:21 +09:00
chobits
9b448b83c0 AP_NavEKF3: use err info from ext nav interface 2020-06-09 13:31:21 +09:00
chobits
5e5a0d2111 AP_Logger: log ext nav pos err and ang err 2020-06-09 13:31:21 +09:00
chobits
5d271d1e04 AP_VisualOdom: support covariance from msg and add pos, ang err parameters 2020-06-09 13:31:21 +09:00
chobits
991387dbfb GCS_MAVLink: support covariance field in vis pose msg 2020-06-09 13:31:21 +09:00
chobits
e64c92b322 AP_NavEKF2: use err info from ext nav interface 2020-06-09 13:31:21 +09:00
Sergey Bokhantsev
f92d539b41 RC_Channel: Aux switches to respect 'reverse' option 2020-06-09 11:13:35 +10:00
Peter Barker
f04acbd7de RC_Channel: stop writing events when fence enabled or disabled
AC_Fence now does this
2020-06-09 10:52:19 +10:00
Peter Barker
973b103a4a AC_Fence: write log event when fence enabled or disabled 2020-06-09 10:52:19 +10:00
Peter Barker
f158533fe9 GCS_MAVLink: allow private channels to also be active
This will allow for logging of private channels.
2020-06-09 10:37:32 +10:00
Peter Barker
06012cbc56 GCS_MAVLink: cope with RingBuffer rename if empty() to is_empty() 2020-06-09 10:21:48 +10:00
Peter Barker
e15abd3320 AP_RCTelemetry: cope with RingBuffer rename if empty() to is_empty() 2020-06-09 10:21:48 +10:00
Peter Barker
fd3dd77489 AP_HAL: rename ringbuffer empty() to is_empty() 2020-06-09 10:21:48 +10:00
Peter Barker
b428f12913 GCS_MAVLink: add and use accessor for last-RADIO_STATUS.remrssi-ms 2020-06-09 10:20:29 +10:00
Peter Barker
07e3f1d48f GCS_MAVLink: add RADIO_STATUS.rssi as an AP_RSSI telemetry source 2020-06-09 10:20:29 +10:00
Peter Barker
547b641c91 AP_RSSI: add RADIO_STATUS.rssi as an AP_RSSI telemetry source 2020-06-09 10:20:29 +10:00
Randy Mackay
345029ec67 AP_NavEKF3: print extNav buff size 2020-06-09 09:42:14 +10:00
Randy Mackay
c4440a81f4 SITL: SIM_Vicon supports sending at 50hz 2020-06-09 09:42:14 +10:00
Randy Mackay
6c10655059 AP_NavEKF2: accept extnav at up to 50hz 2020-06-09 09:42:14 +10:00
Randy Mackay
0f212ca727 AP_NavEKF3: accept extnav at up to 50hz 2020-06-09 09:42:14 +10:00
Iampete1
fee5b998bf AP_Logger: add min MB free param 2020-06-09 09:23:25 +10:00
Iampete1
0d53ce4cd7 SRV_Channel: re-work timeout 2020-06-09 09:04:14 +10:00
Iampete1
66cbed78f5 SITL: JSON examples: update readme 2020-06-08 17:50:03 +10:00
Andrew Tridgell
5d9e0cb58d SITL: added robot.py pybullet example code 2020-06-08 17:50:03 +10:00
Andrew Tridgell
86d53c96d1 AP_Scripting: added opendog lua demo 2020-06-08 17:50:03 +10:00
Andrew Tridgell
ac5594566e SITL: rebuild matlab pnet for x86_64 linux 2020-06-08 17:50:03 +10:00
Andrew Tridgell
5b58b91626 SITL: allow connect back to originating port for matlab 2020-06-08 17:50:03 +10:00
Iampete1
f5e98a6d69 SITL: update MATLAB example 2020-06-08 17:50:03 +10:00
Iampete1
fbb4df97a3 SITL: SIM_JSON: update 2020-06-08 17:50:03 +10:00
Andrew Tridgell
44f727cfd2 SITL: removed use of extra port for JSON 2020-06-08 17:50:03 +10:00
Iampete1
c6603be64a SITL: MATLAB regenerate pnet.c for windows 2020-06-08 17:50:03 +10:00
Iampete1
99465b718f SITL: allow MATLAB pnet.c UDP no connect 2020-06-08 17:50:03 +10:00
Andrew Tridgell
843485ba5c SITL: fixed formatting of pnet.c 2020-06-08 17:50:03 +10:00
Andrew Tridgell
d9fc96f971 AP_Terrain: shortcut ocean tile creation 2020-06-08 13:56:42 +10:00
Andrew Tridgell
078de3205c AP_Terrain: added test option to terrain creation script 2020-06-08 13:56:42 +10:00
Andrew Tridgell
15f9f7009c AP_Terrain: fixed filling of all lattitudes in terrain generation script 2020-06-08 13:56:42 +10:00
Andrew Tridgell
6a1f43d5df HAL_ChibiOS: fixed build with our old compiler
gcc 4.9 doesn't like static_assert() in C code
2020-06-07 14:11:48 +10:00