From 32fc5e9cca76c13e0f818949bf81ea72d0e404c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Luis=20Rivero=20Partida?= <jrivero@iri.upc.edu>
Date: Fri, 13 May 2011 13:56:32 +0000
Subject: [PATCH] Fix typo in struct member

---
 src/segway_rmp200.cpp | 38 +++++++++++++++++++-------------------
 src/segway_rmp200.h   |  2 +-
 2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/segway_rmp200.cpp b/src/segway_rmp200.cpp
index a02c497..d33ca50 100755
--- a/src/segway_rmp200.cpp
+++ b/src/segway_rmp200.cpp
@@ -657,25 +657,25 @@ TSegwayRMP200Status CSegwayRMP200::get_status(void)
 {
     TSegwayRMP200Status status;
 
-    status.right_wheel_velocity = this-> right_wheel_velocity;
-    status.left_wheel_velocity  = this-> left_wheel_velocity;
-    status.pitch_angle          = this-> pitch_angle;
-    status.pitch_rate           = this-> pitch_rate;
-    status.roll_angle           = this-> roll_angle;
-    status.roll_rate            = this-> roll_rate;
-    status.yaw_rate             = this-> yaw_rate;
-    status.left_wheel_displ     = this-> left_wheel_displ;
-    status.right_wheel_displ    = this-> right_wheel_displ;
-    status.forward_displ        = this-> forward_displ;
-    status.yaw_displ            = this-> yaw_displ;
-    status.servo_frames         = this-> servo_frames;
-    status.left_torque          = this-> left_torque;
-    status.right_torque         = this-> right_torque;
-    status.ui_battery           = this-> ui_battery;
-    status.powerbase_battery    = this-> powerbase_battery;
-    op_mode operation_mode      = this-> mode;
-    op_mode hardware_mode       = this-> hardware_mode;
-    gain gain_schedule          = this-> gain_schedule;
+    status.right_wheel_velocity = this->right_wheel_velocity;
+    status.left_wheel_velocity  = this->left_wheel_velocity;
+    status.pitch_angle          = this->pitch_angle;
+    status.pitch_rate           = this->pitch_rate;
+    status.roll_angle           = this->roll_angle;
+    status.roll_rate            = this->roll_rate;
+    status.yaw_rate             = this->yaw_rate;
+    status.left_wheel_displ     = this->left_wheel_displ;
+    status.right_wheel_displ    = this->right_wheel_displ;
+    status.forward_displ        = this->forward_displ;
+    status.yaw_displ            = this->yaw_displ;
+    status.servo_frames         = this->servo_frames;
+    status.left_torque          = this->left_torque;
+    status.right_torque         = this->right_torque;
+    status.ui_battery           = this->ui_battery;
+    status.powerbase_battery    = this->powerbase_battery;
+    op_mode operation_mode      = this->mode;
+    op_mode hardware_mode       = this->hardware_mode;
+    gain gain_schedule          = this->gain_schedule;
 
     return status;
 }
diff --git a/src/segway_rmp200.h b/src/segway_rmp200.h
index b545cbc..e07917c 100755
--- a/src/segway_rmp200.h
+++ b/src/segway_rmp200.h
@@ -89,7 +89,7 @@ struct TSegwayRMP200Status
     float right_torque;
     float ui_battery;
     float powerbase_battery;
-    op_mode tractor;
+    op_mode operation_mode;
     op_mode hardware_mode;
     gain gain_schedule;
 };
-- 
GitLab