Skip to content
Snippets Groups Projects
Commit cf477d94 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

PlatformUnitGuiPlugin: platform now stop moving when nibble is released.

	movement ctrl now has 5 instead of 2 levels
parent 5871f1cf
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ PlatformUnitWidget::PlatformUnitWidget() :
//init joystick controls
std::unique_ptr<JoystickControlWidget> speed{new JoystickControlWidget{}};
speedCtrl = speed.get();
speedCtrl->setSteps(2);
speedCtrl->setSteps(5);
//use upper semicircle for rotation
std::unique_ptr<JoystickControlWidget> rotat{new JoystickControlWidget{false}};
rotaCtrl = rotat.get();
......@@ -141,7 +141,9 @@ void PlatformUnitWidget::reportPlatformVelocity(::Ice::Float currentPlatformVelo
void PlatformUnitWidget::stopPlatform()
{
platformUnitProxy->moveRelative(0, 0, 0, 0, 0);
::Ice::Float posAcc = 10.0f;
::Ice::Float rotAcc = 0.1f;
platformUnitProxy->moveRelative(0, 0, 0, posAcc, rotAcc);
}
void PlatformUnitWidget::controlTimerTick()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment