changeset 164:1b8810100ea9 main

Add a new "motors" command to set motor speeds.
author Bob Cook <bob@bobcookdev.com>
date Mon, 31 Dec 2012 11:56:15 -0800
parents 13020c7be732
children 9ebb7a1db87d
files main/robots/cantool/CanToolApp.cpp main/robots/cantool/Commands.h main/robots/cantool/jamfile
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/robots/cantool/CanToolApp.cpp	Sun Nov 11 09:07:21 2012 -0800
+++ b/main/robots/cantool/CanToolApp.cpp	Mon Dec 31 11:56:15 2012 -0800
@@ -92,6 +92,7 @@
     Poco::Util::Application::initialize( self );
 
     m_commandDispatchTable[ "listen" ] = CommandListen;
+    m_commandDispatchTable[ "motors" ] = CommandMotors;
     m_commandDispatchTable[ "sonarfront" ] = CommandSonarFront;
 }
 
--- a/main/robots/cantool/Commands.h	Sun Nov 11 09:07:21 2012 -0800
+++ b/main/robots/cantool/Commands.h	Mon Dec 31 11:56:15 2012 -0800
@@ -36,6 +36,8 @@
 
 void CommandListen( const std::vector< std::string >& args );
 
+void CommandMotors( const std::vector< std::string >& args );
+
 void CommandSonarFront( const std::vector< std::string >& args );
 
 // ----------------------------------------------------------------------------------------
--- a/main/robots/cantool/jamfile	Sun Nov 11 09:07:21 2012 -0800
+++ b/main/robots/cantool/jamfile	Mon Dec 31 11:56:15 2012 -0800
@@ -37,7 +37,7 @@
 COMMON_SOURCES = 
     main.cpp
     CanToolApp.cpp
-    CmdSonarFront.cpp
+    CmdMotors.cpp CmdSonarFront.cpp
     packages.common.can.pkg
     packages.linux.can.pkg
     ;