Go to Post Silly FIRST mentor -- actually spending brain power caring about a sporting event occuring during build season! - Aidan F. Browne [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
  #3   Spotlight this post!  
Unread 02-02-2008, 12:16
personfromhell's Avatar
personfromhell personfromhell is offline
Shaman Me
FRC #1389 (Suck Nuts)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Maryland
Posts: 5
personfromhell is an unknown quantity at this point
Re: p1_sw_aux data type

Thank you, I figured it would be essentially a Boolean value but wasn't sure because my code wasn't working. My next question is then why doesn't this code work:
Code:
  if(p2_sw_aux1) {
	pwm01 = 187;
  } else if(p2_sw_aux2) {
	pwm01 = 67;
  } else {
	pwm01 = 127;
  }
pwm01 goes to a motor that is meant to pivot two casters. I know that the victor its wired to works as well as the controller and cables and such. I know that in C++ the if statements should work but I haven't used C in a while and I forgot the differences in the two standards. Again, any help is greatly appreciated.
__________________

 


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
Robot Type Betty_Krocker General Forum 0 08-01-2008 22:17
printing FLOAT data type on the terminal window razer Programming 14 05-02-2007 08:55
Field Location of Type-0 and Type-1 IR Signals Travis Hoffman General Forum 3 27-02-2004 07:58


All times are GMT -5. The time now is 19:13.

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