Andrew Tridgell
f1a7abb31b
AP_BLHeli: fixed documentation for SERVO_BLH_3DMASK and SERVO_BLH_RVMASK
...
they can be combined on both BLHeli32 and AM32
2025-02-13 11:22:50 +01:00
Andy Piper
9f31795dda
AP_BLHeli: properly deal with interface test when disconnected
...
don't cache connection result and return appropriate error if connection fails.
don't wait 1s to send first serial passthrough message
retry failed cmd_DeviceInitFlash as per betaflight
ensure the bootinfo structure is large enough
2025-02-13 17:12:09 +11:00
Andy Piper
7bfb135822
AP_BLHeli: use native motor numbering
2025-01-14 11:24:52 +11:00
Andy Piper
417a8a5147
AP_BLHeli: normalize ESC index correctly with iomcu
2025-01-14 11:24:52 +11:00
Henry Wurzburg
b71ed41c32
AP_BLHeli:correct RVMASK metadata
2024-10-08 20:58:16 +11:00
Peter Barker
a211b66472
AP_BLHeli: make AP_Motors::PWMType enum class
...
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-06 18:15:35 +10:00
Henry Wurzburg
3b86c0527f
AP_BLHeli:expand metadata of 3d and Reverse masks
2024-06-04 09:24:41 +10:00
Andrew Tridgell
fdf2599329
AP_BLHeli: fixed define for BLHeli support
2024-03-18 14:12:25 +11:00
Andy Piper
6dec0c2da5
AP_BLHeli: allow bdshot iomcu on non-bdshot fmu
2023-12-18 19:02:52 +11:00
Andy Piper
9db7120c06
AP_BLHeli: add accessor for motor poles and telemetry rate
2023-12-18 19:02:52 +11:00
Mykhailo Kuznietsov
81e1c3c0b0
AP_BLHeli: Fix some typos
...
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Andy Piper
9642343e8e
AP_BLHeli: normalize motor index correctly for iomcu running dshot
2023-08-15 06:53:48 +10:00
Andy Piper
1f9539a1b3
AP_BLHeli: add battery status MSP handling
...
give internal error if an unknown MSP command occurs
2023-07-05 15:39:15 +01:00
Peter Barker
9fb95f425a
AP_BLHeli: change namespace of MultiCopter and FixedWing params
...
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Andy Piper
25ef429cf7
AP_BLHeli: allow motor mask and motor output type to be passed in for AP_Periph
2022-09-20 09:45:03 +10:00
Andy Piper
9753f36dd1
AP_BLHeli: make ESC debug easier to see
2022-08-03 17:06:38 +10:00
Peter Barker
39ab6b727c
AP_BLHeli: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
Andrew Tridgell
f3ce44ef2c
AP_BLHeli: more changes for 32 bit servo mask
2022-05-22 12:07:37 +10:00
Iampete1
e03aed3aa7
AP_BLHeli: support upto 32 servo outputs
2022-05-22 12:07:37 +10:00
murata
8d1b1a2caf
AP_BLHeli: Console output can be disabled
2022-05-17 09:53:06 +10:00
Andy Piper
03aeca22ec
AP_BLHeli: keep a record of disabled motors
2022-04-25 15:55:54 +09:00
Randy Mackay
2d5d74b7a8
AP_BLHeli: add reboot required to some parameters
2022-03-24 11:20:09 +09:00
Andrew Tridgell
075f349156
AP_BLHeli: bring in hal.h
2022-02-22 12:13:19 +11:00
Andy Piper
ddfef6944b
AP_BLHeli: correct documentation for passthrough port
...
pre-emptively setup serial passthrough to increase BLHeliSuite reliability
2022-02-07 12:56:30 +11:00
Andrew Tridgell
604f2430f8
AP_BLHeli: allow for no uart in update()
2021-12-10 08:11:24 -08:00
Andrew Tridgell
778de59fff
AP_BLHeli: allow build as part of AP_Periph
2021-12-10 08:11:24 -08:00
Andy Piper
63cea29af3
AP_BLHeli: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
2021-10-26 11:42:12 +11:00
Iampete1
2b402ed2d7
AP_BLHeli: use is_dshot_protocol in place of >= AP_HAL::RCOutput::MODE_PWM_DSHOT150
2021-10-06 18:59:57 +11:00
Iampete1
436f9a3f46
AP_BLHeli: move OTYPE to use RCOutput::MODE not AP_Motors::PWM_TYPE
2021-10-06 18:59:57 +11:00
Iampete1
9106835c93
AP_BLHeli: use motors is_digital_pwm_type helper
2021-10-06 18:59:57 +11:00
Gone4Dirt
a97cafbaad
AP_BLHeli: Add APM_BUILD_Heli
2021-09-29 19:55:48 +10:00
Andy Piper
ca477d09ed
AP_BLHeli: ensure correct rotation through telemetry ESCs
2021-07-21 17:18:12 +10:00
Iampete1
ffe91fc80e
AP_BLHeli: update rover motors include
2021-07-20 10:48:01 +09:00
bugobliterator
e8e5f49640
AP_BLHeli: fix casting without ensuring alignment
2021-07-15 07:50:12 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
120081f7ab
AP_BLHeli: fix compilation when HAL_WITH_ESC_TELEM == 0
2021-06-09 21:42:51 +10:00
Andy Piper
4a05e65367
AP_BLHeli: ensure digital motor masks are setup correctly regardless of AUTO setting
2021-06-09 17:28:53 +10:00
Andy Piper
9eea3f1030
AP_BLHeli: add auto support to rover
2021-06-07 20:16:26 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
0dbd05505b
AP_BLHeli: Remove duplicated code, use existing AP_Math CRC function
2021-06-01 09:27:29 +10:00
Andy Piper
235c8a2d0c
AP_BLHeli: make sure telemetry is requested when there is only one motor
2021-05-25 11:05:50 +10:00
Andy Piper
f8495df0af
AP_BLHeli: convert servo indexing to FMU indexing for ESC telemetry
2021-05-25 11:05:50 +10:00
Andy Piper
4929caa241
AP_BLHeli: if there are no digital outputs disable telemetry
2021-05-17 21:44:36 +10:00
Andy Piper
df1086c4f3
AP_BLHeli: clean-up up digital outputs settings
2021-05-12 21:02:42 +10:00
Andy Piper
4905b5152d
AP_BLHeli: initialize separately so that overrides work
...
make sure that only digital outputs are marked as digital
only rotate telemetry between digital channels
2021-05-12 21:02:42 +10:00
Andy Piper
6d50549476
AP_BLHeli: generalise ESC telemetry to allow harmonic notch handling with other ESCs
...
move part of frequency calculation into AP_ESC_Telem_Backend
factor out duplicate code into AP_ESC_Telem_Backend
remove send_esc_telemetry_mavlink()
log telemetry data in frontend
remove datastructures and API obsoleted by AP_ESC_Telem* (<amilcar.lucas@iav.de>)
record volts, amps and consumption as floats
fix wrong motor channel in telemtry update
2021-05-12 17:01:11 +10:00
Andy Piper
dee4ce3d35
AP_BLHeli: allow both reversed and reversible states to be set
...
change dshot command mask names
mark ESCs active when telemety is returned
set dshot esc type
2021-05-05 17:41:24 +10:00
Andy Piper
9f5dbfb092
AP_BLHeli: index bi-dir dshot channels through the motor map
...
error if no digital mask has been set for bi-dir dshot
2021-04-21 17:18:53 +10:00
Andy Piper
a9f442b4c1
AP_BLHeli: make sure there is delay between MSP send and receive to avoid reading our own data
2021-04-20 10:35:22 +10:00
4712
38ea1296ca
Update serial-4way-if to v20005
...
Reservation of an MCU_ID area to simplificate adding of upcoming BLHeli_32 MCU.
2021-03-18 08:10:08 +11:00
4712
6956abdb45
Some fixes for AP_BLHeli
...
Added ACK_I_INVALID_CHANNEL as response for cmd_DeviceReset cmd_DeviceInitFlash on bad channel selection
Fixed params for MSP_MOTOR_CONFIG
Adapted some timeouts
2021-03-18 08:10:08 +11:00
yaapu
59c5bbc8b8
AP_BLHeli: added missing ack to MSP_SET_MOTOR message
2021-03-18 08:10:08 +11:00