File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ public static void SortLogs(string[] logs, string masterdestdir = "")
6868 bool issitl = false ;
6969 var sysid = 0 ;
7070 var compid = 0 ;
71+ var brdsernum = 0 ;
7172 var aptype = MAVLink . MAV_TYPE . GENERIC ;
7273 var packetsseen = 0 ;
7374
@@ -78,8 +79,10 @@ public static void SortLogs(string[] logs, string masterdestdir = "")
7879 //PARM, 68613507, SYSID_THISMAV, 1
7980
8081 var sysidlist = logBuffer . GetEnumeratorType ( "PARM" ) . Where ( a => a [ "Name" ] == "SYSID_THISMAV" ) ;
82+ var brdsernumlist = logBuffer . GetEnumeratorType ( "PARM" ) . Where ( a => a [ "Name" ] == "BRD_SERIAL_NUM" ) ;
8183
8284 sysid = int . Parse ( sysidlist . First ( ) [ "Value" ] . ToString ( ) ) ;
85+ brdsernum = int . Parse ( brdsernumlist . First ( ) [ "Value" ] . ToString ( ) ) ;
8386
8487 //logBuffer.dflog
8588
@@ -90,7 +93,8 @@ public static void SortLogs(string[] logs, string masterdestdir = "")
9093 var destdir = masterdestdir + Path . DirectorySeparatorChar
9194 + "SITL" + Path . DirectorySeparatorChar
9295 + aptype . ToString ( ) + Path . DirectorySeparatorChar
93- + sysid + Path . DirectorySeparatorChar ;
96+ + sysid + Path . DirectorySeparatorChar
97+ + brdsernum + Path . DirectorySeparatorChar ;
9498
9599
96100 if ( ! Directory . Exists ( destdir ) )
You can’t perform that action at this time.
0 commit comments