Go to advanced search

by DrRocksalt
Tue Oct 23, 2018 3:02 am
Forum: Python
Topic: Python Serial jumping ahead / While loop problem on boot only
Replies: 6
Views: 1051

Re: Python Serial jumping ahead / While loop problem on boot only

Alright, the race is over. We got 2nd place in our class, didn't blow up the car, and got an award for our intake setup being weird. Good times. I bought a new Pi and cloned the disk image to a new card, but that failed. The new card wouldn't even boot the old Pi. I would have tried that a bunch mor...
by DrRocksalt
Thu Oct 18, 2018 3:03 pm
Forum: Python
Topic: Python Serial jumping ahead / While loop problem on boot only
Replies: 6
Views: 1051

Re: Python Serial jumping ahead / While loop problem on boot only

More weirdness observed. Further down in the code, in a loop that runs as long as the car is on, the Raspberry Pi takes some of its parameters and pushes it to the Arduino so that the dashboard can display things like disk space, IP address, latitude and longitude, etc. I do this by starting the lin...
by DrRocksalt
Tue Oct 16, 2018 3:15 pm
Forum: Python
Topic: Python Serial jumping ahead / While loop problem on boot only
Replies: 6
Views: 1051

Re: While loop problem on boot only

Interesting. These print lines are just to the the terminal, so they should be flushing, right? I can certainly try adding flushes though, and seeing what happens. I guess my befuddlement comes from the fact that the serial port seems to be acting ahead of the actual script. Here's a snippet of my c...
by DrRocksalt
Tue Oct 16, 2018 6:29 am
Forum: Python
Topic: Python Serial jumping ahead / While loop problem on boot only
Replies: 6
Views: 1051

Re: While loop problem on boot only

Okay, a bit more debugging, and I'm getting somewhere, but still very confused. I've now moved the last response from the Pi to the Arduino to outside of the while loop, after the communication has been confirmed the first time. This still makes it fail. What I've found, though, is that I can put in...
by DrRocksalt
Mon Oct 15, 2018 3:00 pm
Forum: Python
Topic: Python Serial jumping ahead / While loop problem on boot only
Replies: 6
Views: 1051

Python Serial jumping ahead / While loop problem on boot only

I'm having a very strange problem with a While loop in Python I hope you all could help with. I didn't have time before running to work this morning to pull the code, so I'll be working with pseudo code or from memory (or an old version I have on my work computer). A little background: a few friends...

Go to advanced search