Skip to main content

Questions tagged [pickup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

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....
Amrita's user avatar
  • 50
0 votes
1 answer

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 ...
aharris's user avatar
  • 19
0 votes
2 answers

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 ...
Fangda Mei's user avatar
1 vote
1 answer

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 ...
Lucas's user avatar
  • 171
0 votes
0 answers

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 ...
Lucas's user avatar
  • 171
4 votes
1 answer

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 ...
Daniel Levi's user avatar
0 votes
1 answer

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 (...
coenvalk's user avatar