Are there any updates for TMotor Datalink2 telemetry support? That fancy silver box doesn’t seem good for much lol.
It is supported in ArduCopter 4.5.0-beta1 and later. It is a lua script applet, and documented in: https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_Scripting/drivers/Hobbywing_DataLink.md
That’s awesome! Thanks!
As I understand if this telemetry is used there is possibility to create much better notch filters and reduce vibration ?
Yes, that is correct. And once you have that follow:
when will release the 4.5 official version?
the tmotor datalink v2 wil works?
@PVR2022 there is no release date yet, it will be released when it is ready.
Yes, it does work fine right now.
I just set everything up for rpm telemetry, but have a question. Given an external lua script and the datalink2 hardware, is the monitoring fast enough for an rpm based filter? With 8 motors (42 pole), are there considerations in the rpm based filer settings to keep in mind? Thanks!
I would be interested in the answer to this too as Lua Script rate scheduling limitations has come up in another context.
So in what respect does it “work fine”?
in the official version of copter 4.5 it will be mandatory use a lua script to make works the tmotor datalink module to read esc telemetry??
Yes, that is correct. You need lua scripting enabled, and that requires an F7 or H7 processor.
The first three times I armed and spun up the motors, all esc’s reported correct rpms except number 6. It just sat at about 180. If I dropped the rpm’s to zero and quickly spun up, 6 would show around 800 and then back to 180. The next few times arming, number 6 is correct. Strange.
I’m trying to configure the script and I get a message saying that I’m out of memory.
Configuration: Cuav V5+ controller with 2MB Flash and STM32F765.
Version ardupilot = 4.5.6
I use a proximity sensor and two GPS units.
The parameter SCR_ENABLE = 1 was set.
The memory available to the script = 1048576
I added two files to the scripts folder:
1 - Hobbywing.DataLink.lua
2 - Hobbywing.DataLink.md
I connected the DataLink T-Motor to serial 4 of the V5+ and set SERIAL4_PROTOCOL = 28.
Does anyone have any idea how to solve this?
Lower the available memory for scripting, since CUAV V5+ has only 512K RAM. (Or get an FC with 1M RAM, like Cube Orange)
2 - Hobbywing.DataLink.md is not needed, thats a Github Readme file.
Probably your F765 is overloaded/RAM full. Reduce the load by disabling features. Reduce the number of EKF threads to one, disable smart RTL. Probably there are some more options that i can’t remember atm.
Does the Hobbywing Datalink v2 work with T-Motor alpha ESCs?
I’m using the datalink V2 from t-motor and trying to read the connected alpha 80A escs. When I visualize with logic analyzer Im able to see the datas getting communicated via uart 115200bps.
The setup is, 6S Battery connecting Alpha 80A esc and Datalink V2, no motors are connected as alpha escs sends data even without connecting the motor, (verified with logic analyser)
The connections are from the 3 pin connector in alpha to datalinkv2:
ALPHA UART TX Pin → DatalinkV2 D1 Pin
ALPHA 5V Pin (Red) → Datalink “+” Pin
ALPHA UART GND Pin → DatalinkV2 “-” Pin
From DatalinkV2 to Ardupilot Cube Orange Plus (as mentioned here The Cube Orange/+ With ADSB-In Overview — Copter documentation): TELEM1 Port
VCC → NC
TX OUT → NC
RX IN → TX1 of DatalinkV2
CTS → NC
RTS → NC
GND → “-” of DatalinkV2
Now coming to the software side:
I have uploaded this file in mission planner (ardupilot/libraries/AP_Scripting/drivers/Hobbywing_DataLink.lua at master · ArduPilot/ardupilot · GitHub )
SCR_ENABLE = 1
ESC_HW_ENABLE = 1
ESC_HW_OFS = 0
ESC_HW_POLES = 11
SERIAL1_PROTOCOL = 28 (Scripting)
Since Im using TELEM1 Port of the cube orange +.
The parameters are loaded via Write Params
The Preflight_Reboot_Shutdown is done.
Then it is force armed in mission planner.
No messages are printed in the message box. Where do I see the messages, also the lua script also dataflash logs of all the 8 escs for post flight analysis after downloading the logs from cube orange plus. I can only see that the ESC_HW: loaded message is printed in the message box, which I think verifies the code is functioning.
I want the datas to be visible in the dataflash logs and also see whether the data is received and processed by the lua script and stored as logs.
I even tried downloading the logs, but in that the data is stored in the ESC_TELEMETRY_1_TO_4 field I think, as the voltage is matching with my battery voltage 24.60V, which is mentioned as 2460. But why individual esc’s voltage, current, phase current, input throttle, output throttle, mos temp, cap temp, RPM, is not logged. Please help me out.
The other user that got this working had the motors connected and spinning… just saying.
Even if i connect my motor and had it spinning i can read the rpm value But the way in which it is logged inside the cube orange plus when viewed through uav viewer is not gonna change i believe.
All I want is the 8 esc data to be individually logged.
It’s time to update to ArduCopter 4.6.0-beta1 and re-test then.
Why are you using ArduRover FW?