uncomment cliff and wheel sensor

This commit is contained in:
ishak jmilou.ishak
2024-10-08 12:33:22 +02:00
parent 423b8a8dee
commit 06f152d455

View File

@@ -20,22 +20,19 @@ int main() {
mv.join(); // only exit once thread one is done running
}
// int checkCenterCliff()
// {
// while (true)
// {
// std::cout << "cliffsensordata:" <<
// robot.parser.data.CliffSensorCenter << std::endl;
// }
// }
int checkCenterCliff() {
while (true) {
std::cout << "cliffsensordata:" << robot.parser.data.CliffSensorCenter
<< std::endl;
}
}
// int checkWheelDrop(){
// while (true)
// {
// std::cout << "wheeldropdata:" << robot.parser.data.WheelDropLeft
// << std::endl;
// }
// }
int checkWheelDrop() {
while (true) {
std::cout << "wheeldropdata:" << robot.parser.data.WheelDropLeft
<< std::endl;
}
}
int command() {
char input;