View Full Version : pwm in autonomous mode
Hi
im tring to use the autonomous mode with the pwm outputs and im not geting anything from pwm01-12
can anyone tell me way?
thanks
viewtyjoe
30-01-2006, 15:32
Hi
im tring to use the autonomous mode with the pwm outputs and im not geting anything from pwm01-12
can anyone tell me way?
thanks
Where are you trying to assign pwm values? You should be assigning them in the User_Autonomous_Code function, inside the while(autonomous_mode) loop.
Also, have you built a dongle or any method of enabling autonomous mode on the OI? If you haven't, then I can't think of any way to run the RC in autonomous mode.
Where are you trying to assign pwm values? You should be assigning them in the User_Autonomous_Code function, inside the while(autonomous_mode) loop.
Also, have you built a dongle or any method of enabling autonomous mode on the OI? If you haven't, then I can't think of any way to run the RC in autonomous mode.
Im enabling autonomous mode by setting the team num to 0000.
while (autonomous_mode) /* DO NOT CHANGE! */
{
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{
Getdata(&rxdata); /* DO NOT DELETE, or you will be stuck here forever! */
/* Add your own autonomous code here. */
pwm01 = pwm02=150;
Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */
}
}
can u see way my motors are not moving if they conected to the pwm output?
Jared Russell
30-01-2006, 15:48
Make sure you aren't disabled (in autonomous the Disabled light on the OI should blink...in Disabled mode, it should be solid).
Or, try putting a printf() inside your autonomous loop, just to make sure that it's getting there.
The only other thing I can think of is your speed controllers aren't calibrated right and they treat 150 as being in the dead zone.
the disable light in my OI is off
the printf is working fine but the motors are not moving ,
they are moving in 150 in the standart mode (not auto)..
I realy dont know what to do do u have any other ida?
Hi have connected the competition port in the auto mode and its working the pins are 5,8
thanks a lot
Amiram
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.