Go to Post Incidentally, this is a good example of why lawyering the FIRST rules is good practice for the real world. By critically analyzing FIRST's errors, you practice for the day when you need to critically analyze legislators' errors (and deliberate trickery). - Tristan Lall [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 24-01-2008, 09:09
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
WPILIB: WriteSerialPortOne(unsigned char) Warning on Compile

We are trying to write a new ASCII driver function within EasyC Pro.

I see that WPILIB supports WriteSerialPortOne(unsigned char).

If we add this as a C Code block and call the serial port write function, the code complies but we get a WARNING.

Is this a normal warning to see?
"suspicious pointer conversion"

The supported WPILIB serial functions we are aware of.

unsigned char ReadSerialPortOne(void);
void WriteSerialPortOne(unsigned char);
unsigned char ReadSerialPortTwo(void);
void WriteSerialPortTwo(unsigned char);
unsigned char GetSerialPort2ByteCount(void);
unsigned char GetSerialPort1ByteCount(void);
void OpenSerialPortOne(unsigned baudRate);
void OpenSerialPortTwo(unsigned baudRate);
Attached Thumbnails
Click image for larger version

Name:	error.jpg
Views:	56
Size:	29.3 KB
ID:	6114  
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
 


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
Signed and unsigned variables dmlawrence Programming 4 05-01-2008 23:03
Code Won't Compile in MPLab with WPILib Inverted Programming 1 20-02-2007 22:12
Printf warning during compile? actorindp Programming 4 20-02-2004 17:02
problems assigning unsigned chars in FRC Code LoyolaCubs Programming 6 26-01-2004 23:21
Dashboard programs and the char variable Ian W. Programming 13 26-06-2002 02:07


All times are GMT -5. The time now is 23:21.

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