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: 307047

Attachments:

Reply to This

Replies to This Discussion

yes, I do have long/alt info in the very first screen. also, I will try to flash my taranis with a new fw, as I am still using whatever it came with. 

yes, indeed I appreciate the armed/disarmed status and no pressure on the flight mode status, just a friendly reminder that it would be a great addition! 

Thanks Rolf,

I have here a Problem:

mavlink_msg_statustext_decode(&msg,&statustext);

MavLink_FrSkySPort_V1_33:328: error: 'statustext' was not declared in this scope

Peter

Sorry,

you must declare it in the beginning of the file, like this

mavlink_statustext_t statustext;

Any ideas' on how to show the  status and ARMED/DISARMED?

The Auto Pilot Mode is a number from 0 - 13

and the Armed/Disarmed is 1 or 0.

TNX - compiled now.

Now I have:

// MAVLINK_MSG_ID_STATUSTEXT
uint8_t     ap_severity = 0 ;
mavlink_statustext_t statustext;

                              case MAVLINK_MSG_ID_STATUSTEXT: {      
                                  mavlink_msg_statustext_decode(&msg,&statustext);
                                  ap_severity = (statustext.severity);
                                  }
 

          if (ap_severity == 0x01){
            digitalWrite( PORTNR_CH4 , HIGH);
          }

Compiles but does not work.

have you set pinMode(PORTNR_CH4,OUTPUT);

The code works on my test....

Yes, i have.

debugSerial.println(ap_severity);
debugSerial.println(statustext.text)

show also nothing.

Peter

Can you attach your code as a .zip file  so i can look at it?

OK, done.

Attachments:

You have put hte brake in the switch command at the wrong place. ;-)

Try this ...

.

Attachments:

Thank you for the time you give to me, Rolf.

It's funny, the file from you also will not work.

I have set in the MP FS_BATT_VOLTAGE on 14 volts.
With a power supply I rule the supply voltage from 16 volts down to 13 volts.
But the LED remains off.

Peter

Reply to Discussion

RSS

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service