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...

Views: 307405

Attachments:

Reply to This

Replies to This Discussion

Definitely this one:

 https://github.com/chsw/MavLink_FrSkySPort

It contains fixes for the newer taranis firmware, and also has some great telemetry screens.

Thanks. I downloaded the sketch to the Teensy (did the libraries and Teensy add-on stuff). 

Not sure if the Teensy took the code though as the upload happens in an eye blink compared to something into a Mini or Micro Arduino. Is there a way to verify the upload other than cable it up and try it ?

Martin

Proceeded to cable it up and it seems alive. Flashes amber LED when powered by the X8R, solid On LED when APM Telem side cable is plugged in.

However I only get A1 reading so far (via the RX I guess) and no other telemetry values as yet from the APM.  

I can't compile the code. The output error is: fatal error: AP_HAL.h: No such file
or directory.

I have download and install Teensyduino 1.19.
I have download the last version https://github.com/chsw/MavLink_FrSkySPort.
I open MavLink_FrSkySPort.ino on orduino soft and select board Teensy 3.1, compile and out error.

If everything is working, the LED comes on and blinks slowly amber on power up.  It goes solid after the board finished booting, then begins blinking rapidly when the telemetry data is flowing.  Think blinky ethernet activity led while you are transferring a large file.  

I would double check the APM telemetry connection.

Things to note are you need Arduino IDE 1.0.5 not later (so the PJRC site says), and make sure the library folder in the zip file is moved or copied to the library folder in the Arduino IDE app folder with the IDE's own libraries.

Also noted that to install Teensyduino properly you can't have Arduino IDE running in another window while installing it...

Checking...

OK sorted it. After checking cabling again, and checking signals with a CRO (had Mavlink data, had data on the S.port line), I realised I'd put the output plug into SBus not S.port. Once swapped then the Teensy Led flickered rapidly. Changing it to S.port seems to help :)

However I still didn't have data on the Taranis tele displays (except A1 voltage from the RX). 

What it took was changing the TX mode in Taranis to D16 instead of D8 that I'd set it too first (and rebind). Then all data displayed as expected.

So it seems that selecting D16 mode is required on the X8R (I use D8 on my own copter with D8R just fine).

So, my issues were:

Wrong port on RX used

Wrong TX mode type selected in Taranis

The other concern was not being confident that the Teensy took the upload correctly and not knowing the expected Led behaviour. 

Now I can post the Teensy back to it's owner.

Thanks,

Martin

Another comment.

Could the Teensy flash the Led with a code (triple flash etc) when the S.port data is not present/correct. Would help sort the 'wrong port' issue for new users.

Could be:

Bootup - Single flashes

Missing Mavlink data - Double flash repeated

Missing S.port data - Triple flashe repeated

Missing Mavlink and S.port data - On solid

go into file->preferences and set the sketchbook location to the directory where you put the github repo.

In my case it is:

C:\QuadCopter\MavToTaranis\GitHub\MavLink_FrSkySPort

relaunch the tools then got to

file->sketchbook->MavLink_FrSkySPort

Then select

Sketch-> Verify/Compile

I copy library in Arduino folder and work fine. Thanks. At the end, open window with Teensy.

Thanks.

Maybe I'm over thinking this but what but what is the directory and file structure supposed to be on the Taranis? I see "Model_Name" and "_modelname_". Whats the difference supposed to be, my model name is "3drx4"? Telemetry seems to be working but I'm not sure I have everything setup right.

Thanks in advance.

Reply to Discussion

RSS

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service