C# Class MissionPlanner.Log.PX4BinaryLog

Convert a binary log to an ascii log
Exibir arquivo Open project: Dronacharya-Org/Dronacharya

Public Methods

Method Description
ConvertBinaryToText ( string binaryFileName, string outputFileName ) : void
GenerateLogEntryClass ( LogEntryFMT fmt, TextWriter writer ) : void
GenerateLogEntryParser ( TextWriter writer ) : void
GetFormats ( ) : IEnumerable
ReadMessage ( Stream br ) : string
ReadMessageObjects ( Stream br ) : object
ReadMessageTypeOffset ( Stream br ) : long>.Tuple
logEntryFMT ( byte packettype, Stream br ) : void

Private Methods

Method Description
GetModesList ( ) : string>>.List
ProcessMessage ( byte message, string name, string format ) : string

Convert to ascii based on the existing format message

ReadLogFormat ( Stream br ) : LogEntryFMT
ReadRow ( byte packettype, Stream br ) : object
logEntry ( byte packettype, Stream br ) : string

Process each log entry

Method Details

ConvertBinaryToText() public method

public ConvertBinaryToText ( string binaryFileName, string outputFileName ) : void
binaryFileName string
outputFileName string
return void

GenerateLogEntryClass() public method

public GenerateLogEntryClass ( LogEntryFMT fmt, TextWriter writer ) : void
fmt LogViewer.Utilities.LogEntryFMT
writer System.IO.TextWriter
return void

GenerateLogEntryParser() public method

public GenerateLogEntryParser ( TextWriter writer ) : void
writer System.IO.TextWriter
return void

GetFormats() public method

public GetFormats ( ) : IEnumerable
return IEnumerable

ReadMessage() public method

public ReadMessage ( Stream br ) : string
br Stream
return string

ReadMessageObjects() public method

public ReadMessageObjects ( Stream br ) : object
br Stream
return object

ReadMessageTypeOffset() public method

public ReadMessageTypeOffset ( Stream br ) : long>.Tuple
br Stream
return long>.Tuple

logEntryFMT() public method

public logEntryFMT ( byte packettype, Stream br ) : void
packettype byte
br Stream
return void