Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   pwm in autonomous mode (http://www.chiefdelphi.com/forums/showthread.php?t=42959)

AMIRAM 30-01-2006 15:19

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

Re: pwm in autonomous mode
 
Quote:

Originally Posted by AMIRAM
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.

AMIRAM 30-01-2006 15:41

Re: pwm in autonomous mode
 
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?

Jared Russell 30-01-2006 15:48

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.

AMIRAM 30-01-2006 16:24

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?

AMIRAM 30-01-2006 16:45

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