Go to the documentation of this file.00001
00009 #include <iostream>
00010
00011 #include "kobuki_ftdi/scanner.hpp"
00012
00013 int main(int argc, char** argv)
00014 {
00015 int ret_val;
00016 FTDI_Scanner scanner;
00017
00018 if ( scanner.scan() < 0 ) {
00019 std::cerr << "Failed to find devices to reset." << std::endl;
00020 return -1;
00021 }
00022
00023 ret_val = scanner.reset();
00024 if ( ret_val < 0 && ret_val != -19 )
00025 std::cerr << "Failed to reeset devices." << std::endl;
00026 return ret_val;
00027 }