Пример #1
0
 public void InstallAmbientLight(SensorPlot plot)
 {
     Install(plot);
     _updaters.Add(() =>
     {
         var light = _light.CurrentLight;
         plot.AddValues(light);
     });
 }
Пример #2
0
 public void InstallInclinometer(SensorPlot plot)
 {
     Install(plot);
     _updaters.Add(() =>
     {
         var inc = _inclinometer.CurrentGradient;
         plot.AddValues(inc.Pitch, inc.Roll, inc.Yaw);
     });
 }
Пример #3
0
 public void InstallAccelerometer(SensorPlot plot)
 {
     Install(plot);
     _updaters.Add(() =>
     {
         var acc = _accelerometer.CurrentAcceleration;
         plot.AddValues(acc.X, acc.Y, acc.Z);
     });
 }
Пример #4
0
 public void InstallGyrometer(SensorPlot plot)
 {
     Install(plot);
     _updaters.Add(() =>
     {
         var gyro = _gyrometer.CurrentAngularVelocity;
         plot.AddValues(gyro.X, gyro.Y, gyro.Z);
     });
 }
Пример #5
0
 public void InstallCompass(SensorPlot plot)
 {
     Install(plot);
     _updaters.Add(() =>
     {
         var comp = _compass.CurrentHeading;
         plot.AddValues(comp.Magnetic);
     });
 }