Skip to content

Commit

Permalink
fix missing prop weight
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbourSmith committed Jul 27, 2018
1 parent 2ba573d commit a7e2620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def computeSettings(self, section, key, value):
value = maslowSettings.getDefaultValue('Advanced Settings', key)
self.config.set('Computed Settings', key + "Main", value)
#updated computed values for z-axis
for key in ('KpPosZ', 'KiPosZ', 'KdPosZ', 'propWeightZ'):
for key in ('KpPosZ', 'KiPosZ', 'KdPosZ'):
if int(self.config.get('Advanced Settings', 'enablePosPIDValues')) == 1:
value = float(self.config.get('Advanced Settings', key))
else:
Expand Down

0 comments on commit a7e2620

Please sign in to comment.