-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (15 loc) · 713 Bytes
/
main.py
File metadata and controls
22 lines (15 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from config import gtime
from vpython import rate
from simulation import Simulation
def sim_main():
sim = Simulation()
# print_notes()
while sim.t < gtime.total_time:
rate(gtime.sim_rate)
sim.run()
def print_notes():
print("OPTIMIZE CAR MANAGER, SO MANY THINGS ARE USING THE SAME FOR LOOP BUT ITS ALL SEPARATE FUNCTIONS")
print("ALSO OPTIMIZE BY JUST HAVING A BEHIND LIGHT FLAG, THAT WAY YOU DONT HAVE TO CHECK EVERYTIME")
print("replace things with numpy.take (has wrapping mode on array indices)")
print("add dynamic v_set setting? ")
print("i wonder if setting distance to nearest car to be zero will always fix it? it will fix eventually but doesnt fix")