Go to Post "there are two types of underprivileged teams; the ones who whine about being underprivileged and the ones that work to become privileged". - Undertones [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #12   Spotlight this post!  
Unread 21-02-2010, 09:27
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: potentiometer/ analog inputs

Quote:
Originally Posted by whatabouteve View Post
this could be i will try to fix this.
would printing

printf(" =angletop");
printf("%d",angletop);

would this work in the correct format assuming it prints on line 1 and the %d writes over it?
no, this will output something like this:
Code:
         =angletop23         =angletop85         =angletop712         =angletop465         =angletop84         =angletop6         =angletop4586         =angletop589         =angletop486
i would recommend one printf a loop (if possible): printf("angletop=%d\r\n",angletop);
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
 


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
Help! Analog Inputs!! brennerator Programming 7 11-02-2007 15:48
Analog Inputs bush Programming 5 13-03-2006 17:49
Analog Inputs prob. Bharat Nain Programming 2 07-02-2004 20:48
Failing analog inputs? Phasmatis568 Control System 5 22-01-2004 13:28
Analog Inputs 316_programer Technical Discussion 2 05-02-2002 05:53


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

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