Skip to content

Commit

Permalink
Merge pull request #14 from Twinters007/rounding
Browse files Browse the repository at this point in the history
Round encoder and analog values
  • Loading branch information
virtuald committed Sep 12, 2017
2 parents 893347b + f6183b7 commit 447a047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctre/_impl/sim_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def update_tk_widgets(self, sim):
else:
motor.set_value(data['value'])

enc_txt.set('E: %s' % data['enc_position'])
analog_txt.set('A: %s' % data['analog_in_position'])
enc_txt.set('E: %s' % round(data['enc_position']))
analog_txt.set('A: %s' % round(data['analog_in_position']))
pwm_txt.set('P: %s' % data['pulse_width_position'])

ret = fl.sync_value(data['limit_switch_closed_for'])
Expand Down

0 comments on commit 447a047

Please sign in to comment.