Peter Barker
a6246a6afa
AP_KDECAN: regularise CAN pre-arm failure messages
...
AP_Arming tacks on the sub-system bit.
Remove PiccoloCAN's silly nullptr check
Require the library to supply the failure message (no default message)
Remove default cases so authors know to think about places they should
add things.
2020-05-05 11:27:53 +10:00
Peter Barker
b38d2c6194
AP_Arming: regularise CAN pre-arm failure messages
...
AP_Arming tacks on the sub-system bit.
Remove PiccoloCAN's silly nullptr check
Require the library to supply the failure message (no default message)
Remove default cases so authors know to think about places they should
add things.
2020-05-05 11:27:53 +10:00
Andrew Tridgell
8ea433ac21
AP_Terrain: added script for creating terrain *.dat files
...
useful for pre-populating a microSD card
2020-05-05 11:21:33 +10:00
Andrew Tridgell
7b7bf3ef86
AP_Terrain: fixed bug in disk offset calculation
...
this fixes a problem where two different locations could both be
mapped to the same disk block in the terrain/*.DAT files. That meant
that pre-filled terrain on the microSD card would sometimes require a
download in flight. It also means that a RTL with loss of GCS could
sometimes fly through a region with no terrain data available
Other changes in this patch:
- allow for a 2cm discrepancy in the lat/lon of the grid
corners. This is needed to allow for slightly different floating
point rounding in tools that pre-generate terrain data to load on
the microSD
- added TERRAIN_OPTIONS parameter to allow the user to disable
attempts to download new terrain data. This is mostly useful for
testing to validate a terrain generator
2020-05-05 11:21:33 +10:00
Tatsuya Yamaguchi
f23e592057
AP_Camera: move get_channel_pos function to RC_Channels
2020-05-05 10:09:30 +09:00
Tatsuya Yamaguchi
806bd38c7f
RC_Channel: add get_channel_pos function
2020-05-05 10:09:30 +09:00
Tatsuya Yamaguchi
de854a2ffe
AP_Arming: pre-arm check for disarm aux switch
2020-05-05 10:09:30 +09:00
Tatsuya Yamaguchi
4fdd24ecd3
RC_Channel: add disarm aux switch RCn_OPTION=81
2020-05-05 10:09:30 +09:00
Andy Piper
b7b2d9a6ce
AP_Compass: add support for custom compass rotation via COMPASS_CUS_{ROLL,PIT,YAW}
...
add reboot required for parameters that need it
disable custom rotation on AP_Periph devices
2020-05-05 09:25:18 +10:00
Andy Piper
167e1d12d7
AP_RCProtocol: disable flow-control and buffered-writes for SRXL2 uart
...
switched spm_srxl.c to C++ compilation
Correctly set budget for half-duplex writes
Tidy PACKED and other externalities
disable SRXL2 on IOMCU and softserial - SRXL2 is a serial half-duplex protocol-only
fixed buffer overrun in SRXL2 parser
fix bugs in decoder sketch and allow output to SITL
2020-05-05 09:23:15 +10:00
Andy Piper
44e5171f2b
AP_Frsky_Telem: refactor common code into AP_RCTelemetry
...
refactor naming
when using external data AP_Frsky_Telem::init() has to call AP_RCTelemetry::init() and exit.
No need to initialize serial ports
2020-05-05 09:23:15 +10:00
Andy Piper
e3a88f686d
AP_RCTelemetry: Spektrum telemetry library and telemetry abstraction
...
add support for temperature, battery voltage, battery current, flight pack
altitiude, airspeed, attitude and compass, GPS, ESC telemetry based on BLHeli
status messages and QOS packets.
refactor into AP_Telemetry
conditionally compile based on HAL_MINIMIZE_FEATURES
don't initialize spektrum telemetry if there is no RC uart
2020-05-05 09:23:15 +10:00
Andy Piper
da166b256d
GCS_MAVLink: add messages to Spektrum telemetry if it is enabled
2020-05-05 09:23:15 +10:00
Andy Piper
68c6a3b03d
AP_RCProtocol: SRXL2 support
2020-05-05 09:23:15 +10:00
Peter Barker
967f8bf726
AP_HAL_ChibiOS: correct description of where stdout goes
2020-05-05 07:57:57 +10:00
david sastre
f8b6d4b0ac
AP_Parachute: Fix singleton panic message
2020-05-05 07:43:02 +10:00
Andrew Tridgell
e126b6d346
HAL_ChibiOS: fixed race condition in storage write
...
we could mark a line as clean when it should be dirty if we lose a
race condition between storage thread and writer
2020-05-04 17:22:41 +10:00
Andrew Tridgell
0c1ba48212
AP_NavEKF3: fixed external yaw EK3_MAG_CAL=5 or 6
...
don't use GSF
2020-05-04 15:05:56 +10:00
Peter Barker
f43e48a6f1
AP_Filesystem: correct comparison of signed/unsigned
...
Closes #14267
2020-05-04 12:06:30 +10:00
Lucas De Marchi
29d8586ea4
AP_HAL_Linux: RCInput_UDP: accept up to 16 channels
...
This allows more channels to be passed to RCInput_UDP protocol while
also allowing less than 8 channels - this is similar to the approach
used by SITL in which the packet size is used to figure out the number
of channels.
2020-05-03 00:07:52 -07:00
Andrew Tridgell
f0fb64005d
AP_Filesystem: document extra restrictions in param.pck
2020-04-30 21:15:28 +10:00
Andrew Tridgell
685d0666e9
AP_Filesystem: added README on VFS interface
2020-04-30 21:04:12 +10:00
Randy Mackay
183ce50138
AP_NavEKF3: check GPS used before resetting pos due to GPS receiver change
2020-04-30 15:55:59 +09:00
Randy Mackay
f79d5d2d2c
AP_NavEKF3: handle external nav position reset
2020-04-30 15:55:59 +09:00
Randy Mackay
cbb25311bb
AP_NavEKF3: setAidingMode uses lastExtNavPassTime_ms
2020-04-30 15:55:59 +09:00
Randy Mackay
d763597065
AP_NavEKF3: compensate for visual odometry sensor position
2020-04-30 15:55:59 +09:00
priseborough
c5e465aec9
AP_NavEKF3: add external nav system support
...
includes decoupling height source from use of external nav data
2020-04-30 15:55:59 +09:00
priseborough
471372cc7f
AP_AHRS: Write external nav data to EKF3
2020-04-30 15:55:59 +09:00
Peter Barker
81454c7a40
GCS_MAVLink: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
58a8e54d83
AP_Math: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
7befe84f0c
AP_Logger: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
f0b38fa11c
AP_IOMCU: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
a30cdabb34
AP_InternalError: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
5f8a9d1e15
AP_HAL_SITL: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
141d7fed48
AP_HAL: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
48da4e523c
AP_HAL_ChibiOS: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
37cddbeea6
AP_FlashStorage: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
8e82ea2540
AP_Common: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
119eef9954
AP_Arming: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
36fd632a49
AP_AHRS: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
Peter Barker
069bd04bdc
AC_Fence: create and use INTERNAL_ERROR macro so we get line numbers
2020-04-30 13:21:36 +10:00
pkocmoud
defb7dc43f
hwdef: add mRo M10070 Location One CAN GPS
2020-04-30 11:31:43 +10:00
Patrick José Pereira
3268c234d8
AP_HAL_Linux: Add PAGE_SIZE in RCInput_RPI
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-04-29 02:12:58 -07:00
Patrick José Pereira
32c0e37512
AP_HAL_Linux: Organize and document GPIO_RPI class
...
- Move macros to functions and improve explanation about logic behind it
- Break code in functions to make it more readable
- Add doxygen comments about functions and how they work in a comprehensive manner
- Improve general code maintainability
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-04-29 02:12:58 -07:00
Andrew Tridgell
66655212b1
AP_Compass: fixed compass ordering bug with AP_Periph
...
when a user swaps compasses on AP_Periph we want to immediately
replace it. The compass ordering code was rejecting the new compass
and calling panic as it was out of slots. This changes the AP_Compass
ordering so that when we only have a single compass we operate in a
very simple manner where we always accept the first compass found
2020-04-29 18:51:16 +10:00
Andrew Tridgell
3ec2ef787d
HAL_ChibiOS: fixed build warning
2020-04-29 12:20:19 +10:00
Andrew Tridgell
f00392d567
AP_GPS: don't accept a zero GNSS timestamp from UAVCAN GPS
...
this is needed for a bug in AP_Periph 1.0 which could briefly send a
zero timestamp on first fix marked as a UTC time
2020-04-29 12:20:19 +10:00
Andrew Tridgell
ce68e0fbb5
HAL_ChibiOS: fixed bootloader build
2020-04-29 07:36:55 +10:00
Andrew Tridgell
0ef66659ce
HAL_ChibiOS: log WDOG message once a second
...
this copes with delayed mounting of the microSD, making it much more
likely we log the critical data
2020-04-29 07:36:55 +10:00
Andrew Tridgell
7d6e5fa8a5
AP_InternalError: implement AP_stack_overflow() C binding
...
allow low level HAL code to report a stack overflow to
AP_InternalError
2020-04-29 07:36:55 +10:00
Andrew Tridgell
18e88e0ea3
HAL_ChibiOS: implement stack overflow hook
...
this needs C bindings to allow call from low level RTOS thread
switching code
2020-04-29 07:36:55 +10:00
Andrew Tridgell
77b8f88289
AP_Vehicle: report thread name in watchdog mavlink msg
2020-04-29 07:36:55 +10:00
Andrew Tridgell
c61cecdbc7
HAL_ChibiOS: report thread name in watchdog
2020-04-29 07:36:55 +10:00
Andrew Tridgell
09477b2dfe
HAL_ChibiOS: shorted thread names
...
changes names so threads can be distinguished by first 4 bytes
2020-04-29 07:36:55 +10:00
Andrew Tridgell
a25ea5addc
AP_HAL: added thread name to persistent data
...
this addes the first 4 bytes of the thread name to persistent data. It
also re-arranges the data so that it is more efficiently packed,
allowing us to fit the new field
2020-04-29 07:36:55 +10:00
Andrew Tridgell
b519ebf512
AP_Filesystem: check for valid range for start and count
2020-04-29 07:36:55 +10:00
Andrew Tridgell
7571e616de
GCS_MAVLink: handle session timeout due to lost packets
...
and fixed handling of losing last pkt in a burst
2020-04-29 07:36:55 +10:00
Andrew Tridgell
db0d3c5e89
AP_Param: fixed race in param count handling
2020-04-29 07:36:55 +10:00
Andrew Tridgell
65e790a48c
GCS_MAVLink: invalidate param count on set of ENABLE param
2020-04-29 07:36:55 +10:00
Andrew Tridgell
ffe9fa22a1
AP_RangeFinder: invalidate param count when changing param tree structure
2020-04-29 07:36:55 +10:00
Andrew Tridgell
d7555b4b86
AP_BoardConfig: invalidate param count when changing param tree structure
2020-04-29 07:36:55 +10:00
Andrew Tridgell
766fb32292
AP_Param: added set_enable() API
...
used to set value of an enable parameter, clearing count cache
2020-04-29 07:36:55 +10:00
Andrew Tridgell
7e010ef50a
AP_NavEKF3: use set_enable() to set enable flag
2020-04-29 07:36:55 +10:00
Andrew Tridgell
c9ffe8dcea
AP_NavEKF2: use set_enable() to set enable flag
2020-04-29 07:36:55 +10:00
Andrew Tridgell
f6d83069d3
AP_Filesystem: guarantee padding and added URI options
2020-04-29 07:36:55 +10:00
Andrew Tridgell
3608bfe272
AP_Filesystem: added magic header for param.pck
2020-04-29 07:36:55 +10:00
Andrew Tridgell
65749706c2
AP_Filesystem: fixed SITL build
2020-04-29 07:36:55 +10:00
Andrew Tridgell
a5965d5a9e
HAL_Chibios: removed unnecessary debug defines
2020-04-29 07:36:55 +10:00
Andrew Tridgell
9b14fa7ed9
AP_Filesystem: enable @PARAM, @ROMFS and @SYS with no microSD
2020-04-29 07:36:55 +10:00
Andrew Tridgell
7cd901fa5b
GCS_MAVLink: enable ftp without filesystem
...
allows for @PARAM and @SYS
2020-04-29 07:36:55 +10:00
Andrew Tridgell
2c26807736
HAL_ChibiOS: embed hwdef.dat in ROMFS for all boards
2020-04-29 07:36:55 +10:00
Andrew Tridgell
bd07e8516f
Filter: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
3397ea24cc
AP_RTC: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
b102fd6b59
AP_RangeFinder: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
9350c78023
AP_HAL_ChibiOS: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
4f591a338f
AP_GPS: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
660f65e6b8
AP_Compass: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
40f1b5f9ae
AP_Airspeed: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
6811d79b6f
GCS_MAVLink: define GCS_SEND_TEXT() globally
...
used to avoid linking GCS in AP_Periph
2020-04-29 07:36:55 +10:00
Andrew Tridgell
6bacf021c8
HAL_ChibiOS: disable thread_info in AP_Periph and bootloader
2020-04-29 07:36:55 +10:00
Andrew Tridgell
d82cd1363b
HAL_ChibiOS: fixed bootloader build
2020-04-29 07:36:55 +10:00
Andrew Tridgell
cd3b4dcc7d
AP_Filesystem: added @SYS filesystem backend
2020-04-29 07:36:55 +10:00
Andrew Tridgell
f0c9f4003e
HAL_ChibiOS: implement thread_info()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
164022ca12
AP_HAL: added thread_info() API
2020-04-29 07:36:55 +10:00
Andrew Tridgell
67fc23d01b
AP_Filesystem: support downloading parameters via ftp
...
adds @PARAM/param.pck as a packed file of all parameters
2020-04-29 07:36:55 +10:00
Andrew Tridgell
456b685779
AP_Param: make type_size() public
2020-04-29 07:36:55 +10:00
Andrew Tridgell
ea71b72c87
HAL_ChibiOS: fixed issue with I2C4 on H743
...
when both I2C4 and SPI4 are active on a H743 I found that some BDMA
completion interrupts were lost, which resulted in SPI transfer
timeouts. Close inspection of the ChibiOS BDMA, I2Cv3 and SPIv3
drivers did not reveal any issues, but I found that the issue only
happened when the first 4 BDMA streams were used. This change splits
the 4 streams across the first and 2nd half of the BDMA controller,
and that fixes the problem.
This works as there are only 2 peripherals (I2C4 and SPI6) that want
to use BDMA with our current setup. If we ever wish to enable ADC3
(which also uses BDMA) we will need to revisit this issue
2020-04-28 17:42:15 +10:00
Randy Mackay
d8bc197d35
SITL: add VICON_GLIT_XYZ, FAIL and YAW
...
glitches are in meters in vicon's frame
fail disables sending of vision-position-estimate messages
yaw is the vicon's heading in degrees. i.e. if vicon's "forward" is
pointing to the east, yaw should be set to 90
2020-04-28 12:31:14 +09:00
Paul Riseborough
ad5ae1813d
AP_NavEKF3: Don't use geomag data when user specifies declination
2020-04-28 11:42:31 +09:00
Paul Riseborough
e1f27054d5
AP_NavEKF2: Don't use geomag data when user specifies declination
2020-04-28 11:42:31 +09:00
Paul Riseborough
8e9dc1c393
AP_Compass: Add accessor function for COMPASS_AUTODEC
2020-04-28 11:42:31 +09:00
Andrew Tridgell
b1977ca43d
AP_Scripting: removed old servo output binding
2020-04-28 11:14:26 +10:00
Andrew Tridgell
d214e379a2
AP_Scripting: rebuild bindings
2020-04-28 11:14:26 +10:00
Andrew Tridgell
ea9316c2b5
AP_Scripting: added servo movement example script
2020-04-28 11:14:26 +10:00
Andrew Tridgell
ca584943a5
AP_Scripting: added bindings for servo output
2020-04-28 11:14:26 +10:00
Arash Negahdar
98dfc69887
SITL: Don't start scrimmage from ArduPilot
2020-04-28 11:09:51 +10:00
Mark Whitehorn
570aa929ca
AP_Compass: handle ROTATION_CUSTOM in SITL
2020-04-28 10:57:26 +10:00
Mark Whitehorn
db1c7d9bdd
SITL: add support for AHRS_ORIENTATION=ROTATION_CUSTOM
2020-04-28 10:57:26 +10:00
Mark Whitehorn
7d3d664ddf
AP_Math: generate internalError on call to Vector3<T>::rotate and Quaternion::from_rotation with bad rotation value
2020-04-28 10:52:21 +10:00
Mark Whitehorn
b658a84124
AP_InternalError: add error type bad_rotation
2020-04-28 10:52:21 +10:00
bnsgeyer
ce171107a3
SITL: update tradheli dynamics model for SITL
2020-04-28 10:45:33 +10:00
Kelly Schrock
2cb54bb11d
AP_BattMonitor: NeoDesign battery driver
...
Adds a driver for the NeoDesign BMS, with variable cell count.
2020-04-28 10:39:57 +10:00
Randy Mackay
8caf7d5811
AP_AHRS: add set_alt_measurement_noise
...
These calls the EKF2 and EKF3's set_baro_alt_noise
2020-04-28 09:38:23 +09:00
Michael du Breuil
9b404669c8
AP_Compass: Skip rotating the mag data when the board orientation is none
2020-04-28 10:37:00 +10:00
Andrew Tridgell
32cdfddf12
HAL_ChibiOS: convert all hwdef from UART_ORDER to SERIAL_ORDER
...
much easier to understand
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a52070d226
HAL_ChibiOS: use SERIAL_ORDER instead of UART_ORDER
...
SERIAL_ORDER is much easier for developers to understand as it maps
directly to the SERIALn_ parameters
2020-04-28 10:32:23 +10:00
Andrew Tridgell
0994655f5b
HAL_ChibiOS: fixed build warnings for bootloader builds
2020-04-28 10:32:23 +10:00
Andrew Tridgell
9557a5c22c
HAL_ChibiOS: added more STM32CubeMX configs
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a9df9fe0c0
HAL_ChibiOS: removed clock tree settings in most hwdef.dat
...
these are better set automatically in the headers. This simplifies the
task of doing a new port
2020-04-28 10:32:23 +10:00
Andrew Tridgell
a638196334
HAL_ChibiOS: skyviper-f412-rev1 uses a custom clock tree
2020-04-28 10:32:23 +10:00
Andrew Tridgell
e8b2b52bae
HAL_ChibiOS: removed STM32_VDD from hwdef.dat
...
use default
2020-04-28 10:32:23 +10:00
Andrew Tridgell
d9efac2993
HAL_ChibiOS: only allow PLL override in clock selection part of header
2020-04-28 10:32:23 +10:00
Andrew Tridgell
fe765b8845
HAL_ChibiOS: switched CUAV_GPS to use same clocks as other F4
2020-04-28 10:32:23 +10:00
Andrew Tridgell
82c45f6cdb
HAL_ChibiOS: default STM32_VDD to 3.3V
2020-04-28 10:32:23 +10:00
Andrew Tridgell
29f538dec9
HAL_ChibiOS: use common header for STM32 clock config
...
avoid the need for clock config lines in most hwdef.dat files
2020-04-28 10:32:23 +10:00
Andrew Tridgell
3d5475a1d9
HAL_ChibiOS: fixed skyviper-journey build
2020-04-28 10:32:23 +10:00
Andrew Tridgell
bceee69a6c
AP_Filesystem: avoid some warnings in AP_Scripting
2020-04-28 10:32:23 +10:00
Andrew Tridgell
6222649e37
AP_Scripting: avoid build warnings
2020-04-28 10:32:23 +10:00
Andrew Tridgell
764117c336
AP_BoardConfig: fixed build warning
2020-04-28 10:32:23 +10:00
Andrew Tridgell
bb87da628e
AP_Param: fixed build warning
2020-04-28 10:32:23 +10:00
Randy Mackay
2ae31f9d76
AP_AHRS: get_position obeys always_use_EKF
...
Co-Authored-By: WickedShell <Wicked.Shell.Scripts@gmail.com>
2020-04-28 09:20:05 +09:00
Leonardo Mariga
0f92cb9168
AP_Landing: Description of APP_EXT and unit of L1 fixed
2020-04-28 09:59:12 +10:00
Peter Barker
9142f877e7
AP_Mount: use logger Write method for logging Solo gimbal
...
Also document the messages
2020-04-28 09:56:09 +10:00
Peter Barker
ad9493caca
AP_Logger: use logger Write method for logging Solo gimbal
...
Also document the messages
2020-04-28 09:56:09 +10:00
Iampete1
3618607746
AP_Proximity: AirSimSITL: fix left right swap
2020-04-28 09:37:59 +10:00
Andy Piper
8407648316
Filter: make sure the center frequency can never be zero
2020-04-28 09:32:02 +10:00
Andy Piper
d0a241597a
AP_InertialSensor: add support for double harmonic notches to more effectively target wider noise peaks
2020-04-28 09:32:02 +10:00
Andy Piper
1dbde3af09
Filter: add support for double harmonic notches to more effectively target wider noise peaks
2020-04-28 09:32:02 +10:00
Willian Galvani
cf6f5502a4
SITL: Make Sub buoyancy a parameter
2020-04-27 12:48:52 -07:00
Randy Mackay
90db3d6317
AP_NavEKF2: minor comment fix
2020-04-27 19:15:43 +09:00
Peter Barker
830176f2f4
AP_Logger: remove unused SBFE
2020-04-27 16:16:50 +10:00
Peter Barker
26b88823f4
GCS_MAVLink: correct out-of-space-to-send call in HAVE_PAYLOAD_SPACE
2020-04-27 15:30:30 +10:00
Peter Barker
8b0b644c11
GCS_MAVLink: correct check for payload space for COMMAND_ACK
2020-04-27 15:30:30 +10:00
Peter Barker
668e0d0e65
GCS_MAVLink: check for empty replies queue first thing in send_ftp_replies
...
Will save us a little time on average
2020-04-27 15:30:30 +10:00
Andrew Tridgell
7320cd3174
HAL_ChibiOS: fixed assert in wait_pin()
2020-04-27 14:01:04 +10:00
Randy Mackay
1498e4c037
AC_AttitudeControl: remove unused macro
2020-04-27 09:39:46 +09:00
Randy Mackay
46ad31ad01
AC_Circle: add is_active
...
allows vehicle code to know if circle's yaw is valid
2020-04-27 09:39:46 +09:00
murata
a8af4b2937
AP_Beacon: Change the tab code to whitespace
2020-04-27 09:32:56 +09:00
murata
c713a984da
AP_WheelEncoder: Change the tab code to whitespace
2020-04-27 09:32:15 +09:00
murata
1a346e5b19
AP_VisualOdom: Change the tab code to whitespace
2020-04-27 09:30:00 +09:00
murata
1fdcab2b5a
AP_Parachute: Change the tab code to whitespace
2020-04-27 09:29:45 +09:00
murata
dec231348e
AP_OpticalFlow: Change the tab code to whitespace
2020-04-27 09:29:39 +09:00
murata
509d376c29
AP_Motors: Change the tab code to whitespace
2020-04-27 09:29:32 +09:00
murata
cd981695a6
AP_Mission: Change the tab code to whitespace
2020-04-27 09:29:25 +09:00
murata
28ccc167f7
AP_LandingGear: Change the tab code to whitespace
2020-04-27 09:29:18 +09:00
murata
03e658772a
AP_IRLock: Change the tab code to whitespace
2020-04-27 09:29:11 +09:00
murata
3967c46c1a
AP_Gripper: Change the tab code to whitespace
2020-04-27 09:29:02 +09:00
murata
a3278c73e3
AC_Sprayer: Change the tab code to whitespace
2020-04-27 09:28:51 +09:00
Ivannikov Kirill
3ab1b29397
AP_HAL_ChibiOS: error if system clock not 1mhz on 16 CH_CFG_ST_RESOLUTION. prevent variable overflow
...
if CH_CFG_ST_FREQUENCY not match 1000000U on 16 bit CH_CFG_ST_RESOLUTION
we try to multiply now *= 1000000U/CH_CFG_ST_FREQUENCY; it may overflow 16 bit value.
2020-04-26 19:58:54 +10:00
Peter Barker
f882bd0c3e
AP_Logger: remove unused UBY1/UBY2 messages
...
These appear to have been replaced with instance fields on the UBX1 and
UBX2 messages.
Also mark the Instance field on UBX1, UBX2 as an instance field.
2020-04-26 11:35:04 +10:00
Peter Barker
7e3c9c209e
AP_Logger: document GPSB and GPAB
2020-04-26 09:02:39 +10:00
Peter Barker
6b232ee515
AP_Baro: add documentation for ICBM message (ICM20789 diagnostics)
2020-04-26 09:02:39 +10:00
Randy Mackay
91a79543c9
AP_NavEKF3: getLLH fix when no GPS available
2020-04-24 20:29:18 +09:00
Randy Mackay
2919491298
AP_NavEKF2: getLLH fix when no GPS available
2020-04-24 20:29:18 +09:00
Andrew Tridgell
d9e2a644ea
HAL_ChibiOS: fixed Durandal buzzer in bootloader
...
need to pull low to avoid buzzer running in bootloader
2020-04-24 19:46:22 +10:00
bugobliterator
b94f089984
HAL_ChibiOS: improve throughput of slcan router
2020-04-24 19:39:18 +10:00
Randy Mackay
585c806618
AP_AHRS: add get_primary_core_index
2020-04-24 18:18:05 +09:00
Randy Mackay
6e93f54cff
AP_NavEKF2: handle external nav position resets
2020-04-24 18:16:52 +09:00
Randy Mackay
990313371d
AP_NavEKF2: minor comment fixes
2020-04-24 18:16:52 +09:00
Randy Mackay
43c9e13372
AP_NavEKF2: rename HGT_SOURCE_EV to HGT_SOURCE_EXTNAV
...
presumably EV stands for ExternalVision but we normally refer to this source as External Nav
2020-04-24 18:16:52 +09:00
Randy Mackay
014c889ceb
AP_NavEKF2: setAidingMode uses lastExtNavPassTime_ms
2020-04-24 18:16:52 +09:00
Randy Mackay
3b20623a31
AP_NavEKF2: remove unused ext nav elements
2020-04-24 18:16:52 +09:00
Peter Barker
3440a64b66
AP_NavEKF3: correct description on XKY0
2020-04-24 18:08:14 +10:00
Peter Barker
aa3165b71c
AP_NavEKF3: remove incorrect units from yaw esimtator LoggerMessage
2020-04-24 18:08:14 +10:00
Peter Barker
7dfc285f2a
AP_NavEKF2: remove incorrect units from yaw esimtator LoggerMessage
2020-04-24 18:08:14 +10:00
Andrew Tridgell
43ac58c63b
HAL_ChibiOS: added STM32CubeMX configs for H7 processor crystal varients
...
useful for checking clock config changes
2020-04-24 16:55:03 +10:00
Andrew Tridgell
db642717be
HAL_ChibiOS: fixed clock for FDCAN to be below 80MHz
...
we were running at 100MHz, which is out of spec
2020-04-24 16:55:03 +10:00
Andrew Tridgell
2c68ce1986
HAL_ChibiOS: fixed clock source for FDCAN
...
use selected source and add 80MHz limit, as per manual and latest STM32CubeMX tool
2020-04-24 16:55:03 +10:00
Tatsuya Yamaguchi
c4fe6fce1c
AP_Arming: make RC check message clearer
2020-04-24 10:52:33 +09:00
Andrew Tridgell
43ef8a192b
AP_NavEKF3: added missing log documentation for field C
2020-04-24 09:43:23 +10:00
Andrew Tridgell
d8c533e7ab
AP_NavEKF2: added missing log documentation for field C
2020-04-24 09:43:23 +10:00
Paul Riseborough
8f1b732d79
AP_NavEKF2: Add documentation for GSF logging
2020-04-24 09:43:23 +10:00
Paul Riseborough
1720c8de0f
AP_NavEKF3: Add documentation for GSF logging
2020-04-24 09:43:23 +10:00
Paul Riseborough
9bdb89474a
AP_NavEKF3: Use unique names for EKF2 logging
2020-04-24 09:43:23 +10:00
Paul Riseborough
49e4c799d3
AP_NavEKF2: Use unique names for EKF2 logging
2020-04-24 09:43:23 +10:00
Andrew Tridgell
080f555b16
AP_NavEKF3: remove unused isDeltaYaw param from resetQuatStateYawOnly
2020-04-24 09:43:23 +10:00
Andrew Tridgell
197d31e9cc
AP_NavEKF3: fixed in-flight yaw reset
2020-04-24 09:43:23 +10:00
Randy Mackay
86d221708c
AP_NavEKF3: more white space fixes
2020-04-24 09:43:23 +10:00
Randy Mackay
4d7e7a960a
AP_NavEKF2: more white space fixes
2020-04-24 09:43:23 +10:00
Randy Mackay
a43beaaa23
AP_NavEKF: GSF white space fixes
2020-04-24 09:43:23 +10:00
Randy Mackay
0fb233ed4b
AP_NavEKF2: minor comment fixes
2020-04-24 09:43:23 +10:00
Randy Mackay
c1ef894a30
AP_NavEKF3: getDataEKFGSF and getYawData pass by reference
2020-04-24 09:43:23 +10:00
Randy Mackay
a9cbd5aa29
AP_NavEKF2: getDataEKFGSF and getYawData pass by reference
2020-04-24 09:43:23 +10:00
Randy Mackay
1ee9f3a6de
AP_NavEKF: GSF getLogData and getYawData pass by reference
2020-04-24 09:43:23 +10:00
Randy Mackay
8a8271c2c7
AP_NavEKF3: minor format fixes
2020-04-24 09:43:23 +10:00
Randy Mackay
d61c517e76
AP_NavEKF2: minor format fix
2020-04-24 09:43:23 +10:00
Randy Mackay
ed3d072318
AP_NavEKF3: rename GSF_RUN_MASK, GSF_USE_MASK, GSF_RST_MAX
2020-04-24 09:43:23 +10:00
Randy Mackay
91ef87064a
AP_NavEKF2: rename GSF_RUN_MASK, GSF_USE_MASK, GSF_RST_MAX
2020-04-24 09:43:23 +10:00
Paul Riseborough
7ba39c844c
AP_NavEKF3: Split GSF yaw estimator processing
...
Separate prediction and correction steps are required to provide an up to
2020-04-24 09:43:23 +10:00
Paul Riseborough
abc821ad36
AP_NavEKF2: Split GSF yaw estimator processing
...
Separate prediction and correction steps are required to provide an up to date yaw estimate using IMU prediction before it may be required by SelectMagFusion() whilst still doing the velocity update after GPS data haw been pulled from the buffer by SelectVelPosFusion()
2020-04-24 09:43:23 +10:00
Andrew Tridgell
216935c1f2
AP_NavEKF3: fixed loss of GPS fusion
...
we must not do a storedGPS.recall unless we will be using the data,
otherwise we will lose GPS samples and risk stopping GPS fusion
2020-04-24 09:43:23 +10:00
Andrew Tridgell
c83e2d7c0e
AP_NavEKF2: fixed loss of GPS fusion
...
we must not do a storedGPS.recall unless we will be using the data,
otherwise we will lose GPS samples and risk stopping GPS fusion
2020-04-24 09:43:23 +10:00
Andrew Tridgell
6c3889b04f
AP_NavEKF2: fixed typos
2020-04-24 09:43:23 +10:00
Andrew Tridgell
3edbe81b1e
AP_NavEKF2: removed 2nd set of imuSampleTime_ms
2020-04-24 09:43:23 +10:00
Paul Riseborough
9f5e037015
AP_NavEKF3: Restore bug fix lost during rebase
2020-04-24 09:43:23 +10:00
Paul Riseborough
6952d83f00
AP_NavEKF2: Fix casting build error
2020-04-24 09:43:23 +10:00
Paul Riseborough
53df8a0238
AP_NavEKF3: Fix timer wrapping bug
2020-04-24 09:43:23 +10:00
Paul Riseborough
0d965d2a1c
AP_NavEKF2: Fix timer wrapping bugs
...
Also replaces tab characters
2020-04-24 09:43:23 +10:00
Paul Riseborough
12d639fc17
AP_NavEKF3: Misc changes arising from review
...
AP_NavEKF3: Fix typo in comment
AP_NavEKF3: Use uint32_t data type for msec timers
AP_NavEKF3: Misc msec timer fixes
Fix wrapping bug.
Use common timestamp.
AP_NavEKF3: Format fixes - remove tabs
AP_NavEKF3: Fix typing and wrap issue on time comparison
2020-04-24 09:43:23 +10:00
Paul Riseborough
51b62a34b9
AP_NavEKF: Use better type for array index
2020-04-24 09:43:23 +10:00