Exception in thread "main" java.nio.BufferUnderflowException
Closed this issue · 3 comments
Hi.
I'm trying to use your simulator, but I'm getting this error when I run mavros (rosrun mavros px4.launch). On mavros I get one heartbeat, and then mavros looses connection with the simulator.
Can you help me?
Exception in thread "main" java.nio.BufferUnderflowException
at me.drton.jmavlib.mavlink.MAVLinkMessage.(MAVLinkMessage.java:82)
at me.drton.jmavlib.mavlink.MAVLinkStream.read(MAVLinkStream.java:39)
at me.drton.jmavsim.UDPMavLinkPort.update(UDPMavLinkPort.java:66)
at me.drton.jmavsim.MAVLinkConnection.update(MAVLinkConnection.java:44)
at me.drton.jmavsim.World.update(World.java:33)
at me.drton.jmavsim.Simulator.run(Simulator.java:159)
at me.drton.jmavsim.Simulator.(Simulator.java:132)
at me.drton.jmavsim.Simulator.main(Simulator.java:168)
same problem... also get the following errors:
FCU: command unsupported: 520 (mavros)
MSG: command unsupported: 520 (jMAVSim)
Fixed in #15. Test please!
@FabioArnez, it's messages from autopilot I think, so need to find who sends this command first.
Fixed in master, test please.