paramId weird output
BasvanH opened this issue · comments
Hi, i'm receiving packets thru serial port from a CubeOrnage HX4. I want to read the paramId of the received packets, when outputting these the content is unreadable. I tried to figure out if its a encoding issue but I havent found it.
const data = packet.protocol.data(packet.payload, clazz);
const value = packet.protocol.data(packet.payload, MavLink.common.ParamValue);
if (data.hasOwnProperty('airspeed')) {
console.log(value.paramId);
}
Output examples:
Âõh¿
{�.¿
��Y¿
Goal is to determine what type of packet is received in regards to the protocol specification.