Ejemplo n.º 1
0
 internal static MavlinkMessage Deserialize_LOG(byte[] bytes, int offset)
 {
     return(new Msg_log
     {
         time_usec = bitconverter.ToUInt64(bytes, offset + 0),
         logtype = bytes[offset + 8],
         logtext = ByteArrayUtil.ToChar(bytes, offset + 9, 200),
     });
 }
Ejemplo n.º 2
0
 internal static MavlinkMessage Deserialize_SETFUNCTIONSTATUS(byte[] bytes, int offset)
 {
     return(new Msg_setfunctionstatus
     {
         time_usec = bitconverter.ToUInt64(bytes, offset + 0),
         functionname = ByteArrayUtil.ToChar(bytes, offset + 8, 50),
         status = bytes[offset + 58],
     });
 }