C# Класс MissionPlanner.MagCalib

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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[]

Приватные методы

Метод Описание
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

Описание методов

DoGUIMagCalib() публичный статический Метод

public static DoGUIMagCalib ( bool dointro = true ) : void
dointro bool
Результат void

LeastSq() публичный статический Метод

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
Результат double[]

ProcessLog() публичный статический Метод

Self contained process tlog and save/display offsets
public static ProcessLog ( int throttleThreshold ) : void
throttleThreshold int
Результат void

SaveOffsets() публичный статический Метод

saves the offests to eeprom, os displays if cant
public static SaveOffsets ( double ofs ) : void
ofs double offsets
Результат void

SaveOffsets2() публичный статический Метод

public static SaveOffsets2 ( double ofs ) : void
ofs double
Результат void

SaveOffsets3() публичный статический Метод

public static SaveOffsets3 ( double ofs ) : void
ofs double
Результат void

getOffsets() публичный статический Метод

Processes a tlog to get the offsets - creates dxf of data
public static getOffsets ( string fn, int throttleThreshold ) : double[]
fn string Filename
throttleThreshold int
Результат double[]

getOffsetsLog() публичный статический Метод

public static getOffsetsLog ( string fn ) : double[]
fn string
Результат double[]