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.
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.