test.java
Go to the documentation of this file.
2 import com.MAVLink.common.*;
3 import com.MAVLink.Parser;
4 
5 import java.io.FileInputStream;
6 import java.io.FileNotFoundException;
7 import java.io.IOException;
8 
9 public class test {
10 
11  public static void main(String[] args) {
12  Parser mavParser = new Parser();
13  try {
14  FileInputStream tlog = new FileInputStream(args[0]);
15  try {
16  while(tlog.available() > 0) {
17  MAVLinkPacket packet = mavParser.mavlink_parse_char(tlog.read());
18  if(packet != null){
19  System.out.println("msgid: " + packet.msgid);
20  }
21  }
22  System.out.println("End tlog");
23  } catch (IOException e) {
24  // TODO Auto-generated catch block
25  e.printStackTrace();
26  }
27  } catch (FileNotFoundException e) {
28  // TODO Auto-generated catch block
29  e.printStackTrace();
30  }
31  }
32 }
Definition: test.java:9
static void main(String[] args)
Definition: test.java:11


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Jul 7 2019 03:22:07