mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
saved work on timeout
This commit is contained in:
@@ -98,7 +98,7 @@ int main(int argc, char **argv) {
|
|||||||
// scout.SetLightCommand({ScoutLightCmd::LightMode::BREATH, 0,
|
// scout.SetLightCommand({ScoutLightCmd::LightMode::BREATH, 0,
|
||||||
// ScoutLightCmd::LightMode::BREATH, 0});
|
// ScoutLightCmd::LightMode::BREATH, 0});
|
||||||
// }
|
// }
|
||||||
if (count < 250) {
|
if (count < 100) {
|
||||||
std::cout << "Motor: 0.2, 0" << std::endl;
|
std::cout << "Motor: 0.2, 0" << std::endl;
|
||||||
scout.SetMotionCommand(0.2, 0.0);
|
scout.SetMotionCommand(0.2, 0.0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ void MobileBase::ControlLoop(int32_t period_ms) {
|
|||||||
SendRobotCmd();
|
SendRobotCmd();
|
||||||
++watchdog_counter_;
|
++watchdog_counter_;
|
||||||
} else {
|
} else {
|
||||||
std::cout << "Warning: cmd timeout, not sent to robot" << std::endl;
|
std::cout << "Warning: cmd timeout, old cmd not sent to robot" << std::endl;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SendRobotCmd();
|
SendRobotCmd();
|
||||||
|
|||||||
Reference in New Issue
Block a user