You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-19Lines changed: 10 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -62,44 +62,35 @@ Once you have your connected node bound, you can call its status, reset and logg
62
62
63
63
64
64
65
-
To create [Muscle](#muscle-commands)-class objects, start by calling tf.muscle(). This is where you need input your *idnum*, *resistance*, *length*, and *diameter* values if you have them.
65
+
To create [Muscle](#muscle-commands)-class objects, start by calling tf.muscle(). Input the "idnum" which is the port on the Node controller that the muscle is plugged into.
Note that the *idnum* field is the only field that is neccesary for creating the [Muscle](#muscle-commands)-object.
74
-
75
-
Next, assign the muscle objects to a node object by calling the .setMuscle() command. This command takes the identification number and the muscle object as arguments
73
+
Next, assign the muscle objects to a node object by calling the .setMuscle() command. This command takes the port number and the muscle object as arguments
76
74
77
75
```Python
78
76
node0.setMuscle(0, muscle1)
79
77
node0.setMuscle(1, muscle2)
80
78
```
81
79
82
-
Sessions are automatically created and create a filesystem that exports to a higher level folder. Sessions track the incoming and outgoing serial data and saves it to a .ses file and a .txt file. The .txt files are generated as plain messages, where as the .ses files have serialized messages.
83
-
84
-
```Python
85
-
sessionl = tf.Session.sessionl
86
-
session1 = session[0]
87
-
```
88
-
89
-
From here, you can add commands to your command buffer. [Node Commands](#node-commands)
90
-
91
-
These commands should be in the format,
80
+
These commands should be in the following format, either referencing a `Muscle` object or a `Node` object:
92
81
93
82
```Python
94
83
node0.enable(muscle1)
84
+
# or
85
+
muscle1.enable()
95
86
```
96
87
97
-
The muscle objects also have their own commands that are passed to their commanding node.[Muscle Commands](#muscle-commands)
88
+
Full list of Muscle Commands: [Muscle Commands](#muscle-commands)
0 commit comments