Esempio n. 1
0
 private void EmitPosition(ICanPort Port, EarthPoint Position, bool Reliability)
 {
     CanFrame frame = new MmAltLongFrame(Position.Latitude,
                                         Position.Longitude,
                                         Reliability).GetCanFrame();
     CanFrame fx = CanFrame.NewWithId(0x5c0, frame.Data);
     Port.BeginSend(fx);
 }
Esempio n. 2
0
 private void EmitSpeed(ICanPort Port, double Speed)
 {
     var frame = new IpdEmulation
                 {
                     Sensor1State = IpdEmulation.SensorState.Get(Speed, Cogs, Diameter, IpdEmulation.SensorState.DpsSensorPlacement.Left),
                     Sensor2State = IpdEmulation.SensorState.Get(Speed, Cogs, Diameter, IpdEmulation.SensorState.DpsSensorPlacement.Left)
                 };
     Port.BeginSend(frame);
 }