|
|
@@ -288,44 +288,12 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //private void DriveControlEventPublish( DriveControlEventArgs args ) { }
|
|
|
-
|
|
|
private void DriveControlEventPublish(DriveControlEventArgs args)
|
|
|
{
|
|
|
args.EventDir = DriveControlEventArgs.eEventDir.ToFront;
|
|
|
this.eventAggregator.GetEvent<DriveControlPubSubEvent>().Publish(args);
|
|
|
}
|
|
|
|
|
|
- public void Init()
|
|
|
- {
|
|
|
- this.CreateClamp();
|
|
|
- this.CreateSteering();
|
|
|
-
|
|
|
- ThreadStart();
|
|
|
-
|
|
|
- //TimerUtils.Once(5000, () => { this.CurrentPosition = 1000; });
|
|
|
- }
|
|
|
-
|
|
|
- public int InitializationVehicle()
|
|
|
- {
|
|
|
- int result = 0;
|
|
|
- if (this.IsDetectedCenter()) //자제가 있으면 Lock
|
|
|
- result = this.clamp.Lock_Sync();
|
|
|
- else
|
|
|
- result = this.clamp.Unlock_Sync();
|
|
|
-
|
|
|
- if (this.motion.IsErrorOn)
|
|
|
- return 22;
|
|
|
-
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- public void Dispose()
|
|
|
- {
|
|
|
- this.cancel.Cancel();
|
|
|
- this.cancel.StopWaitAll();
|
|
|
- }
|
|
|
-
|
|
|
#region Request Method
|
|
|
|
|
|
private void ReqVehicleState(DriveControlEventArgs args)
|
|
|
@@ -442,6 +410,37 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ public void Init()
|
|
|
+ {
|
|
|
+ this.CreateClamp();
|
|
|
+ this.CreateSteering();
|
|
|
+
|
|
|
+ ThreadStart();
|
|
|
+
|
|
|
+ //TimerUtils.Once(5000, () => { this.CurrentPosition = 1000; });
|
|
|
+ }
|
|
|
+
|
|
|
+ public int InitializationVehicle()
|
|
|
+ {
|
|
|
+ int result = 0;
|
|
|
+ if (this.IsDetectedCenter()) //자제가 있으면 Lock
|
|
|
+ result = this.clamp.Lock_Sync();
|
|
|
+ else
|
|
|
+ result = this.clamp.Unlock_Sync();
|
|
|
+
|
|
|
+ if (this.motion.IsErrorOn)
|
|
|
+ return 22;
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void Dispose()
|
|
|
+ {
|
|
|
+ this.cancel.Cancel();
|
|
|
+ this.cancel.StopWaitAll();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
#region Thread
|
|
|
void ThreadStart()
|
|
|
{
|