|
|
|
@ -44,11 +44,17 @@ public class ModelTrackControl : EGModule, IEGFramework |
|
|
|
if (CurrentRotation != 0) |
|
|
|
if (CurrentRotation != 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.EGSendMessage(new RequestTargetControl(2000, 500, true), this.GetModule<ModelSerialTest>().EngineSerialPort, ProtocolType.SerialPort); |
|
|
|
this.EGSendMessage(new RequestTargetControl(2000, 500, true), this.GetModule<ModelSerialTest>().EngineSerialPort, ProtocolType.SerialPort); |
|
|
|
|
|
|
|
DelayClear(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async void DelayClear() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
await Task.Delay(3000); |
|
|
|
this.EGSendMessage(new RequestTargetResetPosition(), this.GetModule<ModelSerialTest>().EngineSerialPort, ProtocolType.SerialPort); |
|
|
|
this.EGSendMessage(new RequestTargetResetPosition(), this.GetModule<ModelSerialTest>().EngineSerialPort, ProtocolType.SerialPort); |
|
|
|
CurrentRotation = 0; |
|
|
|
CurrentRotation = 0; |
|
|
|
this.GetModule<ModelActionStatus>().SetRotation(CurrentRotation); |
|
|
|
this.GetModule<ModelActionStatus>().SetRotation(CurrentRotation); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|