Skip to content

Commit c5b4fe1

Browse files
committed
hacking 1678
1 parent d790c3c commit c5b4fe1

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

FRCDrivingSimulator/Assets/Materials/SignalLight.mat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ Material:
8080
- _ZWrite: 1
8181
m_Colors:
8282
- _Color: {r: 0, g: 0, b: 0, a: 1}
83-
- _EmissionColor: {r: 2, g: 0.61046064, b: 0, a: 2}
83+
- _EmissionColor: {r: 0.5, g: 0.15261516, b: 0, a: 0.5}
8484
m_BuildTextureStacks: []
8585
m_AllowLocking: 1

FRCDrivingSimulator/Assets/Scenes/Crescendo.unity

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294809,7 +294809,7 @@ GameObject:
294809294809
m_Icon: {fileID: 0}
294810294810
m_NavMeshLayer: 0
294811294811
m_StaticEditorFlags: 0
294812-
m_IsActive: 1
294812+
m_IsActive: 0
294813294813
--- !u!4 &905055556
294814294814
Transform:
294815294815
m_ObjectHideFlags: 0
@@ -598422,7 +598422,7 @@ GameObject:
598422598422
m_Icon: {fileID: 0}
598423598423
m_NavMeshLayer: 0
598424598424
m_StaticEditorFlags: 0
598425-
m_IsActive: 0
598425+
m_IsActive: 1
598426598426
--- !u!4 &1870384711
598427598427
Transform:
598428598428
m_ObjectHideFlags: 0
@@ -598498,7 +598498,7 @@ MonoBehaviour:
598498598498
player: {fileID: 68329602}
598499598499
shootSound: {fileID: 8300000, guid: 766670c41f3c6e6479bf8e00ce4216e9, type: 3}
598500598500
spedUpSound: {fileID: 8300000, guid: 3b824dd9b5158ce49ba7facfb7c0d616, type: 3}
598501-
shootingLatency: 0.6
598501+
shootingLatency: 0.3
598502598502
intakeLatency: 0
598503598503
ampingLatency: 0.4
598504598504
hiddenNote: {fileID: 1476096484}
@@ -599315,7 +599315,7 @@ MonoBehaviour:
599315599315
m_Name:
599316599316
m_EditorClassIdentifier:
599317599317
alliance: 0
599318-
robot: 0
599318+
robot: 2
599319599319
target: {fileID: 2059917030}
599320599320
lobTarget: {fileID: 0}
599321599321
shooterPivot: {fileID: 1727389363}
@@ -1029021,7 +1029021,7 @@ MeshCollider:
10290211029021
m_LayerOverridePriority: 0
10290221029022
m_IsTrigger: 0
10290231029023
m_ProvidesContacts: 0
1029024-
m_Enabled: 1
1029024+
m_Enabled: 0
10290251029025
serializedVersion: 5
10290261029026
m_Convex: 1
10290271029027
m_CookingOptions: 30
@@ -1029043,7 +1029043,7 @@ MeshCollider:
10290431029043
m_LayerOverridePriority: 0
10290441029044
m_IsTrigger: 0
10290451029045
m_ProvidesContacts: 0
1029046-
m_Enabled: 1
1029046+
m_Enabled: 0
10290471029047
serializedVersion: 5
10290481029048
m_Convex: 1
10290491029049
m_CookingOptions: 30
@@ -1208199,7 +1208199,7 @@ MeshCollider:
12081991208199
m_LayerOverridePriority: 0
12082001208200
m_IsTrigger: 0
12082011208201
m_ProvidesContacts: 0
1208202-
m_Enabled: 1
1208202+
m_Enabled: 0
12082031208203
serializedVersion: 5
12082041208204
m_Convex: 1
12082051208205
m_CookingOptions: 30
@@ -1208221,7 +1208221,7 @@ MeshCollider:
12082211208221
m_LayerOverridePriority: 0
12082221208222
m_IsTrigger: 0
12082231208223
m_ProvidesContacts: 0
1208224-
m_Enabled: 1
1208224+
m_Enabled: 0
12082251208225
serializedVersion: 5
12082261208226
m_Convex: 1
12082271208227
m_CookingOptions: 30

FRCDrivingSimulator/Assets/Scripts/2024/AmpMechScripts/JointBackpackAmpArm.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ private void Update()
7474
}
7575
else
7676
{
77-
if (robot == RobotSettings.CitrusCircuits)
78-
{
79-
if (!moveIntake) { intake.StowIntake(); moveIntake = true; intake.isAmping = false; }
80-
}
8177
robotController.canIntake = true;
8278
}
8379
}
@@ -92,11 +88,17 @@ private IEnumerator AmpArm()
9288

9389
source.resource = stall;
9490
source.Play();
95-
96-
yield return new WaitForSeconds(0.98f);
91+
yield return new WaitForSeconds(0.4f);
9792

9893
isAtPosition = true;
9994
isMoving = false;
95+
if (robot == RobotSettings.CitrusCircuits)
96+
{
97+
if (!moveIntake) { intake.StowIntake(); moveIntake = true; intake.isAmping = false; }
98+
}
99+
robotController.canIntake = true;
100+
101+
yield return new WaitForSeconds(0.58f);
100102
}
101103

102104

FRCDrivingSimulator/Assets/Scripts/2024/RobotAlignToSpeaker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private IEnumerator RotateTowardsTarget(Quaternion targetRotation, Transform tar
268268
if (alliance == Alliance.Blue) { DriveController.canBlueRotate = false; }
269269
else { DriveController.canRedRotate = false; }
270270

271-
if (robot != RobotSettings.CCShambots) {
271+
if (robot != RobotSettings.CCShambots && robot != RobotSettings.CitrusCircuits) {
272272
while (Quaternion.Angle(robotRigidbody.rotation, targetRotation) > 0.1f) {
273273

274274
robotRigidbody.rotation = Quaternion.RotateTowards(robotRigidbody.rotation, targetRotation, rotationSpeed * Time.deltaTime);

FRCDrivingSimulator/Assets/Scripts/2024/SourceRingLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class SourceRingLoader : MonoBehaviour, IResettable
2424
private float drop;
2525

2626
private int lastRandomNum = -1;
27-
private int noteCount = 45;
27+
private int noteCount = 60;
2828

2929
private void Start()
3030
{
@@ -141,7 +141,7 @@ private SourceMode GetSourceMode()
141141

142142
public void Reset()
143143
{
144-
noteCount = 45;
144+
noteCount = 60;
145145
counterText.text = noteCount.ToString();
146146
}
147147

0 commit comments

Comments
 (0)