Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 23 12:03
    sotomotocross edited #1502
  • Oct 23 11:59
    sotomotocross opened #1502
  • Oct 21 18:45
    nshahrestani commented #1013
  • Oct 21 18:45
    nshahrestani commented #1013
  • Oct 21 11:06
  • Oct 21 10:46
    mortenfyhn opened #1501
  • Oct 20 02:15
    tinng81 commented #1478
  • Oct 18 07:19
    petertheprocess opened #1500
  • Oct 17 14:28
    HenryHuYu commented #1374
  • Oct 16 09:56
    Hallouda commented #1240
  • Oct 16 09:55
    Hallouda commented #1240
  • Oct 16 08:55
    Travis mavlink/mavros (master) still failing (2810)
  • Oct 16 08:42

    vooon on master

    mavros_msgs/State: Add flight m… (compare)

  • Oct 16 08:42
    vooon closed #1499
  • Oct 16 07:10
    AlexisTM commented #1074
  • Oct 16 07:09
    AlexisTM commented #1074
  • Oct 16 03:37
    petertheprocess commented #1074
  • Oct 15 19:52
  • Oct 15 19:45
    mortenfyhn commented #1499
  • Oct 15 19:45
    mortenfyhn synchronize #1499
A. Taha Baki
@atahabaki
I've tested to overwrite the mission table... Existing one...
Screenshot from 2020-09-17 01-04-02.png
What is RangeFinder anyway?
Samuel Dudley
@SamuelDudley
At a guess you likely have a range finder configured in your parameters and your sitl is not simulating one.
A. Taha Baki
@atahabaki
How can I rotate the drone via mavros? Also how can I move it forward, backward, left, and right? Anyone knows? I need it really quickly. Is there a tutorial for it?
@SamuelDudley Yeah, could be. Anyway. Thanks for the reply. I won't care them. I don't need that type of sensors...
blubbi321
@blubbi321
anybody here with more experience who could explain/extend the docs on how to tf with mavros? (mavlink/mavros#1388)
Karthik Desai
@karthikdesai
@fnoop @SamuelDudley @mikeisted i just tried to do the same the other day. Wanted to update an already existing AUTO mission on ardupilot.
I wanted to update the altitude of every point in the mission, but some of the waypoints got appended. (i think it was the first one, did not investigate further. will do when i get the time)
and having a start_index>0 always return false on the service call.
Have you guys gotten it working?
romaster93
@romaster93
hello
i wand to use mavcmd mount_control cammnd
command
but gimbal dont move :(
Michael Mak
@wrmichaelmak
Hi guys! I just want to know your opinions on the advantages and disadvantages of ROS/MAVROS over other libraries/API like MAVSDK and Dronekit-Python? I can't seem to decide which one should I go for. FYI, I am going with APM flight stack and hence MAVSDK isn't too suited for it but nevertheless I am more focused on the advantages/disadvantages of ROS/MAVROS over other tools.
BossHater
@BossHater
Hello, I am using mavros to arm PX4. It is getting armed when the mav ids are default values. However for drones with a differrent ID, it is failing. All other connections are working. I am able to change modes, send velocity commands, receive all other data. Do I have to set some other parameter to enable arming? I have matched sys id and comp id while starting mavros.
Karthik Desai
@karthikdesai
@romaster93 You need to check if the mavlink ID is supported by the flightstack
Fnoop
@fnoop
@wrmichaelmak mavros is really nice and easy to use, multi-platform/language, and actually runs very well on low power platforms. mavsdk doesn’t work with ardupilot, and dronekit is heavy the cpu and essentially abandonware
pymavlink (which dronekit is built on) is well supported, so that’s a good option
Michael Mak
@wrmichaelmak
@fnoop thanks a lot for your input
A. Taha Baki
@atahabaki
@karthikdesai i tried so many times to append/update the table... None of them works. So, I quit. And if you achieve somehow, could you let me know?
Mike Isted, Head of Avionics
@mikeisted

@fnoop @SamuelDudley @mikeisted i just tried to do the same the other day. Wanted to update an already existing AUTO mission on ardupilot.
I wanted to update the altitude of every point in the mission, but some of the waypoints got appended. (i think it was the first one, did not investigate further. will do when i get the time)
and having a start_index>0 always return false on the service call.
Have you guys gotten it working?

I have not been able to update an existing mission directly, so assuming control using GUIDED mode as necessary.

Berke Yavas
@berkeyvx_twitter
PX4 have a MAVROS topic that named “setpoint_raw”. If coordinate_frame “FRAME_BODY_OFFSET_NED” is set, you can make drone move relative to the current vehicle heading. I searched all MAVROS topics for apm stack but cant find one. What is the equivalent of this coordinate_frame for Navio2 stack, or which topic should i use?
cjmv
@cjmv
Hi all... I have some generic kind-of-questions, concerning Mavros. I've recently starting playing with Pixhawk Cube black with ardurover flashed into it. The first thing I'm still not certain is, which launch file should I use... the px4.launch or the amp.launch. I would say the latter, but to be honest I don't see any difference while establishing connection.
Secondly... it seems that, when looking at the mavros master tree on GitHub, that only ArduPlane has actually been tested. Is this right?
cjmv
@cjmv
Overall, I would also like to know if anyone could point to me to some documentation that could help me to interpret some of the messages coming from mavros. For instance: I do tipically receive these kind of messages :
[ INFO] [1602067083.280416709]: MAVROS started. MY ID 1.240, TARGET ID 1.1
[ INFO] [1602067083.511427396]: CON: Got HEARTBEAT, connected. FCU: ArduPilot
[ INFO] [1602067083.555876469]: RC_CHANNELS message detected!
[ INFO] [1602067083.562877528]: IMU: Raw IMU message used.
[ WARN] [1602067083.579821751]: GP: No GPS fix
[ WARN] [1602067083.582776304]: TM: Wrong FCU time.
[ WARN] [1602067085.527491105]: VER: broadcast request timeout, retries left 4
[ WARN] [1602067086.531104291]: VER: broadcast request timeout, retries left 3
[ WARN] [1602067092.530697796]: CMD: Command 520 -- wait ack timeout
[ WARN] [1602067092.535666460]: VER: unicast request timeout, retries left 2
[ INFO] [1602067093.513241115]: HP: requesting home position
[ WARN] [1602067097.550086927]: CMD: Command 520 -- wait ack timeout
[ WARN] [1602067097.551553213]: VER: unicast request timeout, retries left 1
[ WARN] [1602067097.552315264]: PR: request list timeout, retries left 2
[ WARN] [1602067098.526675152]: CMD: Command 410 -- wait ack timeout
[ WARN] [1602067098.555338777]: PR: request list timeout, retries left 1
[ WARN] [1602067099.531839073]: WP: timeout, retries left 2
[ WARN] [1602067099.558542075]: PR: request list timeout, retries left 0
[ WARN] [1602067100.534419533]: WP: timeout, retries left 1
[ WARN] [1602067101.537630103]: WP: timeout, retries left 0
[ERROR] [1602067102.540608990]: WP: timed out.
cjmv
@cjmv
What does WP stands for? I can only imagine that PR is for PARAMETER; CMD for command... but then, what exactly is Command 520? I assume it's it's Mavlink related, although it seems that this command is deprecated since 08-2019 (https://mavlink.io/en/messages/common.html)
Fnoop
@fnoop
WayPoint
apm.launch
cjmv
@cjmv
Ahhh... thanks. Now... is there any reference documentation to it?
I'm also trying to get any type of feedback from the FC to my commands, but up until now no luck. For instance, I was thinking to get the FULL Parameter list from Ardupilot issuing: rosrun mavros mavcmd long 21 1 1 0 0 0 0 0
But I keep getting "Request failed. Check mavros logs. ACK: 4" or the ROS command just hangs... Any ideas?
Fnoop
@fnoop
it doesn’t look like your connection is very happy!
take a look in the logs, it should have more hints as to why
cjmv
@cjmv
Oh... ok... is there any more detailed logs? :-)... I thought that I had was what I was getting after doing roslaunch... ok... I'll have a look! thanks
Harsh Mittal
@harshmittal2210
Hello Everyone, I want to implement an obstacle avoidance system and for that, I am sending 2D LiDAR data at /mavros/obstacle/send but still it is not able to avoid them. Do I have to add/modify some parameters too?
I would really appreciate any help or any additional information regarding the same. Thank you.
cjmv
@cjmv
@fnoop It basically:
CMD: Command 21 -- wait ack timeout
After retrying 3 times
@fnoop So... you think that the problem is the connection then?
cjmv
@cjmv
From the description of the mavcmd command, it seems to be possible to issue a command such as :
rosrun mavros mavcmd long 20 1 1 SERIAL2_BAUD -1 0 0 0
Although I keep getting:mavcmd long: error: argument param3: invalid float value: 'SERIAL2_BAUD'
Which kind makes sense since "SERIAL2_BAUD" is definitely not a flat value! :-)
Am I wrongly interpreting the way this command should be used?
Guillaume MORIN-DUPONCHELLE
@GMDFr
Hi guys,
I am working on the MAVROS for Melodic and I got a lot of errors. Is there a Release of MAVROS Melodic stable ? Or an other process to install it ?
I fellow the tutorial : https://dev.px4.io/master/en/ros/mavros_installation.html
<==
Here the errors I get.
Artur93gev
@Artur93gev
Hi everyone. I'm pretty new to this, can anyone help with a suggestion or resource. I'm a Javascript developer and want to use mavlink, is there any provided solution?
Karthik Desai
@karthikdesai
@mikeisted I kinda got it to work. I downloaded the mission while the copter is doing its mission, changed the height of all the WPs and based on the current wp_seq, set the is_current flag to true to the next WP and uploaded the mission. I never had to go to GUIDED. The changes in mission was reflected after the current WP was reached
Fnoop
@fnoop
@Artur93gev - you’re in the wrong place, but try https://github.com/mavlink/MAVSDK-JavaScript
Harsh Mittal
@harshmittal2210

Hi everyone, I wanted to confirm one thing. Like I am trying to use mavros in companion board and SITL on the laptop. For that I am running the following command on the companion board:

roslaunch apm.launch fcu_url:=udp://127.0.0.1:14551@192.168.0.53:14555

where 192.168.0.53 is the laptop's IP address where mavproxy is running. It is giving the error
[ERROR] : udp0: sendto: Invalid argument

I was hoping if anyone can help me with this.

Jaime Machuca
@jmachuca77
udp://192.168.0.53:14555
Remove the 127 address
Michael Mak
@wrmichaelmak
Hi guys, I have a problem where the topics are not publishing e.g. /mavros/local_position/pose or /mavros/imu/data. What I am trying to achieve is that I want to have a simple Python subscriber to subscribe to the topic /mavros/local_position/pose to obtain the position but I got nothing. So to see if my Python code was the problem, I published some fake data to the topic /mavros/local_position/pose and sure enough my Python code was able to print out the right information. I tried to do "rostopic echo /mavros/local_position/pose" and it gives me nothing too. Do I need to arm the Pixhawk first before being able to get information from that topic and/or set it to offboard/guided mode? Btw, I am using APM instead of PX4 and I am using ROS Melodic on RPI 4.
Harsh Mittal
@harshmittal2210

udp://192.168.0.53:14555

Hi @jmachuca77 , thanks for your reply. If I am using the mentioned udp link it is giving the following error:
[ERROR] [1603266736.921163853]: UDP URL should contain @!
[FATAL] [1603266736.921264792]: FCU: DeviceError:url:UDP separator not found

I also tried using fcu_url:=udp://@192.168.0.53:14555 but still it was not able to communicate.

Also while running mavproxy on terminal I have set --out=192.168.0.53:14555