Skip to content

Commit

Permalink
Added forced motor bypass when mtr_arm_class is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
xchoo committed Nov 23, 2016
1 parent 14bb06e commit 7bfd6f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _spaun/modules/motor_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def init_module(self):
nengo.Connection(self.motor_bypass.output,
target_diff_norm.neurons,
transform=[[-3.0]] * target_diff_norm.n_neurons)
if arm_obj is None:
# Disable the target_diff_norm when there is no arm object
nengo.Connection(bias_node, target_diff_norm.neurons,
transform=[[-10.0]] * target_diff_norm.n_neurons)

# ------ MOTOR PEN DOWN CONTROL ------
pen_down = cfg.make_thresh_ens_net()
Expand Down

0 comments on commit 7bfd6f1

Please sign in to comment.