mavlink

hai sir,i need mavlink communication in my project which is in C#...i have to display lat,lng,alt,pitch,yaw,roll.....but iam new to this mavlink...i downloaded mavlink master from github....but i dont know how to use that...and how to interface with my project.... can anyone please tell me how to use mavlink in C#....Thanks in advance

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I used mavlink generated message header files... when iam calling the particular function like initialize(), deserialize() and i am trying to print the received types like attitude,lat etc but they are not coming.....can anyone help me to get those variables

    • I have got the same problems with you..Have you solved this problem yet? If so,would you mind to tell me. Thank you.

  • I solved the problem thanks...
  • Thank you.....By using python mavgenerator i generated header files in c#, but in that there is an error "the name 'ByteArrayUtil'does not exist in the current context".... how to solve this...which file i have to add for this...
  • thanks for your reply sir...but in the mission planner mavlink was used which is in c# code. Even if iam adding that mavlink.dll i didnt get the output.
    • Most of that code was rewritten for Mission Planner and uses very little of the Mavlink code even though it was based on it.

       

    • yes, I am aware of >15 different projects that interface autopilot over mavlink - none of them are C# , most are C , and 3 are Python.   due to little use there most lokely are bugs, and few examples on how-to do it.

  • ... Being locked to Microsoft world Osteen isn't easy. :-)
  • Yes, was just looking into this for some other coding I wanted to do.

    C# can't use the Mavlink code because it is in standard C and C# is object oriented.

    The function "mavlink_parse_char()" is the starting point that will take your serial data one byte at a time until it has a complete message and then return it back to you.  From there you can access the structures to determine what type of message it is and what values they hold.

    I suppose you could create a c function that just does the decoding and make it a DLL library that you could then call as an external function from C#.

    Have not gotten that far.

     

This reply was deleted.

Activity