Learned that using Count++ and Count-- as counters were too slow for the movement of the robotic arm. So I am now learning about CTRA and CTRB as much faster counters to count the pulse edges of the outputted encoder pulses. Prior to this, the code is 5 lines long. And too slow. Gotta work on efficiency of the code. If that fails, then I will hafta self teach (maybe some professor help) myself Assembly for SPIN.
No comments:
Post a Comment