Go to Post The very fact that parts are rumored to be being re-used may be sufficient reason for the rule-makers to change a rule to prevent the re-use of that very part (not that they would ever be that devious!) - dlavery [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-02-2005, 19:59
SpeakerSilenced SpeakerSilenced is offline
Programming/Electrical Team Member
#0219 (Team Impact)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Hackettstown, NJ
Posts: 28
SpeakerSilenced is an unknown quantity at this point
Send a message via AIM to SpeakerSilenced
Putdata(&txdata)

Do I need to call Putdata(&txdata); everytime I want a PWM value (1-7) to move the motor? and can I call it anytime it changes or are there specific times i can only call it?

I have various loops inside the autonomous loop
Here is a small one
Code:
while (movefoward = 1)
		{
			pwm03 = pwm03;
			pwm01=130;
			pwm02=130;
			Putdata(&txdata);
			fowardcounter++;
			if (fowardcounter > amountfoward) //If this has moved for amountfoward loops then stop
			{
				movefoward = 0;
			}
		}
can I do that in order to have those values executed? or do i need to do it another way
__________________
"I want to put a ding in the universe" - Steve Jobs
 


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


All times are GMT -5. The time now is 04:38.

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