![]() |
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 |
Re: pwm in autonomous mode
Quote:
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. |
Re: pwm in autonomous mode
Quote:
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? |
Re: pwm in autonomous mode
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. |
Re: pwm in autonomous mode
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? |
Re: pwm in autonomous mode
Hi have connected the competition port in the auto mode and its working the pins are 5,8
thanks a lot Amiram |
| All times are GMT -5. The time now is 01:06. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi