C# Class MissionPlanner.MagCalib

Exibir arquivo Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Methods

Method Description
DoGUIMagCalib ( bool dointro = true ) : void
LeastSq ( List data, bool ellipsoid = false ) : double[]

Does the least sq adjustment to find the center of the sphere

ProcessLog ( int throttleThreshold ) : void

Self contained process tlog and save/display offsets

SaveOffsets ( double ofs ) : void

saves the offests to eeprom, os displays if cant

SaveOffsets2 ( double ofs ) : void
SaveOffsets3 ( double ofs ) : void
getOffsets ( string fn, int throttleThreshold ) : double[]

Processes a tlog to get the offsets - creates dxf of data

getOffsetsLog ( string fn ) : double[]

Private Methods

Method Description
GetColour ( int pitch, int yaw ) : string
ReceviedPacket ( MAVLink rawpacket ) : bool
RemoveOutliers ( List &data ) : void
doDXF ( List vertexes, double x ) : void
doLSQ ( List data, Action fitalgo, double x ) : double[]
prd_DoWork ( object sender, ProgressWorkerEventArgs e, object passdata = null ) : void
radius ( Vector3 mag, Vector3 offsets, Vector3 diagonals, Vector3 offdiagonals ) : double
setMinorMax ( float value, float &min, float &max ) : void

Min or max finder

sphere_ellipsoid_error ( double p1, double fi, object obj ) : void
sphere_error ( double xi, double fi, object obj ) : void
sphere_scale_error ( double xi, double fi, object obj ) : void

Method Details

DoGUIMagCalib() public static method

public static DoGUIMagCalib ( bool dointro = true ) : void
dointro bool
return void

LeastSq() public static method

Does the least sq adjustment to find the center of the sphere
public static LeastSq ( List data, bool ellipsoid = false ) : double[]
data List list of x,y,z data
ellipsoid bool
return double[]

ProcessLog() public static method

Self contained process tlog and save/display offsets
public static ProcessLog ( int throttleThreshold ) : void
throttleThreshold int
return void

SaveOffsets() public static method

saves the offests to eeprom, os displays if cant
public static SaveOffsets ( double ofs ) : void
ofs double offsets
return void

SaveOffsets2() public static method

public static SaveOffsets2 ( double ofs ) : void
ofs double
return void

SaveOffsets3() public static method

public static SaveOffsets3 ( double ofs ) : void
ofs double
return void

getOffsets() public static method

Processes a tlog to get the offsets - creates dxf of data
public static getOffsets ( string fn, int throttleThreshold ) : double[]
fn string Filename
throttleThreshold int
return double[]

getOffsetsLog() public static method

public static getOffsetsLog ( string fn ) : double[]
fn string
return double[]