Andy Piper
8cd3ae12a7
AP_BLHeli: ensure correct rotation through telemetry ESCs
2021-07-22 16:01:01 +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
Andy Piper
2395018000
AP_BLHeli: don't log invalid bi-dir dshot values as they are never used
2021-01-27 18:54:10 +11:00
Andy Piper
f60fdde492
AP_BLHeli: return motor frequencies from bi-dir dshot if available
...
add channel mask to cater for bi-dir dshot
call into rcout to setup bi-dir dshot
log bi-dir telemetry even when regular telemetry is disabled
don't expose bi-dir dshot if not compiled in
2020-12-30 19:14:16 +11:00
Andrew Tridgell
952a3956a9
AP_BLHeli: added have_telem_data() API
2020-09-02 05:56:46 +10:00
yaapu
699ffcbcd2
AP_RangeFinder: added support for MSP based range finders
2020-09-02 05:56:46 +10:00
Andy Piper
90acff647c
AP_BLHeli: log telemetry at 10Hz
2020-07-07 11:44:33 +10:00
Andy Piper
07ad4798dc
AP_BLHeli: allow all motor frequencies to be returned
...
cater for ESCs not returning telemetry all the time
slew rpm updates for the harmonic notch
2020-06-21 19:09:35 +10:00
Peter Barker
6cdee8c830
AP_BLHeli: read more efficiently from telemetry UART
2020-05-26 15:59:11 +10:00
Peter Barker
3bf1ac5918
AP_BLHeli: trim annoying LF from debug "Bad CRC" line
2020-05-26 09:20:32 +10:00
Peter Barker
a073469423
AP_BLHeli: use new UARTDriver discard_input method
2020-05-26 09:20:32 +10:00
Andrew Tridgell
cf0f95f81e
AP_BLHeli: allow for negative temperatures from BLHeli32 ESCs
...
ESCs can send negative values
2020-05-25 13:53:32 +10:00
Peter Hall
2c5b0ffa29
AP_BlHeli: always report test results and report band channel once
2020-02-04 10:38:20 +11:00
Peter Hall
d5843ff03a
AP_BLHeli: stop motors if conection lost in motor test
2020-02-04 10:38:20 +11:00
Peter Hall
38f68c4eba
AP_Blheli: allow connection with mixed reversible and normal
2020-02-04 10:38:20 +11:00
Peter Hall
956c3f29a3
AP_BLHeli: allow connection with reversable ESCs
2019-12-24 10:50:16 +11:00
Randy Mackay
1b79f102b6
AP_BLHeli: log motor temp as zero
2019-11-26 11:56:33 +11:00
Andrew Tridgell
3750ed2925
AP_BLHeli: fixed critical errors caused by BLHeli code
2019-11-01 08:44:54 +11:00
Randy Mackay
5b8d7a35e7
AP_BLHeli: minor style fix for get_average_moto_frequency_hz
2019-10-31 12:20:41 +09:00
Andy Piper
b242c5071b
AP_BLHeli: add get_average_motor_frequency_hz() for dynamic filtering
...
correctly calculate rpm from erpm
2019-10-31 11:18:40 +08:00
vierfuffzig
c97f785443
AP_BLHeli: fix eRPM conversion
2019-10-28 21:09:22 +11:00
Henry Wurzburg
880285dad4
AP_BLHeli: Change descriptions in SERVO_BLH_PORT param to actual AP port
2019-10-05 16:35:59 +10:00
vierfuffzig
b89c60d5b0
AP_BLHeli: fix watchdog resets with telemetry active from non-multirotor motors
2019-10-02 21:06:22 +10:00
Michael du Breuil
a1fda8bc76
AP_BLHeli: Update to support newer targets and protocols
2019-05-25 09:37:56 +10:00
Tom Pittenger
cc88e65fc3
AP_BLHeli: rename dataflash to logger
2019-03-28 16:40:57 +11:00
Randy Mackay
9eaef98321
AP_BLHeli: use AP_Logger::Write_ESC
2019-02-18 20:55:47 +09:00
Tom Pittenger
0f311ba04f
AP_BLHeli: unify singleton naming to _singleton and get_singleton()
2019-02-10 19:09:58 -07:00
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
2019-01-18 18:08:20 +11:00
Andrew Tridgell
8cca632b67
AP_BLHeli: adjust for new UART locking API
2018-12-29 15:58:22 +11:00
Randy Mackay
b306e08455
AP_BLHeli: default TRATE to 10hz
...
This only takes effect if BLHeli is enabled with SERVO_BLH_MASK <> 0 or SERVO_BLH_AUTO = 1
2018-12-18 11:21:24 +09:00
Randy Mackay
b1c2229430
AP_BLHeli: add BLHeli to parameter descriptions
2018-12-17 19:01:46 +09:00
Randy Mackay
4bceabb333
AP_BLHeli: minor formatting fixes
2018-12-17 19:01:46 +09:00
Andrew Tridgell
1910f266a6
AP_BLHeli: added SERVO_BLH_REMASK for reversible motors
...
this allows the user to specify which motors are configured as
reversible (3D)
2018-11-16 08:33:35 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
6b2ad734b6
AP_BLHeli: correct SERVO_BLH_POLES parameter value range metadata
2018-11-02 20:44:15 +09:00
vierfuffzig
83f4f5c347
AP_BLHeli: add motor pole parameter
2018-10-20 10:15:34 +11:00