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"))
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)