Skip to content
Permalink
Browse files

fixed preferences key to store gain properly

  • Loading branch information...
Tobi Delbruck Tobi Delbruck
Tobi Delbruck authored and Tobi Delbruck committed Jul 11, 2019
1 parent ebcd34c commit 3a84d7d94241988cd252f196a39129ff609e24bb
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ch/unizh/ini/jaer/projects/pencilbalancer/PencilBalancer.java
@@ -565,8 +565,8 @@ synchronized public void setMotionMixingFactor(float motionMixingFactor) {
}
float old = this.motionMixingFactor;
this.motionMixingFactor = motionMixingFactor;
getSupport().firePropertyChange("motionDecay", old, motionMixingFactor);
putFloat("motionDecay", motionMixingFactor);
getSupport().firePropertyChange("motionMixingFactor", old, motionMixingFactor);
putFloat("motionMixingFactor", motionMixingFactor);
}

public float getGainAngle() {
@@ -584,7 +584,7 @@ public float getGainBase() {

synchronized public void setGainBase(float gainBase) {
this.gainBase = gainBase;
putFloat("centering", gainBase);
putFloat("gainBase", gainBase);
}

public boolean getOffsetAutomatic() {

0 comments on commit 3a84d7d

Please sign in to comment.
You can’t perform that action at this time.