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
Hi,
I am trying to get the telemetry data to my Horus X12s, via X8R receiver. Did anyone already get this setup running?
Here are some details:
- X12s with OpenTX v2.2 (installed via companion with lua option enabled)
- Teensy v3.2 with Mav_Sport2.1-2.2-master branch (installed via git clone)
- Pixhawk with Ardupilot v3.4.2
I tried to stick to the tutorial from [1] and configured the parameters in ardupilot and installed the teensy firmware as described. Now I stuck in configuring the X12s. But I don't know if the serial data is really send via the telemetry port2 to the teensy, if the teensy really encodes the messages and passes it on the X8R receiver and if the receiver really sends the data back to the horus in the right way.
If all this is OK, I don't know how to include the lua scripts in the horus. All tutorials refer to the tanaris and I don't know if I can use them as they are.
I appreciate any help!
[1] https://github.com/athertop/MavLink_FrSkySPort/wiki/1.-Setup
Thanks,
Markus
I will double check everything and do another flight to see if I can recreate the 'missing pointer' and post back here... thanks again.
RK
Paul Atherton said:
Tim,
There is a brand new SD card structure for 2.2. If you look on the 2.2-rc12 download page, you will see a link also to the SD card download. I believe that the passthru sensors are hidden from the telemetry page. You need to write the LUA code to access the sensor addresses directly. o be honest, I wouldn't take my word on this as its not something I have looked into much.
I will not be looking into the passthru protocol for a while as the Teensy solution works really well - even with 2.2, so I'll be sticking with that given I have a bunch of them (I think 5 of them now).
If you do get anywhere though then please let us know in here. Cheers, Paul
Tim Painter said:
Hi
just updated X9D to 2.2 but got message warning about sd card not v2.2, and extra sensors were not detected?
Hmmmm I think i will stick to 2.1.9 and teensy solution , all a bit beyond my experience to solve this lot.
Tim
ok thanks
Paul Atherton said:
well i seem to have fallen at the first hurdle fith this passthrough stuff.
in the discover sensors i find 5001 and a flight mode number as the value
in lua getValue ("5001") returns 0 .
if i select 5001 in telemetry screen this displays flight mode ok
Tx ver 2.1.9
Any ideas? anyone?
Tim Painter said:
Hi paul
Thanks for the spread sheet I think htis will be very helpful with creating a lua script to use pass-though data
Just have to work out how to extract the relevant bytes in lua ?
I have modified the existing lua (cant remember which fork ) to work with direct output from pixhawk / pixrapter, just change sensor names to Tmp1,Tmp2
no HDOP data available,or messages, but radar ,volts, current, speed,gps stats, seems to be ok.
Thanks again for the help
Tim
Paul Atherton said:
The log shows a top speed of 18.343 m/s which is just over 40mph. Would suggest comparing what you see on the Taranis with Mission Planner to see if there is a discrepancy. Remember that Mission planner likely shows speed in km/h, so when doing the comparison, select the same for speed units in the LUA telemetry screen. Also remember that you need to keep the sensor configuration for Gspd set to 'kts' in the model's telemetry sensors page - this is the default scale that is assigned by OpenTx, and any other value set for this will cause it to scale incorrectly. Again, all detailed in the wiki here: https://github.com/athertop/MavLink_FrSkySPort/wiki/1.2.-FrSky-Tara...
Cheers, Paul
I think this is the log. The time is says doesn't make sense so I'm not %100 sure. I sure don't see anything on here that looks even remotely close to 60 mph??? I swear that's what it said on my Taranis... perhaps it's a related issue.. I thought that seemed faster than what I was seeing.
81.BIN