mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
start safety thread
This commit is contained in:
@@ -19,16 +19,16 @@ void setup(){
|
||||
robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
|
||||
client.connect();
|
||||
client.subscribe("home/commands");
|
||||
std::thread safety([&]() { robot.robotSafety(&message); });
|
||||
|
||||
|
||||
}
|
||||
|
||||
int main(){
|
||||
setup();
|
||||
std::thread safety([&]() { robot.robotSafety(&message); });
|
||||
while(true){
|
||||
parseMQTT(readMQTT());
|
||||
}
|
||||
safety.join();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user