Commit af2aea42 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

In the stop function, the current state is not changed to off.

parent eedd963a
......@@ -40,7 +40,8 @@ int main(int argc, char *argv[])
sleep(1);
segway->move(0.05,0.0); // 5cm per second 10 seconds = half a meter
int i;
for(i=0;i<10;i++)
//for(i=0;i<10;i++)
for(;;)
{
sleep(1);
cout << (*segway) << endl;
......
......@@ -277,7 +277,7 @@ CSegwayRMP400::stop()
for (unsigned int i=0;i < segways_.size();i++)
segways_[i]->stop();
status_ = rmp400_off;
//status_ = rmp400_off;
}
CSegwayRMP400::~CSegwayRMP400()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment