Closed L3gume closed 7 years ago
That's what the SensorData class is for - to provide a single location to receive sensor data for whichever classes that need it. I was thinking that the Navigator class could handle both navigation and obstacle avoidance (since it would probably be simpler that way, i.e. we could just implement a state machine where it could be NAVIGATING, AVOIDING_OBSTACLE, etc.).
As for the two extra light sensors, I will add support for them in the SensorData class.
The navigator does handle both navigation and obstacle avoidance.
The task basically means: "write the poller classes" hehe.
EDIT: read through your commit too fast and didn't realize it was already done haha! closing the issue now.
It is important to keep in mind that the ultrasonic sensor will be used for:
and that the light sensors (3 of them) will be used for: