saved work on cmd timeout, not tested yet

This commit is contained in:
Ruixiang Du
2020-09-14 18:57:27 +08:00
parent 8ba694b894
commit 9e646c78b7
5 changed files with 8 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class MobileBase {
bool enable_timeout_ = true;
uint32_t timeout_ms_ = 100;
uint32_t watchdog_counter_ = 0;
virtual void CheckCmdTimeout();
void FeedCmdTimeoutWatchdog() { watchdog_counter_ = 0; };
// command thread
std::thread cmd_thread_;