This forum is meant to help people progress, not write the project for you especially if this is a work you need to do for school. This would be cheating, unfair to your colleagues and helping lazy engineers get their diploma which will cause issue in our world future when such engineers will have to come up with solutions... (not saying this is who you are)
Clearly you are expected to build up programming skills as part of your curriculum, right? (otherwise you wouldn’t have such a project) and my feedback was that you should start with simple problems and serializing issues. In my opinion you are not spending time wisely acquiring fundamental skills and hoping that throwing code at this randomly will,work... it won’t...
The parallel operation of the entry and exit gates works fine.
Define fine?
=> If you have a car arriving at the entry gate it will open and the code does wait for 3 seconds. If you have a car arriving at the exit gate during those 3 seconds, I guarantee the gate won’t open until the entry is closed. If you have a car parking during those 3 seconds and a car parking at the same Time, the sensor won’t update. Note that 3 seconds to go through a barrier is super short... closing the gate whith the car under the barrier will be a costly liability...
Regarding the bytes required for str(same no clue)
So you writechar str[5];just randomly? no clue why 5 and not 567? What does this instruction do? Have you read about arrays and strings in c language?
and I know it is listing the busy slots because i wasnt able to write it the other way roun
Seriously? Did you write that code
if (dist[i]>8){
slot[i]=false;
}
else{
slot[i]=true;
}
and you have no clue how to put true instead of false when the distance is less that 8 rather than higher than 8? Is that rocket science or you don’t understand what an if statement does?
since I am running out of time and stuck at the very end of this project, I am in a bit of hurry.
I Don’t think you are at the very end for a smart parking