![]() |
Autonomous and joystick problems
I have no programing experience and my team wants two things from me one is to desensitize the joysticks, and the other is to have the robot drive straight forward during auto mode. I know there are threads on both of these, but I don't know where to put the snippets into the code, and how to create a new hex file to download into the RC. So if anyone could tell me the exact code I need to do these things and where to put it along with getting the whole deal into the RC that would be great.
|
Re: Autonomous and joystick problems
As for exact code... for the autonomous driving forward, you first need a timer, exact code not in my mind at the moment, and the rest is easy.
if(timer_overflowed* == 1) { pwm01** = ###*** timer_overflowed == 0 } |
Re: Autonomous and joystick problems
Look for the Programming Quick Start white paper by Mark McLeod. It was written for people in exactly your situation.
|
Re: Autonomous and joystick problems
Or Chuck Bolin's autonomous programming guide. It describes exactly how to make your robot drive forward and such.
|
| All times are GMT -5. The time now is 00:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi