Commit Graph

18331 Commits

Author SHA1 Message Date
Andrew Tridgell
d824cf0a40 HAL_ChibiOS: default the battery2 pins correctly for CubeBlack 2018-11-13 14:33:17 +11:00
Peter Barker
e5fa728a28 AP_OpticalFlow: fix example for not taking ahrs in constructor 2018-11-13 10:40:23 +11:00
Peter Barker
3eee4e917a DataFlash: OpticalFlow takes care of its own logging 2018-11-13 10:40:23 +11:00
Peter Barker
ac83765487 OpticalFlow: take care of own logging 2018-11-13 10:40:23 +11:00
Peter Barker
e88358ccc6 AP_OpticalFlow: use AHRS singleton 2018-11-13 10:40:23 +11:00
Peter Barker
38fdcb02a4 GCS_MAVLINK: move sending of optical flow status up to base class 2018-11-13 10:40:23 +11:00
Peter Barker
ebf038eb57 AP_OpticalFlow: add singleton 2018-11-13 10:40:23 +11:00
Michael du Breuil
e56f12b68e AP_Arming: Add servo voltage check, paramertise the Vcc check 2018-11-12 23:29:04 +00:00
Michael du Breuil
6a41f0c86a AP_BoardConfig: Add minimum board and servo voltage parameters 2018-11-12 23:29:04 +00:00
Michael du Breuil
be8d4e6c9d AP_HAL_ChibiOS: Assume that IOMCU implies servo voltage monitoring 2018-11-12 23:29:04 +00:00
Michael du Breuil
9a9e715af8 AP_HAL: Define HAL_HAVE_SERVO_VOLTAGE 2018-11-12 23:29:04 +00:00
Michael du Breuil
a5115930dd AP_HAL_ChibiOS: Fix board voltage checks being disabled 2018-11-12 23:29:04 +00:00
Andrew Tridgell
33b26da2eb AP_AHRS: small cleanups
always pass the pitch trim, and removed unusued variables
2018-11-12 17:05:04 +11:00
IamPete1
e1cdf9fe0a AP_AHRS: add trimed view 2018-11-12 17:05:04 +11:00
Randy Mackay
0d9c1847df AP_TempCalibration: fix parameter descriptions 2018-11-12 11:17:39 +09:00
auturgy
d2cb4db191 AP_OpticalFlow: add defined(HAL_HAVE_PIXARTFLOW_SPI)
This addition will build in support for the Pixart pmw3901 if it is defined in the hwdef.dat for a board
2018-11-12 06:35:59 +11:00
Andrew Tridgell
8f709b7a34 AP_Mount: fixed build warning 2018-11-11 07:08:59 +11:00
Andrew Tridgell
f48c3da497 HAL_ChibiOS: fixed undefine typo 2018-11-11 07:07:52 +11:00
vierfuffzig
f8d43bc96b HAL_ChibiOs: add default support for board versions with ICM20602 2018-11-11 07:07:52 +11:00
hoangthien94
0d964a5502 AP_ADSB: Fix error snprintf output truncated
AP_ADSB: Change octal squawk code mask to 0x1FFF
2018-11-10 12:11:28 +00:00
Andrew Tridgell
ac920633af AP_LandingGear: use SERVO_MIN/MAX/REVERSED for landing gear 2018-11-10 21:24:19 +11:00
Andrew Tridgell
486ecd6148 AP_LandingGear: added height based triggering
very useful for manual takeoffs and landings
2018-11-10 21:24:19 +11:00
Randy Mackay
35be68348d AP_RangeFinder: benewake logic reordering
this should be a non-functional change
2018-11-10 12:20:27 +09:00
Randy Mackay
a09cd8411d AP_RangeFinder: benewake lidar returns max range + 1m when out-of-range
also returns out-of-range when signal is weak
2018-11-10 12:20:27 +09:00
Andrew Tridgell
24ba876e88 HAL_ChibiOS: don't use STDOUT_SERIAL on mindpx-v2 or cube-red
better to use USB, giving us one more uart
2018-11-10 14:12:42 +11:00
auturgy
575d03796c AP_HAL_ChibiOS: fix typo in fmuv5 hwdef [NFC]
header comment fixed from fmuv3 to fmuv5
2018-11-09 18:58:27 +09:00
Andrew Tridgell
2bab144eca AP_LandingGear: make singleton a pointer
this allows common code for rover and sub
2018-11-09 14:35:14 +11:00
Andrew Tridgell
7fad72dacf RC_Channel: moved LANDING_GEAR to common library 2018-11-09 14:35:14 +11:00
Andrew Tridgell
fa1fc004bf AP_LandingGear: fixed pullup/pulldown and doc strings 2018-11-09 14:35:14 +11:00
Andrew Tridgell
eac7c28005 RC_Channel: allow landing gear control for plane 2018-11-09 14:35:14 +11:00
Eugene Shamaev
fa6afe145f AP_LandingGear: weight on wheels, debounce, singleton 2018-11-09 14:35:14 +11:00
Eugene Shamaev
3794f9d51e HAL_SITL: SITL weight on wheels 2018-11-09 14:35:14 +11:00
Andrew Tridgell
0536a3c4c6 SITL: added SIM_WOW_PIN 2018-11-09 14:35:14 +11:00
Arjun Vinod
ed8dff8af7 AP_BattMonitor: fixed SAFETY_STATUS register 2018-11-09 09:44:24 +09:00
vierfuffzig
47463e8159 AP_OSD: set default type for boards with onboard OSD 2018-11-09 08:12:51 +11:00
vierfuffzig
d204939cb2 AP_HAL_ChibiOS: set default type for boards with onboard OSD 2018-11-09 08:12:51 +11:00
Peter Barker
c2b334eaad AP_RangeFinder: PWM: take an average of any readings accumulated in irq 2018-11-08 21:03:35 +11:00
Peter Barker
1a853f6f82 AP_Terrain: use ahrs singleton 2018-11-08 20:59:45 +11:00
Andrew Tridgell
137253ac2c AP_RCProtocol: fixed SBUS failsafe
thanks to Nate for spotting this
2018-11-08 20:55:46 +11:00
Andrew Tridgell
30d5ff2d3d AP_WheelEncoder: set pin to input before attaching interrupt
this fixes input on AUX6 on CubeBlack
2018-11-08 18:25:14 +11:00
Andrew Tridgell
0102016e54 AP_RSSI: set pin to input before attaching interrupt
this fixes input on AUX6 on CubeBlack
2018-11-08 18:25:14 +11:00
Andrew Tridgell
e862c349e8 AP_RPM: set pin to input before attaching interrupt
this fixes input on AUX6 on CubeBlack
2018-11-08 18:25:14 +11:00
Andrew Tridgell
76a2cd1540 AP_RangeFinder: set pin to input before attaching interrupt
this fixes input on AUX6 on CubeBlack
2018-11-08 18:25:14 +11:00
Peter Barker
a9b94ae13d AP_Mission: use ahrs singleton 2018-11-08 10:01:16 +09:00
Peter Barker
dde3deff98 AP_WheelEncoder: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
34008ad29c AP_RPM: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
327ccc8961 AP_OpticalFlow: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
64eb8f0986 AP_Beacon: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker
ee07789383 AP_Baro: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker
1056321457 Filter: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker
bc212073a2 DataFlash: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker
011c93f38e AP_InertialSensor: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker
1bef78dda5 AP_InertialNav: add override keywords 2018-11-08 11:30:12 +11:00
Peter Barker
82df40f464 SITL: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
94e0485bdf AP_RangeFinder: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
e0ab431ebd AP_Proximity: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
344d6b938c AP_Notify: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
be53782ef1 AP_Mount: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
f2070da335 AP_Motors: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
2993ffb588 AP_HAL_VRBRAIN: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker
fdfe5ac75a AP_HAL_SITL: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
6c152acedc AP_HAL_PX4: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker
d4601862bc AP_HAL_Empty: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
17f643719a AP_HAL_ChibiOS: add override keyword in many places 2018-11-08 11:30:12 +11:00
Peter Barker
c9f31f7e0a AP_Gripper: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
fd888727b8 AP_GPS: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
e7a981d2c3 AP_Compass: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
8e30417c38 AP_BattMonitor: add override keyword where required 2018-11-08 11:30:12 +11:00
Peter Barker
7e3ca19308 AC_AttitudeControl: add override keyword in many places 2018-11-08 11:30:12 +11:00
Michael du Breuil
48610ea0a0 AP_Math: Remove an unneeded safe_sqrtf, leverage is_zero 2018-11-07 10:43:28 +11:00
Peter Barker
6e84a31613 AP_RangeFinder: use new ChibiOS driver if user attempts to use PX4 PWM driver 2018-11-07 08:59:19 +11:00
Peter Barker
186ce80827 AP_RangeFinder: add pwm backend 2018-11-07 08:59:19 +11:00
Andrew Tridgell
a0c57979ab HAL_ChibiOS: use opendrain outputs for LEDs on iomcu 2018-11-07 07:35:45 +11:00
Andrew Tridgell
8e7695e5f0 AP_IOMCU: respond to override change more quickly 2018-11-07 07:35:45 +11:00
Andrew Tridgell
8d8853d4b7 AP_RCProtocol: fixed test build on navio 2018-11-07 07:35:45 +11:00
Andrew Tridgell
7168a0297a HAL_ChibiOS: display RC protocol for iocmu 2018-11-07 07:35:45 +11:00
Andrew Tridgell
5771e0a90e AP_IOMCU: added access to RC protocol name 2018-11-07 07:35:45 +11:00
Andrew Tridgell
a8e6a09903 AP_RCProtocol: expose protocol name mapping 2018-11-07 07:35:45 +11:00
Andrew Tridgell
ae18fd1cef AP_RCProtocol: added SUMD protocol test 2018-11-07 07:35:45 +11:00
Andrew Tridgell
7996259726 AP_RCProtocol: added timeout handling to SUMD 2018-11-07 07:35:45 +11:00
Andrew Tridgell
b1e5e0aba9 AP_RCProtocol: convert SUMD and ST24 to SoftSerial 2018-11-07 07:35:45 +11:00
Andrew Tridgell
408db791e3 AP_RCProtocol: added test suite 2018-11-07 07:35:45 +11:00
Andrew Tridgell
eb78d4fa26 AP_RCProtocol: added destructor
for use by test suite
2018-11-07 07:35:45 +11:00
Andrew Tridgell
696d4b47a1 AP_RCProtocol: use SoftSerial clock for SRXL 2018-11-07 07:35:45 +11:00
Andrew Tridgell
3bd27ba094 AP_RCProtocol: use SoftSerial for DSM 2018-11-07 07:35:45 +11:00
Andrew Tridgell
b93dee7fe6 AP_RCProtocol: switched SRXL to SoftSerial decoder 2018-11-07 07:35:45 +11:00
Andrew Tridgell
87cf160875 AP_RCProtocol: switched SBUS to SoftSerial decoder 2018-11-07 07:35:45 +11:00
Andrew Tridgell
b7c4ae8ae9 AP_RCProtocol: added separate soft serial decoder
this will replace the version in each protocol
2018-11-07 07:35:45 +11:00
Andrew Tridgell
a69f66eadd HAL_ChibiOS: ensure RCIN sigbuf has even number of words
ObjectBuffer rounds up by 1, leaving an odd number of words, which
caused DSM RC input corruption
2018-11-07 07:35:45 +11:00
Andrew Tridgell
6c128fcaf2 HAL_ChibiOS: signal2 does not need to be DMA safe 2018-11-07 07:35:45 +11:00
Andrew Tridgell
7e8b6709ae AP_RCProtocol: improved reliability of DSM vs SRXL detection
base detection on framing, not including failsafe
2018-11-07 07:35:45 +11:00
Andrew Tridgell
3d90ddc453 AP_IOMCU: fixed stop bits in sbus output 2018-11-07 07:35:45 +11:00
Andrew Tridgell
e3a01c661f HAL_ChibiOS: switched to USB for console on pixracer 2018-11-07 07:35:45 +11:00
Andrew Tridgell
366361f0bb SITL: fixed running of example programs 2018-11-07 07:35:45 +11:00
Andrew Tridgell
5480479e73 HAL_SITL: fixed SITL example progs 2018-11-07 07:35:45 +11:00
Andrew Tridgell
a7c5ac8902 AP_IOMCU: run main loop at max rate
removed delay in main loop to reduce latency of RC input. This works
as we only have one thread
2018-11-07 07:35:45 +11:00
Andrew Tridgell
53b6f38027 AP_RCProtocol: allow switching between all protocols on IOMCU
this allows searching for uart protocols after losing a pulse based
protocol
2018-11-07 07:35:45 +11:00
Andrew Tridgell
56203204cc HAL_ChibiOS: fixed build of bootloaders 2018-11-07 07:35:45 +11:00
Andrew Tridgell
b950b83eea HAL_ChibiOS: fixed build with EICU RC input 2018-11-07 07:35:45 +11:00
Andrew Tridgell
2159198c3e AP_IOMCU: allow DSM input as pulses in iomcu
useful for receivers where DSM uses a normal servo plug
2018-11-07 07:35:45 +11:00