Hi all,
I just bought an FrSky Taranis for my quad copter and needed to get the Mavlink data up on the Taranis LCD telemetry display. So here is my solution using a Teensy3.1 as a converter between MavLink and the S.Port on FrSky X8R.
See attached file below...
Replies
Can anyone give me any insight as to what I am doing wrong here?
Arduino: 1.0.5-r2 (Windows 7), Board: "Teensy 3.1"
MavLink_FrSkySPort.ino: In function 'void setup()':
MavLink_FrSkySPort:121: error: 'FrSkySPort_Init' was not declared in this scope
MavLink_FrSkySPort.ino: In function 'void loop()':
MavLink_FrSkySPort:170: error: 'FrSkySPort_Process' was not declared in this scope
I figured it out. For some reason 7zip was creating a separate folder in the file for FrSkySPort and putting theFrSkySPort.ino in there. It still does that every time I extract the files. weird. I found an older version that extracted correctly here
http://diydrones.com/profiles/blogs/how-to-get-apm-pixhawk-telemetr...
then I noticed the difference in the files and just moved it where it should be.
This thing seems fantastic. So we can basically buy a Teensy3.1 and enjoy a telemetry link on the taranis directly from APM?
Is there a Pixhawk Teensy-less alternative?
Well hard to tell u would have to get the Pixhawk to change the Telemetry output to what the X8R could understand! and then wire it correctly!
I have pushed the changes I have worked on to github:
https://github.com/chsw/MavLink_FrSkySPort/releases/tag/1.4
Changes
- Acc X/Y/Z reports the average vibrations (difference between max/min) instead of actual accelerometer values.
- Reports gps-speed instead of hud-speed.
- Change how the code responds to tx telemetry requests. This fixes the missing cell/cells in the latest open-tx versions.
- Updated the cell detection to minimize the risk of detecting to many cells (unless the battery is low upon connection)
and changing the cell count inflight when the battery voltage drops.
- Changed the averaging for voltage/current to be more accurate to the voltage/current fluctuations. Hoping of increasing the
accurasy of the mAh-counter. Use FAS as both voltage/current source.
- Delays sending the voltage/current until the voltage reading through mavlink has stabilized. This should minimize the false
low battery-warnings upon model powerup.
Working well for me so far. Would have saved me a lot of time yesterday if I had waited. Thanks!!!
Hi Christian
I assume you're using
https://www.pjrc.com/teensy/hid_listen.html
to debug ??
or other way?
brgds
Luis
I mostly use the built in serial monitor in Arduino actually.
Don't really like the arduino-ide, but since I only made small changes I haven't looked into any alternatives.
Any update on a fix for Cells on 2.0.8?