|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||||
|
|||||
|
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. |
|
#5
|
|||
|
|||
|
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? |
|
#6
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| camera auto mode pwm contention? | AL_E | Programming | 4 | 24-01-2006 22:10 |
| a simple autonomous mode question | chippermonky | Programming | 3 | 18-02-2005 01:54 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |