Commit Graph

59782 Commits

Author SHA1 Message Date
Pierre Kancir 9d76d1e3df Tools: Test for membership should be `not in` 2023-09-02 13:27:25 +10:00
Pierre Kancir 31ee88adbb Tools: use isinstance for type comparison 2023-09-02 13:27:25 +10:00
Pierre Kancir d36a028420 Tools: pre-commit: small py3 compliance 2023-09-02 13:27:25 +10:00
Pierre Kancir 1c1fa820b4 Tools: close py file after checking for AP_FLAKE8_CLEAN 2023-09-02 13:27:25 +10:00
Pierre Kancir 904486c846 Tools: fix flake8 test 2023-09-02 13:27:25 +10:00
Rhys Mainwaring b97e98242b AP_HAL_ESP32: update esp32empty
- Add INS_ACC offsets to param to skip calibration for esp32empty
- Update esp32empty.h
  - Change tabs to whitespace.
  - Define HAL_INS_DEFAULT to HAL_INS_NONE
  - Update wifi details
  - Format comment in esp32empty
  - Update serial defaults and uarts
  - Use IO_MUX for UART_NUM_2 (TX 17, RX 16)
- Update scheduler
  - Disable initialisation check in timer thread if HAL_INS_NONE
  - Print main loop rate every 10s
  - Remove serial(n)->begin() calls

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-09-02 09:43:14 +10:00
Rhys Mainwaring 732b074bee AP_InertialSensor: update to support esp32
- Remove whitespace
- Remove instance checks in AP_InertialSensor_NONE timer update

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-09-02 09:43:14 +10:00
arshPratap 062f82b3af Tools : Added custom ROS-2 serivce definition for switching drive modes 2023-09-01 17:49:33 +10:00
Anthony Luo 43eacbee33 AP_Logger: fix typo in AP_Logger.h 2023-09-01 17:49:00 +10:00
Peter Barker e6284fe879 AP_HAL: correct compilation for SimOnHardware 2023-09-01 17:48:30 +10:00
Vincent Poon 1b6148cba8 hwdef: Restore I2C2 on HolybroG4_GPS
I2C2 was removed by mistake previously, causing LED Driver to not function.
2023-09-01 13:44:23 +10:00
Peter Barker 5d1fbdf9d3 AP_Periph: define external hal symbol to correct compilation 2023-09-01 13:13:07 +10:00
Andrew Tridgell c32d95cbfc AP_CANManager: update docs 2023-09-01 13:04:59 +10:00
Andrew Tridgell 789aab7fee Tools: update periph README.md 2023-09-01 13:04:59 +10:00
Andrew Tridgell b612c245bd Tools: added build_peripherals.py
useful for testing that changes in AP_Periph have not broken any builds
2023-09-01 13:04:59 +10:00
Andrew Tridgell 0c38dada6c AP_Periph: re-structure peripheral code
split into separate cpp files and avoid static functions
2023-09-01 13:04:59 +10:00
Andrew Tridgell c0cd255135 hwdef: use HAL_PERIPH_ENABLE_PROXIMITY 2023-09-01 13:04:59 +10:00
Randy Mackay 9bb8df7b70 AP_Mount: Siyi supports rangefinder distance 2023-09-01 10:35:12 +10:00
Randy Mackay d5772774d1 AP_Mount: Siyi timeout moved to definition 2023-09-01 10:35:12 +10:00
Randy Mackay 23deeb3a00 AP_Mount: Siyi supports set_lens 2023-09-01 10:35:12 +10:00
Randy Mackay 74fa07ae13 AP_Mount: Siyi displays zoom version 2023-09-01 10:35:12 +10:00
Randy Mackay 9a5acec243 AP_Mount: Siyi gets improved model detection
# Conflicts:
#	libraries/AP_Mount/AP_Mount_Siyi.cpp
2023-09-01 10:35:12 +10:00
Rhys Mainwaring fa70a56a65 AP_HAL_ESP32: change storage sector size to 128K
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-09-01 10:34:27 +10:00
Andy Piper ad19321d89 AP_Bootloader: board ids for SpeedyBeeF4Mini, FlywooF4Pro, TMotorH7 2023-08-31 23:51:09 +10:00
Anthony Luo 5e5ddd8ba4 Tools: document SIM_GPS_BYTELOSS and SIM_GPS_NUMSATS 2023-08-31 16:58:06 +10:00
Anthony Luo 991e429afb SITL: document SIM_GPS_BYTELOSS and SIM_GPS_NUMSATS 2023-08-31 16:58:06 +10:00
Peter Barker 06a8dafbf5 AC_PID: tidy AC_PID construction 2023-08-31 11:09:10 +10:00
Peter Barker 70109f968c AC_AttitudeControl: tidy AC_PID construction 2023-08-31 11:09:10 +10:00
Peter Barker f8f28ee767 AP_ExternalAHRS: correct AP_ExternalAHRS init
default clause is in wrong place and shouldn't be present to start with...
2023-08-31 11:08:51 +10:00
subashchandar 3cfa13c0b2 AP_HAL_CHIBIOS: allow RCIN thread priority to be overridden
Add provision to change Rcin thread priority
-needed to increase priority for some low speed cpu
2023-08-31 09:24:05 +10:00
Randy Mackay d59ff8501c AP_Mount: Siyi loses unused definitions 2023-08-30 16:00:47 +09:00
Randy Mackay 33542c0c1d AP_Mount: Siyi absolute zoom simplification 2023-08-30 16:00:47 +09:00
Peter Barker b06921fbac AC_AttitudeControl: remove unused defines 2023-08-30 12:30:25 +10:00
Peter Barker 0bb8ec1e57 AP_ExternalAHRS: add missing includes 2023-08-30 12:26:14 +10:00
Peter Barker 9c03685400 AP_Camera: add missing includes 2023-08-30 12:26:14 +10:00
Peter Barker 1c85512f8f AP_ADSB: add missing includes 2023-08-30 12:26:14 +10:00
Iampete1 2fbc27584b AP_HAL_ChibiOS: default to 0 battery capacity on periph 2023-08-30 12:25:46 +10:00
Iampete1 73c77d0757 AP_BattMonitor: expose CAPACITY param on periph 2023-08-30 12:25:46 +10:00
Peter Barker 22141a8bc6 Tracker: handle SET_SERVO and MISSION_START as command_int+command_long 2023-08-30 12:22:15 +10:00
Peter Barker 8ee773f77d autotest: augment tracker tests to cover MISSION_START and SET_SERVO 2023-08-30 12:22:15 +10:00
Ryan Friedman cbc0043b9b AP_ExternalAHRS: Fix nullptr crash on bootup
* If you didn't set the serial port parameter correctly, but enabled MicroStrain AHRS, it would crash on boot
* This is because AP_AHRS calls update() which calls build_packet()

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2023-08-30 12:21:59 +10:00
Peter Barker e69760f51b autotest: fix flapping Rally test
when MAVProxy says "loaded" it is only refering to getting the files into its own state, not into the autopilot
2023-08-30 12:21:17 +10:00
Randy Mackay 0b04b265de autotest: quadplane AirMode test disables mag check 2023-08-30 11:17:42 +09:00
Randy Mackay 943630e53a AP_Arming: mag field check vs world magnetic model 2023-08-30 11:17:42 +09:00
Andrew Tridgell a2d5a32b4c autotest: don't warn about vcan loading 2023-08-29 15:09:48 +10:00
Andrew Tridgell 47eb597dd6 CI: don't load vcan kernel modules
not needed any more
2023-08-29 15:09:48 +10:00
Andrew Tridgell c28fa15d52 AP_Periph: fixed macos build 2023-08-29 15:09:48 +10:00
Andrew Tridgell d8c5ce4347 AP_AHRS: fixes for macos CAN SITL build 2023-08-29 15:09:48 +10:00
Andrew Tridgell 12f5448bf4 AP_Mount: fixes for macos CAN SITL build 2023-08-29 15:09:48 +10:00
Andrew Tridgell 74139423cb AP_GPS: fixes for macos CAN SITL build 2023-08-29 15:09:48 +10:00