![]() |
Steering wheel problems
I'm working on controlling our robot with a steering wheel on port 1, and a throttle on port 2. I have the following definitions at the top of user_routines.c:
Code:
#define WHEEL p1_x-127 //Steering wheel on port 1Code:
int isActive(int x)Code:
LEFT=0; |
Re: Steering wheel problems
Quote:
|
Re: Steering wheel problems
How often are you calling the Generate_Pwms() function?
PWMs 13-16 are special. They get generated directly from the RC's "user" processor, so they can be updated more quickly than the communication with the "master" processor occurs. If you never call Generate_Pwms(), they don't update. But if they get updated too quickly, they get squirrely. |
Re: Steering wheel problems
I suspect variable overflow.
LEFT and RIGHT are pretty restricted. |
Re: Steering wheel problems
Quote:
Quote:
Quote:
|
| All times are GMT -5. The time now is 02:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi