Quote:
|
Originally Posted by viewtyjoe
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?