public CRC generateCRC(byte[] packet) {
   CRC crc = new CRC();
   for (int i = 1; i < packet.length - 2; i++) {
     crc.update_checksum(packet[i] & 0xFF);
   }
   crc.finish_checksum(MAVLINK_MSG_ID_SERVO_OUTPUT_RAW);
   return crc;
 }
 public CRC generateCRC(byte[] packet) {
   CRC crc = new CRC();
   for (int i = 1; i < packet.length - 2; i++) {
     crc.update_checksum(packet[i] & 0xFF);
   }
   crc.finish_checksum(MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED);
   return crc;
 }