-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseed_database.py
More file actions
20 lines (17 loc) · 1.02 KB
/
seed_database.py
File metadata and controls
20 lines (17 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import pickle
test_aircraft = [
{ "name": "Hog 71", "aircraft_type": "A-10", "altitude": 1000, "cruising_speed": 565, "start_time": None,
"orbit_radius": 0, "orbit_orientation": None,"waypoints": ["32.744512,-96.969403", "33.108040,-96.607846"]
},
{ "name": "Hog 72", "aircraft_type": "A-10", "altitude": 1000, "cruising_speed": 565, "start_time": None,
"orbit_radius": 0, "orbit_orientation": None,"waypoints": ["32.744512,-96.969403","33.108040,-96.607846"]
},
{ "name": "Slasher 93", "aircraft_type": "AC-130", "altitude": 1000, "cruising_speed": 565, "start_time": None,
"orbit_radius": 0, "orbit_orientation": None,"waypoints": ["32.744512,-96.969403","33.108040,-96.607846"]
},
{ "name": "Bone 19", "aircraft_type": "B-1", "altitude": 1000, "cruising_speed": 565, "start_time": None,
"orbit_radius": 0, "orbit_orientation": None,"waypoints": ["32.744512,-96.969403","33.108040,-96.607846","32.961113,-96.651197"]
}
]
stream = open('aircraft', 'wb')
pickle.dump(test_aircraft, stream)