robot id debug

This commit is contained in:
vivek-shankar 2017-01-13 16:07:39 -05:00
parent 1aee412985
commit 6489ee1c60
1 changed files with 2 additions and 2 deletions

View File

@ -272,8 +272,8 @@ namespace buzz_utility{
gethostname(hstnm, 30); gethostname(hstnm, 30);
/* Make numeric id from hostname */ /* Make numeric id from hostname */
/* NOTE: here we assume that the hostname is in the format Knn */ /* NOTE: here we assume that the hostname is in the format Knn */
int id = strtol(hstnm + 1, NULL, 10); //robot_id; int id = strtol(hstnm + 2, NULL, 10); //robot_id;
cout << " Robot ID" << id<< endl; cout << " Robot ID: " << (uint8_t)id<< endl;
/* Reset the Buzz VM */ /* Reset the Buzz VM */
if(VM) buzzvm_destroy(&VM); if(VM) buzzvm_destroy(&VM);
VM = buzzvm_new(id); VM = buzzvm_new(id);