Adding MAVLINK support

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
ladicek
Posts: 4
Joined: Sun Jan 24, 2016 10:30 am
Country: -

Re: Adding MAVLINK support

Post by ladicek » Mon Jul 25, 2016 11:09 am

Hi, I was successfuly using your firmware for apm to s.port. But than I switched my APM and suddenly I only get NODATA than DISARMED and hdop and 0% blinking while I get all the data from the first APM. I tried everything, enabling telemetry, checking baudrate, reflashing firmware, reseting eeprom on apm but no luck.

Does anyone have an idea why is this happening on APM that works fine and is only 7days old.


User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Mon Jul 25, 2016 11:21 am

Can you connect direct from Mission Planner on your PC to this APM using the serial port (make sure you have non-inverted, logic level signals)?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

ladicek
Posts: 4
Joined: Sun Jan 24, 2016 10:30 am
Country: -

Re: Adding MAVLINK support

Post by ladicek » Mon Jul 25, 2016 11:22 am

Yes I can easly connect it to PC

ladicek

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Mon Jul 25, 2016 11:34 am

If you can do that (same serial port the Arduino connects to), then this will check the APM is working correctly on that serial port, as opposed to the USB connection.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

ladicek
Posts: 4
Joined: Sun Jan 24, 2016 10:30 am
Country: -

Re: Adding MAVLINK support

Post by ladicek » Mon Jul 25, 2016 5:11 pm

ohh sorry I thaught that serial port still means usb, How can I connect it to pc with df13 connector.

ladicek.


User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Mon Jul 25, 2016 5:27 pm

You would need a serial adapter with a logic level output (e.g. FTDI). If you don't have one then you probably are unable to do this test.

There may be some setting you need to do in Mission planner to enable that serial port. I'm not very familiar with setting up an APM.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

ladicek
Posts: 4
Joined: Sun Jan 24, 2016 10:30 am
Country: -

Re: Adding MAVLINK support

Post by ladicek » Tue Jul 26, 2016 9:38 pm

Hi, I tried with FTDI but no success. What sould I do in MP?

Ladicek

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Tue Jul 26, 2016 10:03 pm

I see in the first post I said "I've copied the SR0 values to SR1". I think these are parameters for the 2 serial ports.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: Adding MAVLINK support

Post by LTMNO » Wed Jul 27, 2016 1:26 pm

Wow, you guys have been busy.... great stuff on the Mavlink Support Mike et al. I will have to read on to see if any updates to the 9XTreme Mavlink Support... (not the (9XPro). Last I recall was that we pretty much had all working Telemetry wise with the ArduinoProMini running on the Quad(APM) side. My gear is collecting dust these days, not much time for flying and its been a terribly windy summer in YYZ Canada. Thanks again for all the hard work.
Custom 9x with M64/Telemetry Mod

samys13
Posts: 58
Joined: Mon Feb 29, 2016 5:55 pm
Country: -

Re: Adding MAVLINK support

Post by samys13 » Wed Jul 27, 2016 3:18 pm

hi mike, i would like to know if the rssi is outputed on the last mavlink firmware (mavlink proto)? as i'm using gitsly branch of openlrsng i have no rssi signal with Mavlink proto, but if i use Frsky proto, RSSI is ok.
thanx a lot
sam

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Wed Jul 27, 2016 3:35 pm

Probably not. Where does the RSSI signal come from? If you are using "mavlink over FrSky" with an arduino doing the conversion, then the RSSI is coming from the FrSky receiver. I have no idea where any RSSI value originates when using openlrsng.
When you use mavlink as the "Usr Proto", you have the mavlink data as sent. I don't currently know if there is an RSSI value available in that, I don't think I've seen one.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

samys13
Posts: 58
Joined: Mon Feb 29, 2016 5:55 pm
Country: -

Re: Adding MAVLINK support

Post by samys13 » Thu Jul 28, 2016 3:35 pm

in openlrsng configurator i can select the protocole to use for telemetry, frsky or mavlink (transparent). If i select frsky the rssi comes from the receiver corectly but if i select mavlink (transparent) no rssi comes from the receiver. i beleive that is due to the openlrsng firmware...

User avatar
Kilrah
Posts: 10186
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Adding MAVLINK support

Post by Kilrah » Thu Jul 28, 2016 4:35 pm

That is normal, if you select transparent then no own data can be sent by the receiver anymore.

baucho
Posts: 6
Joined: Wed Dec 30, 2015 5:12 pm
Country: -

Re: Adding MAVLINK support

Post by baucho » Sun Jul 31, 2016 10:59 am

image.jpeg
image.jpeg
Hello everybody
I tested the latest mavlink2 fw on my 9xr pro with xjt ,pixhawk apm copter 3.3.3 and the x8r! I don't have a bluetooth module!

When I changed usrproto to arduc there was that amazing info screen but some things won't work for me!

Screen always showes disarmed, hdop always 0.00 , can't get fuel to show level and I don't know what dth and rcq is

Thanks a lot Mike for sharing this!
Attachments
image.jpeg
image.jpeg
image.jpeg
image.jpeg
image.jpeg
image.jpeg
image.jpeg
image.jpeg
image.jpeg

User avatar
RCHH
Posts: 465
Joined: Sun Jun 24, 2012 2:48 pm
Country: -
Location: Plymouth

Re: Adding MAVLINK support

Post by RCHH » Sun Jul 31, 2016 11:22 am

Is your APM connected to Mission Planner with USB at the time? If so, that is normal. Full info only appears once disconnected from the computer.
The simpleton asked "Hows about ErSky9X for Horus???". And the Genius from Dorset replied "Why not indeed? I shall get right onto it!" And then there was light on Horus! And it was good!

baucho
Posts: 6
Joined: Wed Dec 30, 2015 5:12 pm
Country: -

Re: Adding MAVLINK support

Post by baucho » Sun Jul 31, 2016 12:04 pm

okay i think it was my fault... fuel only works if i set mah alarm in the tx? now i saw the percentage but still no hdop, only disarm... i have my x8r connectet over an inverter cable trough s-port! Does all the infos only show up with the arduino? if so where is an tutorial how to wire up to pixhawk and software for it =) thanks in advance!
btw: i am not connected over usb or radio module right now to Mission Planner!
Greets from germany

baucho
Posts: 6
Joined: Wed Dec 30, 2015 5:12 pm
Country: -

Re: Adding MAVLINK support

Post by baucho » Mon Aug 01, 2016 8:18 am

Okay so Right now im trying the arduino pro but without succes! No arming status only blinking! I'm going on trying later after work

Hmm still no succes with the arduiono... Dont Know why...

baucho
Posts: 6
Joined: Wed Dec 30, 2015 5:12 pm
Country: -

Re: Adding MAVLINK support

Post by baucho » Wed Aug 03, 2016 8:37 pm

okay i flashed the arduino pro mini wit the mavlink to frsky files but only have succes when i remove the f from airspeed! i soldered the vcc gnd tx and rx to serialport 4/5 on pixhawk! rx and tx reverse! then i wire my signal line from x8r to d5 on arduino but i have only no data blinking on 9xr pro! with or without ground line on sport! i tried to switch the usrproto to another one like arduc but still nosucces! in mission planner serial 4 baud is 57 and protocoll 1 for gcs mavlink or 4 for frsky s-port does not change anything.... i tried on telem 1 port but same here... with d2 on gnd i got disarm , hdop 9.99 switching fuel from 0-100 % but nothing correct and nothing more!tm ok shows 2

oh man am i right that all this only is for 9x not 9xr????


damn okay finding out that without connected ftdi it works hell yeah Ftdi was connected with USB only to arduino but without it ist seems to work for me... Sorry for Spamming
image.jpeg
Attachments
image.jpeg

Geofrancis
Posts: 27
Joined: Sat Jul 02, 2016 10:44 am
Country: -

Re: Adding MAVLINK support

Post by Geofrancis » Sun Aug 07, 2016 4:20 pm

MikeB wrote:I think so. For information, the sensors showing just as numbers are as follows:

HOME_DIR 0xA
HOME_DIST 0xB
CPU_LOAD 0xC
GPS_HDOP 0xD
WP_NUM 0xE
WP_BEARING 0xF

BASEMODE 0x1D
WP_DIST 0x1E
HEALTH 0x1F
STATUS_MSG 0x20

Mike.

im using your adapter with opentx on a taranis and i was wondering if you could add some parameters, specifically sonar/lidar range and some way of knowing if optical flow has a lock on the ground or not. also could you give a more detailed description of the values with the ???? below thanks.

SENSORS VALUE INSTANCE
1 SWR SWR
2 RSSI RSSI
3 RxBT RX voltage
4 VFAS 0.00V Flight battery voltage
5 001D 81 0 BASEMODE ?????????
6 Tmp2 103C SATS
7 CuRR 0.0A Current
8 RPM 0 27 ??????????
9 0007 48-50 ???????????
10 000C 25 CPU_LOAD
11 000A 90 HOME_DIR
12 000F 270 WP_BEARING
13 GPS - Coordinates
14 FUEL -1.00% Capacity percentage.
15 Galt -.3m GPS Altitude
16 000D 75 HDOP
17 000E 0 WP_NUM
18 Aspd 0.1knts Airspeed
19 Tmp1 -513 Flight Modes
20 Alt 1m Altitude
21 Hdg 284 Heading
22 Gppd .4knts ??????????????
23 000B 0.00V HOME_DIST
24 0020 99 0 ? Status Message ???????????
25 001F 0 0 Health ??????????????
26 001E 0 0 WP Distance
Last edited by Geofrancis on Sun Aug 07, 2016 4:30 pm, edited 2 times in total.

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Sun Aug 07, 2016 4:29 pm

I may be able to add them, when I get some time!
One problem is these items don't have a corresponding FrSky SPort ID, so mapping them will need some effort.
I'll also need to look in the MavLink messages to find where they are, and even if they are in those messages the Arduino requests.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

samys13
Posts: 58
Joined: Mon Feb 29, 2016 5:55 pm
Country: -

Re: Adding MAVLINK support

Post by samys13 » Mon Aug 22, 2016 7:42 pm

MikeB wrote:Probably not. Where does the RSSI signal come from? If you are using "mavlink over FrSky" with an arduino doing the conversion, then the RSSI is coming from the FrSky receiver. I have no idea where any RSSI value originates when using openlrsng.
When you use mavlink as the "Usr Proto", you have the mavlink data as sent. I don't currently know if there is an RSSI value available in that, I don't think I've seen one.

Mike.
Hi mike, my rssi signal come frrom the apm in the mavlink stream, i can found it on mission planer connected by bluetouth but can't display it on my 9xr pro, do you think it can be added in the firmware?

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Mon Aug 22, 2016 9:29 pm

Can you find which MavLink message the RSSI value is in please?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

samys13
Posts: 58
Joined: Mon Feb 29, 2016 5:55 pm
Country: -

Re: RE: Re: Adding MAVLINK support

Post by samys13 » Tue Aug 23, 2016 9:22 am

MikeB wrote:Can you find which MavLink message the RSSI value is in please?

Mike.
I found this,
ImageImageImageImage

I found it on mavlink.org/messages/common

Envoyé de mon GT-I8190 en utilisant Tapatalk

samys13
Posts: 58
Joined: Mon Feb 29, 2016 5:55 pm
Country: -

Re: RE: Re: RE: Re: Adding MAVLINK support

Post by samys13 » Wed Aug 31, 2016 9:11 am

samys13 wrote:
MikeB wrote:Can you find which MavLink message the RSSI value is in please?

Mike.
I found this,
ImageImageImageImage

I found it on mavlink.org/messages/common

Envoyé de mon GT-I8190 en utilisant Tapatalk
Hi mike. Is that can help you or you need another thing?

Envoyé de mon GT-I8190 en utilisant Tapatalk

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Wed Aug 31, 2016 10:00 am

Yes, it should help, I've just had too many other things to do thatI haven't got around to looking at this.
I take it you are using openlrs, so not the Arduino over FrSky.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

samys13
Posts: 58
Joined: Mon Feb 29, 2016 5:55 pm
Country: -

Re: Adding MAVLINK support

Post by samys13 » Wed Aug 31, 2016 10:07 am

MikeB wrote:Yes, it should help, I've just had too many other things to do thatI haven't got around to looking at this.
I take it you are using openlrs, so not the Arduino over FrSky.

Mike.
no worry mike i imagine that you should have a lot of work. yes i use openlrs and it work perfecltly with mavlink proto.

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Wed Aug 31, 2016 10:48 am

I've just had a look and I'm seeing a message #166 called "Radio" that also has RSSI in it. I'm not clear that message #109 (in your post) exists still.
Anyone know which message (or if both) carry the RSSI value?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

samys13
Posts: 58
Joined: Mon Feb 29, 2016 5:55 pm
Country: -

Re: Adding MAVLINK support

Post by samys13 » Wed Aug 31, 2016 11:38 am

MikeB wrote:I've just had a look and I'm seeing a message #166 called "Radio" that also has RSSI in it. I'm not clear that message #109 (in your post) exists still.
Anyone know which message (or if both) carry the RSSI value?

Mike.
found this http://diydrones.com/forum/topics/mavlink-packet

see at the bottom

Geofrancis
Posts: 27
Joined: Sat Jul 02, 2016 10:44 am
Country: -

Re: Adding MAVLINK support

Post by Geofrancis » Thu Sep 01, 2016 8:50 pm

I found this and I see they have added polling to the library and to get it to show on taranis they are just inserting a fake rssi. if you added this to your arduino board as an option then it would be able to run either air or ground side and inject rc rssi from the apm instead.

http://www.rcgroups.com/forums/showpost ... ostcount=1

User avatar
MikeB
9x Developer
Posts: 16560
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding MAVLINK support

Post by MikeB » Sat Sep 03, 2016 8:53 pm

I've posted a test version that might handle RSSI, but I can't test it.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


Post Reply

Return to “erskyTx (was ersky9x)”