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
@Chris Song Did you tried my port?
I tried your code. But it's the same result that the degrees and minutes are zero. As you know just replace Serial1 from Teensy code and comments the C1,C2,C3 UARTs. I got the correct sensor values except GPS's latitude and longitude values that the degrees and minutes are zero. Do you have correct value of GPS?
FrSkySPort.ino: In function 'void FrSkySPort_Process()':
FrSkySPort.ino:33: warning: unused variable 'temp'
FrSkySPort.ino:34: warning: unused variable 'offset'
FrSkySPort.ino: In function 'void FrSkySPort_ProcessSensorRequest(uint8_t)':
FrSkySPort.ino:66: warning: deprecated conversion from string constant to 'char*'
FrSkySPort.ino:115: warning: deprecated conversion from string constant to 'char*'
FrSkySPort.ino:133: warning: deprecated conversion from string constant to 'char*'
FrSkySPort.ino:162: warning: deprecated conversion from string constant to 'char*'
FrSkySPort.ino:209: warning: deprecated conversion from string constant to 'char*'
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial\SoftwareSerial.cpp:59: warning: only initialized variables can be placed into program memory area
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void store_char(unsigned char, ring_buffer*)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:98: warning: comparison between signed and unsigned integer expressions
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void __vector_18()':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:127: warning: unused variable 'c'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In member function 'void HardwareSerial::begin(long unsigned int, byte)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:368: warning: unused variable 'current_config'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp: In member function 'virtual size_t HardwareSerial::write(uint8_t)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:467: warning: comparison between signed and unsigned integer expressions
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp:44: warning: '__progmem__' attribute ignored
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Tone.cpp:119: warning: only initialized variables can be placed into program memory area
I don't understand that you said. It's compiling warning and it's not related to GPS values. There is no GPS data in your captured image also.
It's compiling warning and it's not related to GPS values
So you think the same about it.^^
I don't understand which files I have to use with the pro mini : I get a message when compiling with the Arduino 1.5.6.r2 version "not enough memory for variables" ?
Could you telle me wich arduino sketch use ?
Ed
You need:
GCS_MAVLink in libraries:
http://svn.mbr89.de/listing.php?repname=arduino&path=%2Flibrari...
MavLink_FrSkySPort:
http://svn.mbr89.de/listing.php?repname=arduino&path=%2Fexample...
I'm using Arduino IDE 1.0.5-r2
OK : with this IDE no problem. So take care of the beta version of arduino IDE !
Thanks a lot, I will test as soon as I receive my goods from China !
Now it works ^^
https://www.sparkfun.com/products/11113