|
|
@@ -128,7 +128,6 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
}
|
|
|
|
|
|
private eVehicleState vehicleState;
|
|
|
-
|
|
|
public eVehicleState VehicleStateProperty
|
|
|
{
|
|
|
get { return vehicleState; }
|
|
|
@@ -391,7 +390,13 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
|
|
|
if ( this.ObstacleStateProperty == eObstacleState.Blocked )
|
|
|
return false;
|
|
|
+
|
|
|
+ //Todo: 이동중 명령이 삭제 되면 처리 할일들.
|
|
|
+ if (!sql.SubCmdDAL.HasK(this.CurrentSubCommand.ID))
|
|
|
+ {
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@@ -426,6 +431,7 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ //Load, Unload 가 끝나면 메인 Command 를 완료 했다고 판다.
|
|
|
sql.CommandDAL.UpdateState( sub.CmdID, eCommandState.Complete );
|
|
|
sql.SubCmdDAL.Delete( sub );
|
|
|
|
|
|
@@ -462,6 +468,12 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Battery Charge
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="sub"></param>
|
|
|
+ /// <returns></returns>
|
|
|
public bool BatteryCharge( SubCmd sub )
|
|
|
{
|
|
|
|