rsx-utoronto / rover2017

Code for our rover
0 stars 2 forks source link

tidy up code for Inverse Kinematics #17

Open Paul1234567890 opened 7 years ago

msnhao commented 7 years ago

Replaced all conn.request... blocks of code with sendMessage(message).

sendAngleValues and sendStartPosition had the same first part of the code so I deleted sendStartPosition and implemented "start = 0" default variable in sendAngleValues. When 'start = 1', set command = 'g' which was the only difference in sendStartPosition.

Added makeDHTable function because the same code was being used in all 4 modes to make a DHTable

Paul1234567890 commented 7 years ago

good job (thumb up)