tijiao
This commit is contained in:
parent
7117d80fd4
commit
0daa9a79bc
File diff suppressed because it is too large
Load Diff
|
|
@ -62,7 +62,7 @@ namespace Script
|
|||
vehicleController = GetComponent<VehicleController>();
|
||||
vehicleStandardInput = GetComponent<VehicleStandardInput>();
|
||||
|
||||
StartModbus();
|
||||
// StartModbus();
|
||||
ModBusQueue();
|
||||
}
|
||||
|
||||
|
|
@ -94,17 +94,17 @@ namespace Script
|
|||
while (true)
|
||||
{
|
||||
// Debug.Log(client.modbusQueue.Count);
|
||||
if (client.modbusQueue.Count > 0)
|
||||
{
|
||||
// Debug.Log(client.modbusQueue.Count);
|
||||
// if (client.modbusQueue.Count > 0)
|
||||
// {
|
||||
// // Debug.Log(client.modbusQueue.Count);
|
||||
//
|
||||
// carData = client.modbusQueue.Dequeue();
|
||||
|
||||
carData = client.modbusQueue.Dequeue();
|
||||
|
||||
// if (ModbusTcpClient.modbusTcpClient.modbusQueue.Count > 0)
|
||||
// {
|
||||
// // Debug.Log(ModbusTcpClient.modbusTcpClient.modbusQueue.Count);
|
||||
//
|
||||
// carData = ModbusTcpClient.modbusTcpClient.modbusQueue.Dequeue();
|
||||
if (ModbusTcpClient.modbusTcpClient.modbusQueue.Count > 0)
|
||||
{
|
||||
// Debug.Log(ModbusTcpClient.modbusTcpClient.modbusQueue.Count);
|
||||
|
||||
carData = ModbusTcpClient.modbusTcpClient.modbusQueue.Dequeue();
|
||||
|
||||
|
||||
//方向盘
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class TrafficLightManager : MonoBehaviour
|
|||
|
||||
public void UpdateTrafficLightTexture(TrafficLightState state)
|
||||
{
|
||||
Debug.Log("123");
|
||||
// Debug.Log("123");
|
||||
|
||||
foreach (var light in trafficLights)
|
||||
{
|
||||
|
|
@ -113,12 +113,12 @@ public class TrafficLightManager : MonoBehaviour
|
|||
|
||||
void FixedUpdate()
|
||||
{
|
||||
Debug.Log("Delta Time: " + Time.deltaTime);
|
||||
// Debug.Log("Delta Time: " + Time.deltaTime);
|
||||
foreach (var group in lightGroups)
|
||||
{
|
||||
Debug.Log("Before: " + group.timer);
|
||||
// Debug.Log("Before: " + group.timer);
|
||||
// group.timer -= Time.deltaTime;
|
||||
Debug.Log("After: " + group.timer);
|
||||
// Debug.Log("After: " + group.timer);
|
||||
|
||||
// 更新红绿灯状态
|
||||
UpdateTrafficLightGroup(group);
|
||||
|
|
|
|||
|
|
@ -15,14 +15,14 @@ EditorUserSettings:
|
|||
value: 22424703114646680e0b0227036c52151802563f22213229
|
||||
flags: 0
|
||||
RecentlyUsedScenePath-3:
|
||||
value: 22424703114646680e0b0227036c4c0417050c6439262f2434
|
||||
flags: 0
|
||||
RecentlyUsedScenePath-4:
|
||||
value: 224247031146460a5c5f42371e2a4b09
|
||||
flags: 0
|
||||
RecentlyUsedScenePath-5:
|
||||
RecentlyUsedScenePath-4:
|
||||
value: 22424703114646680e0b0227036c52111f19276439262f2434
|
||||
flags: 0
|
||||
RecentlyUsedScenePath-5:
|
||||
value: 22424703114646680e0b0227036c4c0417050c6439262f2434
|
||||
flags: 0
|
||||
vcSharedLogLevel:
|
||||
value: 0d5e400f0650
|
||||
flags: 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue