public void InstallAmbientLight(SensorPlot plot) { Install(plot); _updaters.Add(() => { var light = _light.CurrentLight; plot.AddValues(light); }); }
public void InstallInclinometer(SensorPlot plot) { Install(plot); _updaters.Add(() => { var inc = _inclinometer.CurrentGradient; plot.AddValues(inc.Pitch, inc.Roll, inc.Yaw); }); }
public void InstallAccelerometer(SensorPlot plot) { Install(plot); _updaters.Add(() => { var acc = _accelerometer.CurrentAcceleration; plot.AddValues(acc.X, acc.Y, acc.Z); }); }
public void InstallGyrometer(SensorPlot plot) { Install(plot); _updaters.Add(() => { var gyro = _gyrometer.CurrentAngularVelocity; plot.AddValues(gyro.X, gyro.Y, gyro.Z); }); }
public void InstallCompass(SensorPlot plot) { Install(plot); _updaters.Add(() => { var comp = _compass.CurrentHeading; plot.AddValues(comp.Magnetic); }); }