![]() |
Custom Joystick Setup in easyC
Last year I developed a "Halo drive" control system for the robot in MPLab, which we plan to use again this year. The only problem is, since this is my senior year, I need to train some younger members to program, which will be done in easyC. Last year I completely avoided easyC because I didn't want to take the time to learn a new program. So this year I'm kinda screwed.
So anyway, I don't have the code I made up last year on me right now, as it's on my other laptop, but I was just wondering if there's any way to set up a control scheme that's not Arcade or Tank drive. If it helps, I had the controllers set up so that the wheels moved forward/back via input from the left joystick Y-axis, and moved left/right via the right joystick X-axis. Thanks |
Re: Custom Joystick Setup in easyC
Yes, you can use OIToPWM() for direct drive or use GetOIAInput() with SetPWM() and make adjustments.
Code:
void OIToPWM(port, axis, pwm, direction) |
Re: Custom Joystick Setup in easyC
Check this out: http://www.chiefdelphi.com/forums/at...8&d=1165872883
It has examples of exactly what you want to do. |
| All times are GMT -5. The time now is 01:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi