Websocket of airspeed and groundspeed


#1

Hello @srv

I am testing the web socket of airspeed and ground speed.
Using this api

new ROSLIB.Topic({
ros :ros,
name : ‘//mavros/vfr_hud’,
messageType : ‘mavros_msgs/VFR_HUD’,…

listenerHUD.subscribe(function(message) {

$('#aspeed').text(message.airspeed);
$('#gspeed').text(message.groundspeed);
$('#head').text(message.heading);
$('#hthrottle').text(message.throttle);
$('#halt').text(message.altitude);
$('#hclimb').text(message.climb);

});

Heading and other message working fine. but airspeed and groundspeed showing 0.0.
Please have a look into it.


#2

Hi,

Well I would have to take a look at it, but I think you are trying to test this on simulator and i am afraid that the sensors responsible to generate this data is most likely not being simulated. That’s why you are getting data as 0.0.