mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
879 stars 990 forks source link

How to test my serial interface #916

Closed wazzan88 closed 6 years ago

wazzan88 commented 6 years ago

This is only bug and feature tracker, please use it to report bugs or request features.


Issue details

Hi , I am a beginner in field Ros and mavlink I hav a serial connection between FPGA Zedboard and my raspberry Pi3 I installed Ros and mavros on the Rsy pi and I sent am Hallo world messages from FPGA using Uart interface to Rsy pi I could see the messages using Terminal linux using minicom programm on the ACM0 interface in Rsy pi

so how could I test the libmavconn to see if mavros could see this message

the second question I followed source installation instructions to get prepared environment and sources of latest released mavros and mavlink packages. I Put your xml at src/mavlink/message_definitions/v1.0/ its name definitions.xml what do u mean ??
Edit src/mavros/libmavconn/include/mavconn/mavlink_dialect.h to add section for your dialect I had this file it included

include <mavlink/v2.0/common/common.hpp>

...... do u mean I should add ??

include <mavlink/v2.0/definitions/definitions.hpp> or????

please if there is any examples to make my work easier or details
thank u very much

Please describe the problem, or desired feature

MAVROS version and platform

Mavros: ?0.18.4? ROS: ?Kinetic? Ubuntu: ?Mat?

Autopilot type and version

[not used ] ArduPilot [not used ] PX4

Version: ?3.7.1?

Node logs

copy output of mavros_node. Usually console where you run roslaunch

Diagnostics

place here result of:
rostopic echo -n1 /diagnostics

Check ID

rosrun mavros checkid
vooon commented 6 years ago

I'm not quite understand what you trying to do. To test libmavconn enable debug output via rqt (or by rosconsole.config), key: log4j.logger.ros.rosconsole_bridge.mavcon.

Starting from 0.18 we use template generator to include all dialects, so editing of mvlink_dialect.h is not needed any more.

Better give difinitions.xml file more specific name, usually <autopilot>.xml.

wazzan88 commented 6 years ago

I am following the instruction to install mavros on raspberry p3. I had a Problem in virtual memory but I solved it when I made swap file but when I build the packages it took 2 hours I hav another question if I change the code of one Package should I build the whole packages ??

vooon commented 6 years ago

2 hours is small, usually rpi much slower (one of c++ weakness). But you can setup distcc and use USB hard drive to improve IO speed.

Normally build system will rebuild only changed files, so it should be faster.

wazzan88 commented 6 years ago

I wrote the Code that will send my mavlink messages one of them Hallo World message from FPGA and in Mavros there is no such message . where should I adjust mavros ?? I know that I should 1. add the xml file of the new messages into mavlink

  1. maybe I should add this new message into mavros_msgs/msg or ?? are there any parts that I should add this message to ??

    actually I read ur Code it is really perfect thank u for ur effort for my project. I think I can not use the parts that belongs to APM and PX4 or the mavros_extras what do u think ?? are there any parts that I do not need ??

    thank u very much

TSC21 commented 6 years ago

@wazzan88 if you have other questions please open a new issue which subject represents your question. Closing this now