Author: remi
Date: 2008-07-28 11:54:44 +0200 (Mon, 28 Jul 2008)
New Revision: 1403

Modified:
   software_suite_v2/middleware/tuxdriver/trunk/src/tux_spinning.c
Log:
* updated the "spinning direction" status.

Modified: software_suite_v2/middleware/tuxdriver/trunk/src/tux_spinning.c
===================================================================
--- software_suite_v2/middleware/tuxdriver/trunk/src/tux_spinning.c     
2008-07-28 09:17:55 UTC (rev 1402)
+++ software_suite_v2/middleware/tuxdriver/trunk/src/tux_spinning.c     
2008-07-28 09:54:44 UTC (rev 1403)
@@ -39,20 +39,20 @@
 {
     char *new_direction = "";
     
-    if ((!hw_status_table.ports.portb.bits.spin_motor_forward) &&
-        (!hw_status_table.ports.portb.bits.spin_motor_backward))
+    if ((!hw_status_table.position2.motors.bits.spin_left_on) &&
+        (!hw_status_table.position2.motors.bits.spin_right_on))
     {
         new_direction = STRING_VALUE_NONE;
     }
     else
     {
-        if (hw_status_table.ports.portb.bits.spin_motor_forward)
+        if (hw_status_table.position2.motors.bits.spin_left_on)
         {
             new_direction = STRING_VALUE_LEFT;
         }
         else
         {
-            if (hw_status_table.ports.portb.bits.spin_motor_backward)
+            if (hw_status_table.position2.motors.bits.spin_right_on)
             {
                 new_direction = STRING_VALUE_RIGHT;
             }    


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to