Commit Graph

33527 Commits

Author SHA1 Message Date
Tom Pittenger
ed43f095ce AP_HAL_ChibiOS: add AP_BATTERY_ESC_TELEM_OUTBOUND_ENABLED to defaults_periph 2023-08-22 16:14:36 -07:00
Tom Pittenger
21ead4e8e3 AP_Battery: add param _ESC_ID to write to ESC_Telem 2023-08-22 16:14:36 -07:00
Tom Pittenger
dbe0aac73f AP_ESC_Telem: update_telem_data to be public 2023-08-22 16:14:36 -07:00
Tom Pittenger
5ddb649ed1 Update libraries/AP_Networking/AP_Networking.cpp
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2023-08-22 09:25:42 -07:00
muramura
4bad05c49c AP_Logger:AP_Networking: If initialization fails, the process is terminated 2023-08-22 09:25:42 -07:00
muramura
75a279a11d AP_Networking: Delete entity class pointer 2023-08-22 09:25:42 -07:00
Andrew Tridgell
847c7980c7 AP_DDS: use AP_ExternalControl for velocity control
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Co-authored-by: Andrew Tridgell <tridge60@gmail.com>
2023-08-22 18:21:23 +10:00
Andrew Tridgell
0f624089f8 AP_ExternalControl: external control library for MAVLink,lua and DDS
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Co-authored-by: Andrew Tridgell <tridge60@gmail.com>
2023-08-22 18:21:23 +10:00
Andy Piper
37a3f85a9a AP_HAL_ChibiOS: add 8 bi-directional dshot channels to KakuteH7-Wing 2023-08-22 11:08:14 +10:00
Andrew Tridgell
4f0ba39b64 AP_Param: fixed parameter defaults array length handling
we need to add up the total for all comma separated parameter files
2023-08-22 11:07:30 +10:00
Willian Galvani
158b99c20a AP_MotorsUGV: add asymmetry factor for skid-steering
Co-authored-by: Iampete1 <iampete@hotmail.co.uk>
2023-08-22 09:14:42 +09:00
Peter Barker
b141cca3d5 GCS_MAVLink: pass mavlink_message_t to handle_command_*_packet
the "special case" blocks are getting longer and longer.  Merge the switch statements for the command type to be handled by passing around the message.
2023-08-22 10:11:33 +10:00
Andrew Tridgell
aaec99ae31 hwdef: removed baro from HolybroG4_GPS
not included in production versions, and baro is not generally a good
idea on a GPS due to impact of airflow

also disable unused IMU, SPI bus and 2nd I2C and re-enable 2nd CAN as
helical units have dual CAN
2023-08-22 09:37:20 +10:00
Peter Barker
1dd5778956 GCS_MAVLink: correct placement of AP_MAVLINK_MISSION_SET_CURRENT_ENABLED 2023-08-22 09:09:54 +10:00
Peter Barker
b4a9c0ec1e AP_RPM: include backend header
in the case you're inlcuding the RPM library but no backends we don't know the shape of the backend class, so we can't call the update-esc-telem method.
2023-08-22 09:09:54 +10:00
Peter Barker
84b3c9e267 SITL: reset balancebot to vertical in a kinmetically consistent manner
The hard-reset of all state variables means we feed the EKF inconsistent gyro data.  Attempt to upright the vehicle with a simple p-gain when it is disarmed, as if someone is pushing the thing back upright
2023-08-21 22:09:04 +10:00
Michelle Rossouw
26bbd6536a SITL: Improve Blimp dynamics and fin motion to be more realistic, allow SITL loop rate to be changed and add more logging 2023-08-21 21:01:47 +10:00
Peter Barker
efa680f1e0 AP_HAL_ChibiOS: add hwdef for bootloader for MatekL431-RC 2023-08-20 17:37:44 +10:00
Fred Kummer
7c6551af9b AP_DroneCAN: allow sending negative RawCommands to ESCs 2023-08-19 20:27:58 +10:00
Andrew Tridgell
24139d661a AP_RCProtocol: allow for fport without FRSky telem 2023-08-19 20:27:24 +10:00
Peter Barker
ca549e1887 hwdef: add MatekL431-RC for RC input 2023-08-19 20:27:24 +10:00
Peter Barker
103caac92c AP_HAL_ChibiOS: add support for DroneCAN RCInput packets 2023-08-19 20:27:24 +10:00
Peter Barker
b8a80817e4 AP_RCProtocol: add support for DroneCAN RCInput packets 2023-08-19 20:27:24 +10:00
Peter Barker
1e8d256bc2 AP_DroneCAN: add support for DroneCAN RCInput packets 2023-08-19 20:27:24 +10:00
Peter Barker
48b9172f5b RC_Channel: add note about copying parameter to AP_Periph 2023-08-19 20:27:24 +10:00
Ryan Friedman
e14afa6f2b AP_DDS: Add AP_DDS_config.h for feature defines
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-18 08:35:24 +10:00
Tom Pittenger
27f9a54a54 AP_HAL_ChibiOS: fix CubeRed default MAC Address 2023-08-17 13:51:54 +10:00
Tom Pittenger
7e62904d5e AP_Networking:fix default MAC address UID 2023-08-17 13:51:54 +10:00
Peter Barker
5a0f0915ed AP_RPM: tidy constructors and use of config.h 2023-08-17 09:22:41 +10:00
Peter Barker
8df2d4998b AP_Math: improve gating of use of AP_InternalError library
- gate calls into library directly on the define
 - INTERNAL_ERROR becomes empty if library not compiled in
2023-08-17 09:16:46 +10:00
Peter Barker
94e61a263d AP_InternalError: improve gating of use of AP_InternalError library
- gate calls into library directly on the define
 - INTERNAL_ERROR becomes empty if library not compiled in
2023-08-17 09:16:46 +10:00
Peter Barker
bb6f0ae527 AP_HAL_ChibiOS: improve gating of use of AP_InternalError library
- gate calls into library directly on the define
 - INTERNAL_ERROR becomes empty if library not compiled in
2023-08-17 09:16:46 +10:00
Peter Barker
c2f4fb5def hwdef: use APJ_BOARD_ID mapping for ACNS-CM4Pilot 2023-08-17 09:13:54 +10:00
Peter Barker
19bd97a893 chibios_hwdef.py: permit board ID to be specified as a string 2023-08-17 09:13:54 +10:00
Peter Barker
b8978ad73a hwdef: explicitly state no-bootloader-embedding on some boards 2023-08-17 08:37:31 +10:00
Peter Barker
a11df25490 chibios_hwdef.py: enforce presence of bootloader if embedding desired 2023-08-17 08:37:31 +10:00
yunjiuav
f92073fa4d HAL_ChibiOS: modify APJ_BOARD_ID of YJUAV_A6SE 2023-08-17 08:35:18 +10:00
Michael du Breuil
a0efcc7bdc AP_ESC_Telem: Correct a regression with calclulating active_esc_mask
Credit to @casrya on github for spotting this (#24665), and
investigating. The intent here was to bail out only if no data was
within the timeout, which I had messed up in a bad refactor.
2023-08-17 08:34:29 +10:00
Paul Riseborough
e3c0175bb4 AP_NavEKF3: Update EK3_GLITCH_RADIUS metadata 2023-08-16 17:56:43 +10:00
Paul Riseborough
842882355f AP_NavEKF3: increase innovation variance instead of clipping innovations 2023-08-16 17:56:43 +10:00
Paul Riseborough
573bd7c7f3 AP_NavEKF3: Provide option to clip velocity and position innovations 2023-08-16 17:56:43 +10:00
Andy Piper
7896b04365 AP_HAL_ChibiOS: betafpv F450 AIO hwdef 2023-08-16 17:51:23 +10:00
Henry Wurzburg
b1fc5bd69f AP_HAL_ChibiOS: add missing bootloader binaries 2023-08-16 17:49:00 +10:00
Peter Barker
2ce61cce58 AP_Generator: rename generator define to fix feature extraction
pattern-matching requires a regular pattern.  Renaming the class would be bad, so  just rename the define
2023-08-16 17:35:59 +10:00
Peter Barker
7273c8416a AP_HAL_ChibiOS: prevent Periph bricking problem when paniccing early
if Periph panics before we mark the scheduler as initialised then we don't watchdog, which we really need to do on periph nodes so they can be re-flashed conveniently.
2023-08-16 17:21:30 +10:00
Peter Barker
4d3e7bd3da AC_Fence: remove old polygon fence conversion code 2023-08-16 17:13:31 +10:00
Peter Barker
83cecdd229 AP_RPM: correct compilation when AP_RPM_ESC_TELEM_ENABLED is disabled 2023-08-15 18:06:58 -07:00
Tom Pittenger
d8e9379289 AP_RPM: add writing to outbound ESC_Telem 2023-08-16 06:35:05 +10:00
Tom Pittenger
15b8700a2c Revert "AP_RPM: enable AP_RPM to set ESC Telemetry"
This reverts commit 1e633df3de.
2023-08-16 06:35:05 +10:00
Andrew Tridgell
3e3c086ab7 SITL: build the whole simulator as double precision 2023-08-15 22:39:23 +10:00