Andrew Tridgell
99d0f7a77d
HAL_ChibiOS: try to mount microSD after boot
2018-12-31 08:15:12 +11:00
Andrew Tridgell
cf85f25adc
HAL_ChibiOS: log stdout to USB on mindpx-v2
2018-12-31 08:15:08 +11:00
Andrew Tridgell
b03024dd34
HAL_ChibiOS: allow mount of microSD after boot
...
when disarmed, try to mount sd card every 3s
2018-12-31 08:15:05 +11:00
Andrew Tridgell
4d89a2757c
HAL_ChibiOS: fixed card inserted test for SDC
2018-12-31 08:15:02 +11:00
Andrew Tridgell
274dc0b9bd
AP_BoardConfig: added BRD_SD_SLOWDOWN parameter
...
allows for reduction in microSD clock speed
2018-12-31 08:14:57 +11:00
Andrew Tridgell
85c3ef229d
HAL_ChibiOS: support microSD slowdown
...
allow use of BRD_SD_SLOWDOWN to slow down clock on microSD
2018-12-31 08:14:53 +11:00
Andrew Tridgell
5a76aa9023
AP_HAL: added set_slowdown() to SPIDevice
...
used to slow down a SPI device below normal high speed operation
2018-12-31 08:14:50 +11:00
Andrew Tridgell
20f3a92e50
AP_HAL: added fs_init() to Util API
2018-12-31 08:14:47 +11:00
Andrew Tridgell
680caeb349
HAL_ChibiOS: switched fmuv5 firmware to ChibiOS IO fw
...
so users installing fmuv5 on a Pixhawk4 get the SBUS fixes
2018-12-31 08:14:15 +11:00
Andrew Tridgell
5cac150a91
HAL_ChibiOS: fixed safety switch and LEDs on PH4-mini
...
fixes #10127
2018-12-31 08:14:10 +11:00
Andrew Tridgell
fe0030947e
HAL_ChibiOS: detect stuck I2C bus and clear with SCL
...
This detects the I2C bus becoming stuck with SDA low after a timeout
and clears the bus by toggling SCL. Many thanks to @jhw84 for the
suggestion
2018-12-14 16:26:53 +11:00
Andrew Tridgell
067de3849c
HAL_ChibiOS: added palReadLineMode() function
...
used to change and restore line modes
2018-12-14 16:26:50 +11:00
Andrew Tridgell
645629baa2
AP_InertialSensor: fixed orientation of 2nd OmnibusF7V2 IMU
2018-12-12 16:28:42 +11:00
Andrew Tridgell
80b9cf09de
HAL_ChibiOS: setup PH4 for right voltage scaling
2018-12-09 07:42:59 +11:00
pierre-louis.k
a23c174e24
AP_RangeFinder: Remove range enforcement on out of range
2018-12-09 07:32:49 +11:00
pierre-louis.k
5e328e6276
AP_RangeFinder: Rework function structure in TeraRanger driver
2018-12-09 07:32:46 +11:00
pierre-louis.k
8198235af4
AP_RangeFinder: Rename function in TeraRanger driver
2018-12-09 07:32:44 +11:00
pierre-louis.k
4769055c4a
AP_RangeFinder: Give back semaphore on whoami error
2018-12-09 07:32:42 +11:00
pierre-louis.k
92791821c1
AP_RangeFinder: Clean TeraRanger driver
2018-12-09 07:32:39 +11:00
pierre-louis.k
cfd13d4e83
AP_RangeFinder: Add error codes rejection for TeraRanger sensors
2018-12-09 07:32:36 +11:00
Nghia Nguyen
21782835c4
AP_Rangefinder: Add support for Garmin LidarLite-V3HP
2018-12-09 07:31:44 +11:00
Randy Mackay
f408adf696
AP_RangeFinder: check I2C dev during detect
2018-12-09 07:31:32 +11:00
Randy Mackay
6699a44b1b
AP_RangeFinder: benewake tfmini always provide cm distances
...
a misunderstanding of the datasheet led to the mistaken idea that while in short-range-mode the distances were returned in millimeters
2018-12-09 07:30:46 +11:00
Randy Mackay
dfe32e7496
RangeFinder: benewake buffer uses uint8_t
2018-12-09 07:30:44 +11:00
Andrew Tridgell
bbfe147d50
HAL_ChibiOS: use ChibiOS IO firmware for Pixhawk4
2018-11-28 14:49:11 +11:00
Andrew Tridgell
50ad91f00f
HAL_ChibiOS: allow ROMFS to override a file
...
this allows a hwdef.dat with an include to change an embedded file
specified in the include
2018-11-28 09:28:54 +11:00
Randy Mackay
8969926765
AP_RangeFinder: fix benewake checksum check
2018-11-15 17:20:40 +11:00
Randy Mackay
bd96fe6f33
DataFlash: log rangefinder status in RFND msg
2018-11-15 17:20:37 +11:00
Randy Mackay
07bbf75a8b
AP_RangeFinder: benewake returns at least 12m or 22m when out-of-range
...
value logged and shown to the user will be at least 12m for TFmini or 22m for TF02 which ensure the user won't see the range drop even if they have configured a very short useable distance
2018-11-15 17:20:30 +11:00
Randy Mackay
16c4776475
AP_RangeFinder: benewake logic reordering
...
this should be a non-functional change
2018-11-15 17:20:27 +11:00
Randy Mackay
89f485f32e
AP_RangeFinder: benewake lidar returns max range + 1m when out-of-range
...
also returns out-of-range when signal is weak
2018-11-15 17:20:23 +11:00
Andrew Tridgell
ce1b0fe533
AP_RPM: set pin to input before attaching interrupt
...
this fixes input on AUX6 on CubeBlack
2018-11-15 17:19:50 +11:00
Andrew Tridgell
0669619cea
AP_RCProtocol: fixed DSM parser for 8 channels
...
this ensures we remember channels from the previous frame, avoiding a
bug with more than 7 channels
2018-11-15 17:19:43 +11:00
Randy Mackay
9485ab8eb8
AP_RangeFinder: Benewake driver discards distances over 327m
2018-11-10 14:04:07 +11:00
Peter Barker
c16a810e89
DataFlash: add sanity checks around EraseAll
2018-11-10 14:04:01 +11:00
Andrew Tridgell
1b4d680749
AP_BoardConfig: updated BRD_PWM_COUNT docs
...
This reflects the use of this parameter under ChibiOS
2018-11-06 09:07:53 +11:00
Andrew Tridgell
633ba4ef20
HAL_ChibiOS: updated to latest hw definitions from master
2018-11-06 08:44:07 +11:00
Andrew Tridgell
9f8ec3849c
AP_IOMCU: fixed a race in event trigger on startup
...
this fixes the issue with initial safety option state, and with
initial safety mask
2018-11-03 17:30:22 +11:00
Andrew Tridgell
2a743df9f1
HAL_ChibiOS: ensure RC in channels are bounded
2018-11-02 22:51:08 +11:00
Andrew Tridgell
0bb1821e8d
AP_Notify: fixed PixracerLED on NuttX
...
led_dim must be a positive number, and is not related to the led off
value
2018-10-10 12:55:45 +11:00
Andrew Tridgell
5e3c0964eb
AP_HAL: fixed PX4 LED polarity
2018-10-10 12:55:41 +11:00
Andrew Tridgell
39e1b3b89f
AP_Notify: init gpio state for LEDs
2018-10-10 12:55:39 +11:00
Andrew Tridgell
0f949ba8b2
AP_Notify: fixed px4-v4 to use pixracer LED driver
2018-10-10 12:55:35 +11:00
Andrew Tridgell
ea52df3da4
HAL_ChibiOS: fixed LED mapping for fmuv4
2018-10-10 12:55:29 +11:00
Randy Mackay
e8f0fe770f
AP_HAL_ChibiOS: fix safety switch option handling
2018-10-04 16:14:08 +10:00
Andrew Tridgell
bbce83b8b2
HAL_ChibiOS: fixed a race in DShot code
...
this fixes a problem found by Daniel Met with the copter 3.6 beta
release
2018-10-02 18:49:34 +10:00
Andrew Tridgell
32c5e6bced
AP_Compass: fixed handling of duplication rotations
...
we have some rotations that are duplicated, such as ROLL_180_YAW_90
and PITCH_180_YAW_270. This copes with those in the auto-orientation
code
2018-09-19 13:53:37 +10:00
Andrew Tridgell
e2467a19a5
HAL_ChibiOS: fixed RSSI voltage from IOMCU
2018-09-15 15:45:46 +10:00
Leonard Hall
de45a3d3e5
AC_Loiter: reduce twitch on init
2018-09-15 10:26:23 +10:00
Leonard Hall
8830b2a764
AC_PosControl: reduce glitch on init
2018-09-15 10:25:59 +10:00
Leonard Hall
616ab50938
AC_PID_2D: add reset for filter and D term
2018-09-15 10:24:53 +10:00
Andrew Tridgell
bf21a0153c
AC_AttitudeControl: Add missing variable initalisations
...
# Conflicts:
# libraries/AC_AttitudeControl/AC_AttitudeControl.cpp
2018-09-15 10:09:05 +10:00
Leonard Hall
88ded7ee67
AC_PID: Fix D term initialisation
2018-09-15 10:08:41 +10:00
Andrew Tridgell
6c17dcd71a
AP_Compass: default COMPASS_AUTO_ROT to 2 for all boards
...
we're confident of this code now
2018-09-14 15:16:13 +10:00
Andrew Tridgell
042265b4c4
AP_AHRS: fixed synthetic airspeed to be along +ve X axis
...
this prevents us from thinking we have +ve airspeed when flying
backwards with no pitot tube
2018-09-14 10:51:18 +10:00
Andrew Tridgell
820b2386c0
APM_Control: halve the default pitch D term for planes
...
this is based on feedback from the 3.9.1 release
2018-09-14 07:32:46 +10:00
Andrew Tridgell
cdfef0bbeb
HAL_ChibiOS: implement set_failsafe_pwm()
2018-09-13 08:16:10 +10:00
Andrew Tridgell
9db5d45d07
SRV_Channel: handle reversed channels in limit PWMs
2018-09-13 08:16:07 +10:00
Andrew Tridgell
098cf8dcb0
AP_IOMCU: implement failsafe PWM
2018-09-13 08:16:04 +10:00
Andrew Tridgell
239c18792a
AP_AHRS: fixed dead-reckoning groundspeed vector
...
this is essential for RTL in planes on GPS loss
2018-09-12 16:26:36 +10:00
Leonard Hall
69138fea36
AC_PosControl: Fix divide by zero check in limit_vector_length
2018-09-12 14:15:13 +10:00
Leonard Hall
3fd270ff2a
AC_AttitudeControl: Add minimum angle limit for get_althold_lean_angle_max
2018-09-12 14:15:09 +10:00
Andrew Tridgell
54c5b6e404
HAL_ChibiOS: fixed ADC bug
...
this caused bad analog readings when the number of channels being read
was more than the number of hw channels
thanks to @vierfuffzig for reporting!
2018-09-11 20:29:48 +10:00
s0up
b53dfbc3d2
HAL_ChibiOS: Add speedybee hardware definition
2018-09-07 08:34:40 +10:00
Andrew Tridgell
536923585c
AP_IOMCU: cope with IOMCU reset in flight
...
this copes with IOMCU reset when we have safety forced off
2018-09-04 15:24:33 +10:00
Andrew Tridgell
e1bab160f7
AP_Notify: fixed oled probe on first bus
...
Thanks to Erwin Quilloy for helping to track this down
2018-09-03 18:06:47 +10:00
Andrew Tridgell
7897fbc3c1
HAL_ChibiOS: use a larger TX buffer on USB
...
this is needed for fast log download on vehicles with 50Hz main loop
2018-08-28 08:49:37 +10:00
Andrew Tridgell
3ae4cfbf22
HAL_ChibiOS: enable terrain on Pixracer, minpx-v2 and mini-pix
2018-08-24 19:44:08 +10:00
Michael du Breuil
3292f049e7
SRV_Channel: Remove the trim_all interface, constrain failsafes to non motor outputs
2018-08-23 12:56:47 +10:00
Andrew Tridgell
860310ba7c
AP_OSD: raise thread stack size to 1024
...
based on testing in SITL
2018-08-20 13:49:38 +10:00
Andrew Tridgell
1087da3d64
AP_TECS: set default pitch max to 15
2018-08-17 17:02:16 +10:00
Andrew Tridgell
cb37f112cd
AP_L1_Control: lower default L1 period
2018-08-17 17:02:06 +10:00
Andrew Tridgell
6fe07e5702
APM_Control: raised default PID gains for roll/pitch
2018-08-17 17:01:56 +10:00
Hwurzburg
5ba6f5a3a2
AP_OSD: Adding efficiency and climb efficiency
...
and new font characters
2018-08-17 16:34:23 +10:00
Peter Barker
50a53ae28a
DataFlash: force messagewriters to completion
...
Setting a dataflash-file buffer size of less than or equal to 2kiB would
cause the startup-messagewriter to never push any messages other than
FMT out to the logs.
This is a combination of the return values of
critical_message_reserved_space and
non_messagewriter_message_reserved_space
This patch forces the startup messages out to the logs by ignoring the
space constraints every 100ms
2018-08-16 17:41:47 +10:00
Andrew Tridgell
765e00faf1
HAL_ChibiOS: reduce memory used by serial buffers
...
this does not appear to affect log download speed. It saves about 27k
of memory
2018-08-16 17:01:01 +10:00
Andrew Tridgell
e26028f572
AP_Stats: make singleton and add flighttime accessor
2018-08-16 16:54:31 +10:00
Hwurzburg
ea3e523d28
AP_OSD: add flytime item
2018-08-16 16:54:21 +10:00
Hwurzburg
c4c8e18f0c
AP_OSD: Adding flight distance and summary panels for OSD
2018-08-16 16:54:19 +10:00
Alexander Malishev
5502bba9b4
AP_OSD: add waypoint and xtrack_error items
2018-08-16 16:54:17 +10:00
vierfuffzig
f9ed94ed97
AP_OSD: add hdop display
2018-08-16 16:54:15 +10:00
Randy Mackay
a158d8ec5f
AP_OSD: fix compiler warnings
2018-08-16 16:54:12 +10:00
vierfuffzig
b6bdcf594a
AP_OSD: added temperature item
2018-08-16 16:54:10 +10:00
Alexander Malishev
0da7a7cbda
HAL_ChibiOS: restore default dataflash buffer size
...
This fix log corruption in copter
2018-08-15 10:16:16 +10:00
Andrew Tridgell
d183f19cad
DataFlash: removed "no io thread heartbeat" msg
2018-08-15 09:52:30 +10:00
Andrew Tridgell
e0ba1279fb
AP_RSSI: allow override of RSSI pin
2018-08-15 09:51:50 +10:00
Peter Barker
8e4ee1ffa9
AP_Notify: make LED blink at constant rate in Rover
2018-08-15 09:46:23 +10:00
Andrew Tridgell
a9d10fc78f
AP_Notify: new LED drivers
...
update to current master
2018-08-08 07:53:11 +10:00
Andrew Tridgell
f1fb1fd3fe
AP_ROMFS: fixed error handling in tinflate
...
coverity CID308327
2018-08-07 13:25:29 +10:00
Andrew Tridgell
9c4e95a982
AP_RCProtocol: Fix out of bounds write, CID 308323 and 308333
2018-08-07 13:24:34 +10:00
Peter Barker
996278e5b6
RC_Channels: zero all channels before populating
...
Fix for CID 308365
2018-08-07 09:42:13 +10:00
Andrew Tridgell
ea203520fa
AP_Stats: use set_and_save_ifchanged()
...
if the board has no GPS then the values usually don't change
2018-08-06 21:45:20 +10:00
Andrew Tridgell
4f6a20ce9d
HAL_ChibiOS: updated F745 and OmnibusNanoV6
2018-08-06 19:28:13 +10:00
Andrew Tridgell
6e6a47c0fd
HAL_ChibiOS: added a DMA reserve heap
...
this ensures we keep some DMA-capable memory aside for when it is
needed
2018-08-06 16:01:36 +10:00
Andrew Tridgell
4554aee057
HAL_ChibiOS: raise timer thread priority
...
needs to be above main for guaranteed DShot and oneshot output periods
2018-08-06 11:41:11 +10:00
Andrew Tridgell
98104302a8
HAL_ChibiOS: fixed timing for older ChibiOS version
2018-08-06 11:38:58 +10:00
Andrew Tridgell
7f58c0a63d
HAL_PX4: updated to new tonealarm system
2018-08-06 11:33:48 +10:00
Andrew Tridgell
d9435261ce
HAL_Linux: updated to new tonealarm system
2018-08-06 11:33:46 +10:00
Andrew Tridgell
40e8453967
HAL_ChibiOS: updated to new tonealarm system
2018-08-06 11:33:43 +10:00
Andrew Tridgell
f487923851
AP_HAL: updated to new tonealarm system
2018-08-06 11:33:37 +10:00
Andrew Tridgell
07e1e8e753
AP_Notify: updated to new tonealarm system
2018-08-06 11:33:27 +10:00
Andrew Tridgell
55a129276d
AP_BLHeli: pass motor mask to serial_setup_output()
2018-08-06 11:31:45 +10:00
Andrew Tridgell
fce284a87d
AP_BLHeli: improved reliability of pass-thru support
...
this uses a connection cache to prevent re-connecting to an ESC when
not needed, and allows for pass-thru comms on any port, using
SERVO_BLH_PORT parameter
2018-08-06 11:31:42 +10:00
Andrew Tridgell
fa856f2191
HAL_ChibiOS: fixed dshot bad frames
...
adding a pre-bit on the DMAR, and ensuring that all groups are setup
for DMA together fixes the remaining bad frames reports in BLHeli32
2018-08-06 11:31:40 +10:00
Andrew Tridgell
d832d4d311
HAL_ChibiOS: set min dshot separation to 100usec
...
this fixes a problem with BLHeli32 not recognising dshot
2018-08-06 11:31:39 +10:00
Andrew Tridgell
fdc8dca00f
HAL_ChibiOS: fixed timeout of serial read bytes
...
this allows for fast timeout of serial read bytes in BLHeli pass-thru
2018-08-06 11:31:36 +10:00
Andrew Tridgell
3618e25059
AP_HAL: added chanmask to serial_setup_output()
2018-08-06 11:31:34 +10:00
Andrew Tridgell
d58ad47b1c
AP_Compass: clear DEV_ID for undetected compasses
...
this prevents user confusion with the number of compasses detected
2018-07-30 18:12:42 +10:00
Andrew Tridgell
a5c0e5c4c1
HAL_ChibiOS: probe all external compasses on mini-pix
2018-07-30 18:11:42 +10:00
Andrew Tridgell
fec7a76101
AP_Compass: allow override of QMC5883L orientation
2018-07-30 18:11:38 +10:00
Andrew Tridgell
033061121a
HAL_ChibiOS: added RC input for OMNIBUSF7V2
2018-07-30 10:49:24 +10:00
Timothy Knab
e02950b06b
HAL_ChibiOS: Updated OMNIBUSF7V2
...
Compasses on the I2C bus are now detected properly and GPS on UART3 works.
2018-07-30 10:49:22 +10:00
Andrew Tridgell
40a0decbc2
HAL_ChibiOS: override COMPASS_AUTO_ROT on several boards
2018-07-28 15:36:37 +10:00
Andrew Tridgell
cdae1606ce
AP_Compass: allow override of COMPASS_AUTO_ROT
2018-07-28 15:36:10 +10:00
Andrew Tridgell
7cb169d0b9
AP_IOMCU: fixed setting of rate masks
...
this affects layouts which set a subset of channels on a timer
2018-07-28 15:26:35 +10:00
Andrew Tridgell
e75dfd793b
HAL_ChibiOS: only set freq on valid IO channels
2018-07-28 15:26:33 +10:00
Andrew Tridgell
9667e1766f
HAL_ChibiOS: added Pixhawk1 build target
...
this is more obvious to users than fmuv3
2018-07-27 10:04:09 +10:00
Andrew Tridgell
3c95a74438
AP_RangeFinder: fixed VL53L0X semaphore usage
2018-07-27 10:04:02 +10:00
Alexander Malishev
06434a48c3
HAL_ChibiOS: fix DTCM size in stm32f745 mcu
2018-07-26 17:53:09 +10:00
Andrew Tridgell
c6ac1bf95a
AP_Arming: only check trim on valid channel count
2018-07-24 20:02:01 +10:00
E Thomas
e5659d7d47
Added support for PX4V1 UARTD in HAL_PX4_Class
2018-07-19 12:39:58 +10:00
Andrew Tridgell
154302cb6d
HAL_ChibiOS: rename f4by-ch to F4BY
2018-07-19 12:39:58 +10:00
Alexander Malishev
f2ac91ca24
AP_Bootloader: add f4by bootloader
2018-07-19 12:39:57 +10:00
Michael du Breuil
f842618d0f
RC_Channel: Allow a RC_OVERRIDE_TIMEOUT of -1 to use the overrides
...
forever
2018-07-19 07:54:11 +10:00
Jonathan Challinger
d3c31f17cc
AP_IOMCU: fix radio failsafe handling
2018-07-19 06:53:01 +10:00
Andrew Tridgell
5083f1957d
AP_Compass: make COMPASS_AUTO_ROT=1 for plane stable release
2018-07-18 20:34:52 +10:00
Andrew Tridgell
3a8ef21d89
HAL_F4Light: renamed bootloader
2018-07-18 17:49:54 +10:00
Andrew Tridgell
75c5fda222
AP_SerialManager: make console do mavlink2 by default
...
this is low impact as it doesn't affect radios that may not do mavlink2
2018-07-18 16:21:02 +10:00
Randy Mackay
465564ba99
AP_Follow: fix initialisation of offsets
2018-07-18 15:11:09 +09:00
Randy Mackay
0834e7ae9b
AP_Follow: update FOLL log column names
...
VelN is easier to understand than VelX
Also minor formatting fix
2018-07-18 15:11:09 +09:00
Randy Mackay
f53bfdbd38
AP_Follow: fix reporting to GCS
2018-07-18 15:11:09 +09:00
Andrew Tridgell
027beb0dc1
AP_Compass: rename COMPASS_ROT_AUTO to COMPASS_AUTO_ROT
...
request from Randy
2018-07-18 16:07:19 +10:00
Andrew Tridgell
15d2daabf0
AP_Compass: don't do auto-orientation if using ROTATION_CUSTOM
2018-07-18 16:07:19 +10:00
Andrew Tridgell
a73492b40a
AP_Compass: fixed newline in statustext
2018-07-18 16:07:19 +10:00
Andrew Tridgell
196ba0e858
AP_Compass: make COMPASS_ROT_AUTO take 3 values
...
0 for disabled, 1 for check only, 2 for check and fix
2018-07-18 16:07:19 +10:00
Andrew Tridgell
d15a4ad92a
AP_Compass: improved error reporting, check all compasses
...
this uses extensions to the MAG_CAL_REPORT message to convey failures
of orientation checking.
It also checks all compasses, external or internal. It only tries to
fix the orientation if it is external
2018-07-18 16:07:19 +10:00
Andrew Tridgell
a5749c1869
AP_Compass: allow diagonals and off-diagonals to be calculated on rot change
...
this re-runs the fit on change in orientation
2018-07-18 16:07:19 +10:00
Andrew Tridgell
b4c7d1925e
AP_Compass: allow for runtime changes to SIM_MAG_DIA_?
...
this makes for easier testing
2018-07-18 16:07:19 +10:00
Andrew Tridgell
3c2e8baee2
AP_Compass: improved orientation reporting
...
and fail magcal if we fail orientation detection for an external
compass
2018-07-18 16:07:19 +10:00
Andrew Tridgell
8b0f40b402
AP_Compass: implement automatic compass orientation
...
this automatically determines the compass orientation when doing a 3D
compass calibration, if COMPASS_ROT_AUTO is enabled.
2018-07-18 16:07:19 +10:00
Andrew Tridgell
4acc06df87
AP_Compass: support diagonal, off-diagonal and rotation in SITL
...
compass
2018-07-18 16:07:19 +10:00
Andrew Tridgell
8170fbcf80
AP_Math: added a comment on conventions for to_euler()
2018-07-18 16:07:19 +10:00
Andrew Tridgell
d1f67f6ded
SITL: added diagonal, off-diagonal and orientation of SITL compass
2018-07-18 16:07:19 +10:00
Andrew Tridgell
1056e64419
AP_AHRS: added get_DCM_rotation_body_to_ned()
...
this specifically asks for the DCM attitude, which will be used for
the comass calibration to help determine compass orientation
2018-07-18 16:07:19 +10:00
Andrew Tridgell
5b0b9ef962
AP_AHRS: don't do yaw correction in DCM while calibrating compass
...
this avoids applying bad compass yaw, and helps the compass
calibration code
2018-07-18 16:07:19 +10:00
Andrew Tridgell
caa553e727
HAL_ChibiOS: fixed internal i2c mask for Pixracer
2018-07-18 12:04:01 +10:00
Andrew Tridgell
59aab9987e
HAL_ChibiOS: account for I2C base in compass masks
2018-07-18 12:04:01 +10:00
Randy Mackay
3d72022f6e
EKF: modify ALT_SOURCE param description
...
We regularly find users changing the ALT_SOURCE to 1 (range finder) when trying to implement terrain following which is not the correct way to do it
2018-07-18 08:31:09 +09:00
Patrick José Pereira
2ba6f64281
SITL: Remove unused variables
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-07-17 20:25:22 +09:00
Michael du Breuil
e4a8e9deb1
AP_RCMapper: Mark sub specific parameters as sub only for docs
2018-07-17 12:08:27 +10:00
Michael du Breuil
fc44f693e5
AP_Airspeed: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
65df5c3ff6
AP_AHRS: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
08ef60d436
AP_ADC: Remove unused AP_ADC class
2018-07-17 09:29:50 +10:00
Michael du Breuil
1e7a06ef6b
AP_Mount: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
a5b8279ea4
AP_Motors: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
dddb1e6a58
AP_Module: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
1efad07a84
AP_InertialSensor: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
2e135f4fc4
AP_HAL_Linux: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
fcb1c4cdfd
AP_GPS: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
875e03bdd9
AP_BattMonitor: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
57f3e9cd88
AP_Airspeed: Remove unused ADC include
2018-07-17 09:29:50 +10:00
bnsgeyer
0f75866042
AP_Motors: Tradheli-corrected get_motor_mask method
2018-07-16 12:41:16 +10:00
bnsgeyer
dec8c5de77
AP_Motors: convert heli code to use SRV_Channels
...
this converts the heli code to use the SRV_Channels output
functions. It does not change behaviour, but removes the last vehicle
type that did its own servo output calculations. This change also
fixed servo initialization conflicts.
Note that this also allows helis to be setup with more than one
channel for a particular output (eg. two separate channels for tail
servo if they are wanted). This isn't likely to be used much, but does
make heli consistent with other vehicle types
2018-07-16 12:41:16 +10:00
bnsgeyer
c3d4b792ad
SRV_Channel: fixes channel numbering for channel already assigned message
2018-07-16 12:41:16 +10:00
bnsgeyer
73df3e0af2
SRV_Channel: modified set_output_pwm_trimmed for reverse property
...
Modified function to account for servo reverse property
2018-07-16 12:41:16 +10:00
Andrew Tridgell
e94177e469
SRV_Channel: added function based set_output_min_max
...
this is for a conversion of AP_Motors heli code to servo functions
2018-07-16 12:41:16 +10:00
Alexander Malishev
4342dae065
HAL_ChibiOS: define BOARD_RSSI_ANA_PIN to simpify tuning
2018-07-16 08:29:49 +10:00
Alexander Malishev
e04f438ce3
HAL_ChibiOS: fix analog pins on MatekF405
2018-07-16 08:29:49 +10:00
Alexander Malishev
89f7d652e0
HAL_ChibiOS: removed wrong led pin
2018-07-16 08:29:49 +10:00
Alexander Malishev
13b56d5870
AP_OSD: improve AHI for large roll angles
2018-07-14 18:08:36 +10:00
Andrew Tridgell
3c0ed01fd0
AP_Compass: prevent use of null dev_icm device in ICM20948 driver
2018-07-14 17:51:50 +10:00
Andrew Tridgell
ed09467f06
AP_BoardConfig: removed verbose SPI probe debug messages
...
these are just confusing for users
2018-07-14 17:51:50 +10:00
Andrew Tridgell
71647cfc6b
AP_Compass: removed HMC5843 compass probe error
2018-07-14 17:51:50 +10:00
Andrew Tridgell
2a62938fb1
AP_BoardConfig: enable get_board_type() on all boards
...
return BOARD_TYPE_UNKNOWN for boards that don't use board detection
2018-07-14 17:51:50 +10:00
Andrew Tridgell
9ab55f6838
HAL_ChibiOS: probe for external compasses on several boards
...
boards that have no internal compass will now probe for all external
compass types
2018-07-14 17:51:50 +10:00
Andrew Tridgell
ff6d639ed7
AP_Compass: separated out external compass probing
...
this allows any ChibiOS board to specify that it wants to probe for
all possible external compass types with a define in hwdef.dat
It also implements duplicate compass detection for all i2c drivers,
ensuring we can't get a load of a driver on the same bus/address twice
2018-07-14 17:51:50 +10:00
Andrew Tridgell
476bddd9a3
HAL_ChibiOS: use HAL_I2C_INTERNAL_MASK
2018-07-14 17:51:50 +10:00
Andrew Tridgell
0fc6ca22f7
AP_HAL: setup HAL_I2C_INTERNAL_MASK for ChibiOS
2018-07-14 17:51:50 +10:00
Andrew Tridgell
63d385ffb1
AP_AHRS: fixed arming with no compass in plane
...
allow arming if the GPS quality is good, the yaw alignment and
position will fix itself once the vehicle starts moving
2018-07-14 17:49:52 +10:00
Andrew Tridgell
ac40a20c02
AP_NavEKF3: fill in gps_quality_good flag
2018-07-14 17:49:52 +10:00
Andrew Tridgell
3d31773fb4
AP_NavEKF2: fill in gps_quality_good flag
2018-07-14 17:49:52 +10:00
Andrew Tridgell
103d1aea41
AP_NavEKF: added gps_quality_good EKF flag
2018-07-14 17:49:52 +10:00
heitiane
2c24bac79e
BARO_generic: add Dummy GCS to meet the requirement of AP_Baro::calibrate().
2018-07-14 10:32:51 +10:00
vierfuffzig
78386ed080
AP_OSD: added OSD_MSG_TIME parameter
2018-07-14 09:07:42 +10:00
Andrew Tridgell
7eabee04a3
HAL_ChibiOS: enable OSD on KakuteF7
2018-07-13 14:53:53 +10:00
Andrew Tridgell
b96f24c80e
HAL_ChibiOS: added KakuteF7
...
thanks to Huibean for the fixes!
2018-07-13 14:53:53 +10:00
Andrew Tridgell
dc54babe41
SITL: setup more defaults with flightaxis
...
with copters now you only need to set FRAME_CLASS to fly
2018-07-13 10:19:01 +10:00
Andrew Tridgell
7ec6522b9d
AP_Compass: default to right mag offsets for SITL
2018-07-13 10:19:01 +10:00
Andrew Tridgell
2fe2c8fbda
AP_Compass: initialise compass IDs saved in SITL
...
this ensures we don't get uncalibrates compasses in SITL
2018-07-13 10:19:01 +10:00
Andrew Tridgell
5f8b57ba19
AP_InertialSensor: added SITL device IDs
2018-07-13 10:19:01 +10:00
Andrew Tridgell
823c4523b3
AP_Compass: added SITL device IDs
2018-07-13 10:19:01 +10:00
Andrew Tridgell
464dc9102f
AP_HAL: added device types for SITL
...
and fixed a stack init bug for make_bus_id
2018-07-13 10:19:01 +10:00
Andrew Tridgell
f2d602690e
HAL_ChibiOS: fixed build error with some compilers
2018-07-13 08:50:46 +10:00
Andrew Tridgell
83f38d536e
HAL_ChibiOS: fixed flow control auto-detect without DMA
...
this fixes automatic flow control detection when we are not using DMA
for TX
2018-07-13 07:34:30 +10:00
Andrew Tridgell
0201893f7c
HAL_ChibiOS: fixed peripheral power-up on fmuv5
...
we need to do the powerup before we initialise the UARTs
2018-07-13 07:34:30 +10:00
Andrew Tridgell
409e857f6b
HAL_ChibiOS: use pullup on CTS line
...
this makes life less difficult for SiK radios which go into bootloader
mode on low CTS
2018-07-13 07:34:30 +10:00
Andrew Tridgell
11e09a846c
HAL_ChibiOS: setup RTS pins as pullup
...
this prevents RTS pins from keeping SiK radios in bootloader mode on
peripheral powerup
2018-07-13 07:34:30 +10:00
Andrew Tridgell
63a0a4979c
HAL_ChibiOS: delay peripheral power on for fmuv5
...
this should prevent SiK radios staying in the bootloader
2018-07-13 07:34:30 +10:00
Michael du Breuil
0aaa029f9b
AP_HAL_Linux: GPIO_RPi: Fix UB when reading a pin
...
You can't shift by more then the word width
2018-07-11 23:09:52 -07:00
Michael du Breuil
d06a82af1d
AP_HAL_VRBrain: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00