Commit Graph

40111 Commits

Author SHA1 Message Date
Andrew Tridgell 76dd2f0838 AP_RangeFinder: fixed failover between rangefinders
this fixes the case where we have one rangefinder that can handle
short range and another that is good for long range but no good for
short range (quite common, eg radar and lidar)

If possible we want to use the first rangefinder that is in range for
the right orientation. If none are in range then use the first for the
orientation
2019-10-28 21:13:18 +11:00
vierfuffzig c97f785443 AP_BLHeli: fix eRPM conversion 2019-10-28 21:09:22 +11:00
Andrew Tridgell a4e51f3942 HAL_ChibiOS: lower speed of mpu9250
it isn't handling the full speed well, getting some SPI transfer
errors
2019-10-28 21:06:41 +11:00
Peter Barker d8f0960214 autotest: correct delay in simple loop test 2019-10-28 19:02:58 +11:00
Michael du Breuil 5bafd7d72c AP_GPS: Don't defeat the GCS message interval code 2019-10-28 00:26:28 -07:00
Andrew Tridgell 80bd038333 Plane: updated release notes for 4.0.0 2019-10-28 16:39:16 +11:00
Andrew Tridgell 3884419153 AP_Periph: added RNGFND_BAUDRATE
allows control of rangefinder baudrate
2019-10-28 15:53:16 +11:00
Andrew Tridgell 2708c99bfb AP_SerialManager: added set_protocol_and_baud()
used by AP_Periph for rangefinders
2019-10-28 15:53:16 +11:00
Andrew Tridgell 529f7a4416 Tools: updated CAN bootloaders 2019-10-28 15:53:16 +11:00
Andrew Tridgell e612ab92ff AP_Bootloader: added error codes for failing to load app
use the vendor code to indicate failure reason
2019-10-28 15:53:16 +11:00
Andrew Tridgell 513fd4065b AP_Menu: use strtof() instead of atof() 2019-10-28 15:53:16 +11:00
Andrew Tridgell 34f5b40919 AP_IOMCU: use crc32_small() in AP_IOMCU
the slower speed is not noticible and this saves 1k ram
2019-10-28 15:53:16 +11:00
Andrew Tridgell 31f7a62cdc AP_Bootloader: use crc32_small() 2019-10-28 15:53:16 +11:00
Andrew Tridgell 1ec921560e AP_WindVane: use strtof instead of atof
we don't need double precision
2019-10-28 15:53:16 +11:00
Andrew Tridgell c7fce7568e AP_Proximity: use strtof instead of atof
we don't need double precision
2019-10-28 15:53:16 +11:00
Andrew Tridgell 31b0663115 AP_Param: use strtof instead of atof
we don't need double precision
2019-10-28 15:53:16 +11:00
Andrew Tridgell dcc417f27b AP_Bootloader: use crc32_small() 2019-10-28 15:53:16 +11:00
Andrew Tridgell e5b99b294a Tools: updated f103 bootloaders 2019-10-28 15:53:16 +11:00
Andrew Tridgell ff2cfbaafb AP_Math: added smaller footprint crc32 2019-10-28 15:53:16 +11:00
Andrew Tridgell 5898dc757c AP_RangeFinder: use single precision string to float 2019-10-28 15:53:16 +11:00
Andrew Tridgell 092c20b3a7 AP_Periph: use flash app_descriptor 2019-10-28 15:53:16 +11:00
Andrew Tridgell ec1060d4f8 AP_Bootloader: pre-define fields of app_descriptor
this is needed to store it in flash
2019-10-28 15:53:16 +11:00
Andrew Tridgell b5af1edf0d HAL_ChibiOS: moved app_descriptor to start of flash
this prevents the bootloader from finding it's own image as a false
posititve in searching for the app_descriptor
2019-10-28 15:53:16 +11:00
Andrew Tridgell b2a2556829 Tools: built crazyflie2 bootloader 2019-10-28 09:27:31 +11:00
Andrew Tridgell 3800d7c084 HAL_ChibiOS: added crazyflie2 bootloader 2019-10-28 09:27:31 +11:00
murata 233fb94417 AP_Baro: Add I2C Access 2019-10-27 20:02:27 +11:00
Peter Barker 117630a469 autotest: add delay for loop test to ensure we get >=3 messages 2019-10-27 09:17:54 +11:00
vierfuffzig 6786bf0016 Plane: fix RCn_OPTION mode initialization 2019-10-27 07:33:45 +11:00
Andrew Tridgell 3e72538f07 AP_TECS: added TECS_LAND_PMIN for min pitch in flare
this is useful to narrow the range of available pitch after flare
2019-10-26 18:05:17 +11:00
Andrew Tridgell ae49cebeb1 Tools: updated CAN bootloaders 2019-10-26 15:32:10 +11:00
Andrew Tridgell cc1f86e1f1 AP_Bootloader: use MAINTAINENCE mode for CAN bootloader
this makes it obvious we are in the bootloader
2019-10-26 15:32:10 +11:00
Andrew Tridgell 482e0d4787 AP_Periph: implement 30s mark of good firmware 2019-10-26 15:32:10 +11:00
Andrew Tridgell c1ef2e29d7 AP_Bootloader: stay in CAN bootloader if in watchdog reset
if the app has not been running for at least 30s then stay in
bootloader to allow used to load new fw
2019-10-26 15:32:10 +11:00
Andrew Tridgell d1bc0f236d HAL_ChibiOS: added pragma once for watchdog header 2019-10-26 15:32:10 +11:00
Andrew Tridgell fc8d9e8af5 HAL_ChibiOS: added RTC_BOOT_FWOK value for RTC reboot register
this is used in CAN firmware to know if the main app firmware has run
for long enough to be considered good
2019-10-26 15:32:10 +11:00
Andrew Tridgell f777a37826 Tools: added link to AP_Periph firmware 2019-10-26 15:32:10 +11:00
Randy Mackay 1aabbae8bc Copter: update 4.0.0-rc1 release notes 2019-10-26 10:44:10 +09:00
Randy Mackay 42d8bcc44f Copter: 4.0.0-rc1 release notes 2019-10-26 10:44:08 +09:00
Peter Barker b6920e14c8 Copter: remove redundant SurfaceTracking enumeration namespacing
Also rename State to Surface to be more specific about what is being
set/tracked.
2019-10-26 08:08:22 +08:00
Peter Barker 6b92f3dae9 AP_NMEA_Output: add example 2019-10-26 00:38:27 +11:00
Andrew Tridgell 378d5c7a5a HAL_ChibiOS: added expected delay in bootloader flash 2019-10-25 21:36:55 +11:00
Andrew Tridgell dc6948f336 AP_Periph: added delay on bl flash
and expand can pool a bit
2019-10-25 21:36:55 +11:00
Andrew Tridgell 4e33aff5d6 waf: fixed unnecessary nul termination of ROMFS 2019-10-25 21:36:55 +11:00
Andrew Tridgell 7fb44d1164 AP_ROMFS: fixed return size for uncompressed ROMFS 2019-10-25 21:36:55 +11:00
Andrew Tridgell 4593697634 GCS_MAVLink: use new flash_bootloader() API 2019-10-25 21:36:55 +11:00
Andrew Tridgell dba6d71fc6 AP_Periph: use new flash_bootloader() API 2019-10-25 21:36:55 +11:00
Andrew Tridgell 81325ab14d HAL_ChibiOS: fixed multi-page bootloader update
and use new enum
2019-10-25 21:36:55 +11:00
Andrew Tridgell 9a778418a5 AP_HAL: use enum for flash_bootloader() result 2019-10-25 21:36:55 +11:00
Peter Barker f4433773be AP_Arming: adjust for rename of AP_UAVCAN_Server to AP_UAVCAN_DNA_Server 2019-10-25 20:24:54 +11:00
Peter Barker 4ddfe2715b AP_UAVCAN: adjust for rename of AP_UAVCAN_Server to AP_UAVCAN_DNA_Server 2019-10-25 20:24:54 +11:00