Debugging roboclaw comm.

This commit is contained in:
James Goppert
2013-10-21 23:40:36 -04:00
parent 7f0ced968e
commit ce68f93867
3 changed files with 52 additions and 10 deletions
+6 -2
View File
@@ -119,8 +119,10 @@ int roboclaw_main(int argc, char *argv[])
exit(-1);
}
const char *deviceName = argv[1];
uint8_t address = strtoul(argv[2], nullptr, 0);
const char *deviceName = argv[2];
uint8_t address = strtoul(argv[3], nullptr, 0);
printf("device:\t%s\taddress:\t%d\n", deviceName, address);
roboclawTest(deviceName, address);
thread_should_exit = true;
@@ -162,6 +164,8 @@ int roboclaw_thread_main(int argc, char *argv[])
const char *deviceName = argv[1];
uint8_t address = strtoul(argv[2], nullptr, 0);
printf("device:\t%s\taddress:\t%d\n", deviceName, address);
// start
RoboClaw roboclaw(deviceName, address);