Go to Post [I] [/I]I think this may be some kind of record. We got through 9 entire posts before someone mangled the spelling of mecanum. [I] [/I] - Ether [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2006, 15:19
AMIRAM AMIRAM is offline
Registered User
no team
 
Join Date: Jan 2006
Location: ISRAEL
Posts: 16
AMIRAM is an unknown quantity at this point
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   Spotlight this post!  
Unread 30-01-2006, 15:32
viewtyjoe viewtyjoe is offline
Code Monkey
AKA: Nathaniel Davis
no team
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: West Chester
Posts: 14
viewtyjoe is an unknown quantity at this point
Send a message via AIM to viewtyjoe
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.
  #3   Spotlight this post!  
Unread 30-01-2006, 15:41
AMIRAM AMIRAM is offline
Registered User
no team
 
Join Date: Jan 2006
Location: ISRAEL
Posts: 16
AMIRAM is an unknown quantity at this point
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?
  #4   Spotlight this post!  
Unread 30-01-2006, 15:48
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
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   Spotlight this post!  
Unread 30-01-2006, 16:24
AMIRAM AMIRAM is offline
Registered User
no team
 
Join Date: Jan 2006
Location: ISRAEL
Posts: 16
AMIRAM is an unknown quantity at this point
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   Spotlight this post!  
Unread 30-01-2006, 16:45
AMIRAM AMIRAM is offline
Registered User
no team
 
Join Date: Jan 2006
Location: ISRAEL
Posts: 16
AMIRAM is an unknown quantity at this point
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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 01:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi