reserve stdout for log output
authorsvnhieber <svnhieber@f8795833-4959-0410-8ae9-8bcb0cfab428>
Wed, 1 Dec 2010 21:09:18 +0000 (21:09 +0000)
committersvnhieber <svnhieber@f8795833-4959-0410-8ae9-8bcb0cfab428>
Wed, 1 Dec 2010 21:09:18 +0000 (21:09 +0000)
git-svn-id: https://svn.itm.uni-luebeck.de/wisebed/wiselib/trunk/pc_apps/roomba_tests@3663 f8795833-4959-0410-8ae9-8bcb0cfab428

battery_test.cc
main.cc

index f5fb28f..5ee5807 100644 (file)
@@ -86,7 +86,7 @@ int main(int argc, char ** argv) {
   roomba_uart.enable_serial_comm();
   roomba.init(roomba_uart, timer, Roomba::BATTERY_AND_TEMPERATURE);
 
   roomba_uart.enable_serial_comm();
   roomba.init(roomba_uart, timer, Roomba::BATTERY_AND_TEMPERATURE);
 
-  cout << "Got roomba at " << roomba_uart.address() << endl;
+  cerr << "Got roomba at " << roomba_uart.address() << endl;
 
   roomba.reset_distance();
   roomba.reset_angle();
 
   roomba.reset_distance();
   roomba.reset_angle();
diff --git a/main.cc b/main.cc
index 2bff299..ffe54bb 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -228,7 +228,7 @@ int main(int argc, char ** argv) {
   roomba.init(roomba_uart, timer, Roomba::POSITION
     | Roomba::BATTERY_AND_TEMPERATURE);
 
   roomba.init(roomba_uart, timer, Roomba::POSITION
     | Roomba::BATTERY_AND_TEMPERATURE);
 
-  cout << "Got roomba at " << roomba_uart.address() << endl;
+  cerr << "Got roomba at " << roomba_uart.address() << endl;
 
   roomba.reset_distance();
   roomba.reset_angle();
 
   roomba.reset_distance();
   roomba.reset_angle();
This page took 0.030138 seconds and 4 git commands to generate.