C# Class MissionPlanner.MagCalib

Afficher le fichier Open project: ArduPilot/MissionPlanner Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static DoGUIMagCalib ( bool dointro = true ) : void
dointro bool
Résultat void

LeastSq() public static méthode

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
Résultat double[]

ProcessLog() public static méthode

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

SaveOffsets() public static méthode

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

SaveOffsets2() public static méthode

public static SaveOffsets2 ( double ofs ) : void
ofs double
Résultat void

SaveOffsets3() public static méthode

public static SaveOffsets3 ( double ofs ) : void
ofs double
Résultat void

getOffsets() public static méthode

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

getOffsetsLog() public static méthode

public static getOffsetsLog ( string fn ) : double[]
fn string
Résultat double[]