inverse value for pitch_handicap_strength
authorErik Andresen <erik@vontaene.de>
Sun, 26 Mar 2017 10:09:04 +0000 (12:09 +0200)
committerErik Andresen <erik@vontaene.de>
Sun, 26 Mar 2017 10:09:04 +0000 (12:09 +0200)
config/wt_node.cfg
scripts/wt_node.py

index dbd9c1b..675735a 100755 (executable)
@@ -10,6 +10,6 @@ gen.add("odom_covar_xy",      double_t,       0, "Odometry covariance: translation", 1e-2,
 gen.add("odom_covar_angle",    double_t,       0, "Odometry covariance: rotation", 0.25, 1e-6, 6.2832)
 gen.add("pitch_handicap_enable",bool_t,                0, "Enable motor handicap on pitch", True)
 gen.add("pitch_handicap_limit",        double_t,       0, "Pitch handicap limit (degree)", 30, 0, 90)
-gen.add("pitch_handicap_strength",double_t,    0, "Pitch handicap limit strength", 60, 0, 100)
+gen.add("pitch_handicap_strength",double_t,    0, "Pitch handicap limit strength", 40, 0, 100)
 
 exit(gen.generate("wild_thumper", "wild_thumper", "WildThumper"))
index 5fc59d7..781acfa 100755 (executable)
@@ -106,7 +106,7 @@ class MoveBase:
                self.odom_covar_angle = config["odom_covar_angle"]
                self.pitch_handicap_enable = config["pitch_handicap_enable"]
                self.pitch_handicap_limit = config["pitch_handicap_limit"]
-               self.pitch_handicap_strength = config["pitch_handicap_strength"]
+               self.pitch_handicap_strength = 100-config["pitch_handicap_strength"]
 
                if not self.pitch_handicap_enable:
                        self.set_motor_handicap(0, 0)