Questions tagged [pickup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

pset8 pickup unable to access the values of the shuttle.seats

shuttle.seats[j] = [{ name : PASSENGERS[i].name, house : PASSENGERS[i].house }]; For chart when I try to access the value of shuttle.seats[j].name I get the value as undefined....
0
votes
1answer
37 views

Pset 8 pickup stuck in a loop

The following is my code for pickup. If I am not within 15 metres of a person then it is fine. If however I am, my session goes into an infinite loop. I can't see why, could someone please give me ...
0
votes
2answers
110 views

Blank Google Earth plugin screen

After writing the pickup and chart functions, the CS50 Shuttle webpage becomes blank except for the title "CS50 Shuttle", the "Start Engine", "Pick Up" and "Drop Off" buttons and "no announcements at ...
1
vote
1answer
270 views

Cannot remove placemarks

I am stuck on trying to remove the placemarks after picking up a passenger. The problem is that I can keep adding the same passenger even though the placemark has been visually removed. I need help ...
0
votes
0answers
30 views

undefined is not a function

For pickup I used the following code structure. But when I load CS50 Shuttle, it keeps returning two errors. The first is in VM3931:12. The 4 digits after VM changes but it is always at line 12. The ...
4
votes
1answer
94 views

Pickup removes the placemark but student is still considered within range

My PSET8 function for Pickup seems to work perfectly except that I can pickup the same student multiple times. The way I understood it, once the placemark is removed, PASSENGERS.placemark for that ...
0
votes
1answer
197 views

marker position

I am working on pset8, and I am trying to implement pickup(). I have to find out if any of the passengers in PASSENGERS are closer than fifteen meters away. I currently have this if statement: if (...