Adding MAVLINK support
Re: Adding MAVLINK support
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.
Does anyone have an idea why is this happening on APM that works fine and is only 7days old.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
Yes I can easly connect it to PC
ladicek
ladicek
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
ohh sorry I thaught that serial port still means usb, How can I connect it to pc with df13 connector.
ladicek.
ladicek.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
Hi, I tried with FTDI but no success. What sould I do in MP?
Ladicek
Ladicek
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
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
Re: Adding MAVLINK support
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
thanx a lot
sam
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
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...
Re: Adding MAVLINK support
That is normal, if you select transparent then no own data can be sent by the receiver anymore.
Re: Adding MAVLINK support
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!
Re: Adding MAVLINK support
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!
Re: Adding MAVLINK support
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
btw: i am not connected over usb or radio module right now to Mission Planner!
Greets from germany
Re: Adding MAVLINK support
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...
Hmm still no succes with the arduiono... Dont Know why...
Re: Adding MAVLINK support
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
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
-
- Posts: 27
- Joined: Sat Jul 02, 2016 10:44 am
- Country: -
Re: Adding MAVLINK support
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.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
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?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.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
Can you find which MavLink message the RSSI value is in please?
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: RE: Re: Adding MAVLINK support
I found this,MikeB wrote:Can you find which MavLink message the RSSI value is in please?
Mike.
I found it on mavlink.org/messages/common
Envoyé de mon GT-I8190 en utilisant Tapatalk
Re: RE: Re: RE: Re: Adding MAVLINK support
Hi mike. Is that can help you or you need another thing?samys13 wrote:I found this,MikeB wrote:Can you find which MavLink message the RSSI value is in please?
Mike.
I found it on mavlink.org/messages/common
Envoyé de mon GT-I8190 en utilisant Tapatalk
Envoyé de mon GT-I8190 en utilisant Tapatalk
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
no worry mike i imagine that you should have a lot of work. yes i use openlrs and it work perfecltly with mavlink proto.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.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Adding MAVLINK support
found this http://diydrones.com/forum/topics/mavlink-packetMikeB 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.
see at the bottom
-
- Posts: 27
- Joined: Sat Jul 02, 2016 10:44 am
- Country: -
Re: Adding MAVLINK support
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
http://www.rcgroups.com/forums/showpost ... ostcount=1
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Adding MAVLINK support
I've posted a test version that might handle RSSI, but I can't test it.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!