Just create a location class instanciate one of eac location then add or pop the class into and out of a in_use / unoccupied lists or classes , once you've popped a location out of the unoccupied list the random generator can pick one of the location objects, read its location.address and program a travel plan to suit.
@MakingStuffwithChrisDeHut2 ай бұрын
Good morning wktodd, Thanks for the suggestion, much appreciated! Cheers Chris
@wktodd2 ай бұрын
@@MakingStuffwithChrisDeHut It occurred to me that your 'exclusion' zone idea has a similar function to our UK mini roundabouts (basically a large white dot painted in the middle of a junction), in that it changes the priority of the junction to allow turnsacross the flowof on coming traffic into the side junction, even in heavy traffic (or it would if half the drivers knew how to drive!)
@MakingStuffwithChrisDeHut2 ай бұрын
@@wktodd HA HA HA HA, you should see how bad the American drivers are when experiencing a roundabout! 3 things I have noticed drivers being really bad at: 1) Roundabouts, not sure why, it is pretty simple. 2) 4 way stop intersections, oddly, the first people to stop wave you to go first. 3) Merging traffic - instead of merging at the merge point, people get into the through lane miles before the merge point leaving the other lane empty.
@tubeDude483 ай бұрын
There's an issue with the Pico 2 and the GPIO Pins. DO NOT BUY at this time!
@MakingStuffwithChrisDeHut2 ай бұрын
Good morning tubeDude48, Yes, I have been following that closely and have also requested if they have a plan for an updated version that fixes the issue. While not an official response, it does not appear so. Also when I was checking into this, the "official" stance from the engineers on the forum indicated that it actually wasn't determined to be a problem. While I don't believe the reported issue renders the chip and PICO 2 useless, it is a red flag to me that I will wait a while longer before using one. I am too old to waste time figuring out if something is wrong because of my program or because of hardware that doesn't work as expected. Cheers! Chris
@wktodd2 ай бұрын
@@tubeDude48 The issue is not that bad, It is simply that the leakage current whena pin is in input mode is sufficient to pull an OPEN pin up to a unstable logic level, if the weak pull down is used. Simple fix is to use normal ttl practice and have all unused inputs pulled high. If the input is driven then all is fine.