CECapstoneW2017 / Driver

Development of Arduino/Chai3D Haptic Control Driver
0 stars 1 forks source link

Convert angle from potentiometer to x-y coordinates in haptic driver. #3

Open umba5897 opened 7 years ago

umba5897 commented 7 years ago

Modify CMyCustomDevice.cpp getPosition function to accept a potentiometer angle from the motor and compute the x-y coordinate of the joystick. Modify the setForce function in the same file to receive x-y coordinate force information from Chai3D and output the corresponding angle information to the Arduino. This needs to be done to decrease the processing load on the Arduino.