Commit 71f49b2b authored by Joseph Mirabel's avatar Joseph Mirabel

Allow to change joint values from keyboard

parent 40a1028c
...@@ -322,7 +322,7 @@ namespace hpp { ...@@ -322,7 +322,7 @@ namespace hpp {
for (ULong i = 0; i < dq_.length(); ++i) dq_[ i] = 0; for (ULong i = 0; i < dq_.length(); ++i) dq_[ i] = 0;
setValue (0); setValue (0);
connect(this, SIGNAL (sliderReleased()), this, SLOT (reset())); connect(this, SIGNAL (sliderReleased()), this, SLOT (reset()));
connect(this, SIGNAL (sliderMoved(int)), this, SLOT (updateIntegrator(int))); connect(this, SIGNAL (valueChanged(int)), this, SLOT (updateIntegrator(int)));
timerId_ = startTimer(rate_); timerId_ = startTimer(rate_);
} }
...@@ -363,7 +363,7 @@ namespace hpp { ...@@ -363,7 +363,7 @@ namespace hpp {
setMinimum(0); setMinimum(0);
setMaximum(100); setMaximum(100);
setValue ((int)(100*(value_ - m_)/(M_ - m_))); setValue ((int)(100*(value_ - m_)/(M_ - m_)));
connect (this, SIGNAL (sliderMoved(int)), this, SLOT (updateConfig(int))); connect (this, SIGNAL (valueChanged(int)), this, SLOT (updateConfig(int)));
} }
double SliderBoundedJoint::getValue() double SliderBoundedJoint::getValue()
......
Markdown is supported
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