Commit Graph

33434 Commits

Author SHA1 Message Date
Andrew Tridgell
004ce407f4 AP_Notify: don't use pinMode for pixracer LEDs
this is needed for LEDs that are driven by 5V, which means they need
to use OPENDRAIN.
2019-05-28 17:47:19 +09:00
Jaaaky
ea4d34b75f AP_InertialSensor: fix accelcalsimple watchdog 2019-05-28 17:47:19 +09:00
Andrew Tridgell
06d796a2c8 HAL_PX4: added empty flash driver 2019-05-28 17:47:19 +09:00
Andrew Tridgell
c1000cfe2a HAL_ChibiOS: fixed merge errors with hal.flash usage 2019-05-28 17:47:19 +09:00
Andrew Tridgell
0e3183b3cf HAL_ChibiOS: use hal.flash API
# Conflicts:
#	libraries/AP_HAL_ChibiOS/Storage.cpp
#	libraries/AP_HAL_ChibiOS/Util.cpp
2019-05-28 17:47:19 +09:00
Andrew Tridgell
51223409be HAL_ChibiOS: fixed iomcu build with flash driver 2019-05-28 17:47:19 +09:00
Andrew Tridgell
25aaefa0e6 HAL_SITL: added empty flash driver 2019-05-28 17:47:19 +09:00
Andrew Tridgell
33eecbb696 HAL_Linux: added empty flash driver 2019-05-28 17:47:19 +09:00
Andrew Tridgell
c9eb9d8076 HAL_Empty: added empty flash driver 2019-05-28 17:47:19 +09:00
Andrew Tridgell
e4aae50e44 HAL_ChibiOS: implement flash driver 2019-05-28 17:47:19 +09:00
Andrew Tridgell
608fd54f62 AP_HAL: added hal.flash driver
needed for semaphore
2019-05-28 17:47:19 +09:00
Andrew Tridgell
2fbe6edf47 AP_HAL: added save/restore of attitude in backup registers 2019-05-28 17:47:19 +09:00
Andrew Tridgell
952ef7c361 HAL_ChibiOS: added save/restore of attitude in backup registers 2019-05-28 17:47:19 +09:00
Andrew Tridgell
46bb88173e AP_AHRS: added save/restore of attitude in backup registers 2019-05-28 17:47:19 +09:00
Andrew Tridgell
3bd1a08c5e HAL_ChibiOS: fixed build with older gcc 2019-05-28 17:47:19 +09:00
Andrew Tridgell
4fc4573f81 AP_AHRS: save/restore home to backup registers
restore on watchdog reset
2019-05-28 17:47:19 +09:00
Andrew Tridgell
db35064c95 HAL_ChibiOS: save/restore home position in backup registers 2019-05-28 17:47:19 +09:00
Andrew Tridgell
a42293b986 AP_HAL: added save/restore of home to backup registers 2019-05-28 17:47:19 +09:00
Andrew Tridgell
12dfccf65a AP_InertialSensor: prevent watchdog in accelcal 2019-05-28 17:47:19 +09:00
Andrew Tridgell
020ce245b9 HAL_ChibiOS: allow for delay in bootloader flash 2019-05-28 17:47:19 +09:00
Andrew Tridgell
3222084f2d HAL_ChibiOS: fixed watchdog timeout setting 2019-05-28 17:47:19 +09:00
Andrew Tridgell
756a629b24 GCS_MAVLink: added method to lockup autopilot
used for watchdog testing

# Conflicts:
#	libraries/GCS_MAVLink/GCS_Common.cpp
2019-05-28 17:47:19 +09:00
Andrew Tridgell
6a052a5042 Plane: read RC inputs in plane failsafe code
# Conflicts:
#	ArduPlane/failsafe.cpp
2019-05-28 17:47:19 +09:00
Andrew Tridgell
27aba29109 AP_Logger: prevent log erase from triggering watchdog
# Conflicts:
#	libraries/DataFlash/DataFlash_File.cpp
2019-05-28 17:47:19 +09:00
Andrew Tridgell
a378f2b8fa AP_Logger: force logging on an armed watchdog reset
and don't clear sdcard space
2019-05-28 17:47:19 +09:00
Andrew Tridgell
f217f504e5 HAL_ChibiOS: implement was_watchdog_armed() 2019-05-28 17:47:19 +09:00
Andrew Tridgell
44e3b20038 AP_HAL: added was_watchdog_armed()
allow decisions to be based on whether this is a watchdog reset and we
were armed
2019-05-28 17:47:19 +09:00
Andrew Tridgell
682362945c AP_BoardConfig: auto-restore safety state on watchdog reset
# Conflicts:
#	libraries/AP_BoardConfig/board_drivers.cpp
2019-05-28 17:47:19 +09:00
Andrew Tridgell
4edd270bd9 HAL_ChibiOS: added ability to restore safety state on watchdog reset
# Conflicts:
#	libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c
2019-05-28 17:47:19 +09:00
Andrew Tridgell
92f12deb51 AP_HAL: added was_watchdog_safety_off()
used to restore safety state on watchdog reset
2019-05-28 17:47:19 +09:00
Andrew Tridgell
6c7fd8e9ed HAL_ChibiOS: change to 2s timeout on watchdog
a bit more of a safety net against false positives for stable release
2019-05-28 17:47:19 +09:00
Andrew Tridgell
6361482ba6 HAL_ChibiOS: fixed watchdog on H7 2019-05-28 17:47:19 +09:00
Andrew Tridgell
0b33a14369 AP_Bootloader: use fast boot after watchdog reset 2019-05-28 17:47:19 +09:00
Andrew Tridgell
3481eda759 Plane: removed an unnecessary delay on init 2019-05-28 17:47:19 +09:00
Andrew Tridgell
f4d8026d6d AP_Compass: flag compass cal as long expected delay 2019-05-28 17:47:19 +09:00
Andrew Tridgell
de2ae7ad24 HAL_ChibiOS: implement scheduler->expect_delay_ms()
# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
#	libraries/AP_HAL_ChibiOS/Scheduler.h
2019-05-28 17:47:19 +09:00
Andrew Tridgell
2590457c75 AP_Logger: handle long delays in opening log files 2019-05-28 17:47:19 +09:00
Andrew Tridgell
a341eebe69 AP_HAL: added expect_delay_ms() to Scheduler
used to notify scheduler of long expected delay in main thread
2019-05-28 17:47:19 +09:00
Andrew Tridgell
8cd0133a4d HAL_ChibiOS: added commented out test code for watchdog 2019-05-28 17:47:19 +09:00
Andrew Tridgell
43dfc67b96 AP_Baro: skip cal on watchdog reset 2019-05-28 17:47:19 +09:00
Andrew Tridgell
194176ca06 Plane: show message for skipping gyro cal 2019-05-28 17:47:19 +09:00
Andrew Tridgell
69528a9892 AP_Airspeed: skip cal on watchdog reset 2019-05-28 17:47:19 +09:00
Andrew Tridgell
e105bf258c AP_InertialSensor: skip gyro cal on watchdog reset 2019-05-28 17:47:19 +09:00
Andrew Tridgell
0f0fdf1398 HAL_ChibiOS: implement was_watchdog_reset()
# Conflicts:
#	libraries/AP_HAL_ChibiOS/Util.h
2019-05-28 17:47:19 +09:00
Andrew Tridgell
44b6a70377 AP_HAL: added was_watchdog_reset()
# Conflicts:
#	libraries/AP_HAL/Util.h
2019-05-28 17:47:19 +09:00
Andrew Tridgell
4858506a0b HAL_ChibiOS: record reason for reset
allows us to tell if reset was due to watchdog
2019-05-28 17:47:19 +09:00
Andrew Tridgell
96923da60c HAL_ChibiOS: use BRD_OPTIONS to enable watchdog
# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
2019-05-28 17:47:19 +09:00
Andrew Tridgell
78e234bb6f AP_BoardConfig: added BRD_OPTIONS
used to enable STM32 watchdog

# Conflicts:
#	libraries/AP_BoardConfig/AP_BoardConfig.cpp
#	libraries/AP_BoardConfig/AP_BoardConfig.h
2019-05-28 17:47:19 +09:00
Andrew Tridgell
a7906f9e42 HAL_ChibiOS: added IWDG watchdog support
this resets the MCU if the main loop stops for 1 second

# Conflicts:
#	libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp
2019-05-28 17:47:19 +09:00
Guglielmo
234b3391a9 AP_HAL_SITL: fix pthread SITL build on MacOS 2019-05-28 17:47:19 +09:00