Go to Post This tee-shirt collecting gets kind of addicting, doesn't it? - Chief Hedgehog [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 21-09-2008, 20:58
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Robot not doing what we need it to, and printfs aren't working

Quote:
Originally Posted by Tanis View Post
So, first of all, our printf's aren't working. MPlab displays a "type qualifier mismatch in assignment" error. Any ideas why they aren't working? They also are not being displayed, which could be attributed to our next problem.

Our robot is not doing what we are telling it to do, at all.
We are running Kevin's code.
teleop.c below.
"type qualifier mismatch in assignment" is usually a warning not an error. Are you sure it is giving you an error? If it is just a warning sometimes it is OK to ignore it.

If the prinfts are still not working after ignoring the warnings, try printing something simple like printf("Hello World"); Also your wFL values are floats so use %f instead of %d.

Quote:
Originally Posted by Tanis View Post
Code:
*
*	AUTHOR:		R. Kevin Watson
*				kevinw@jpl.nasa.gov
*
*	COMMENTS:	This file best viewed with tabs set to four.
*
*				You are free to use this source code for any non-commercial
*				use. Please do not make copies of this source code, modified
*				or un-modified, publicly available on the internet or elsewhere
*				without permission. Thanks.
*
*				Copyright ©2007-2008 R. Kevin Watson. All rights are reserved.
*
********************************************************************************
Just a reminder to everyone, please do not post copies of Kevin's code (as the license says). It makes supporting his code difficult. I know the IFI code is old now but we should still be careful about this.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
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
Need some help with arm not working... neilcooper Programming 3 15-03-2008 06:16
If the computer and internet was not invented, what would you be doing right now? Bharat Nain Chit-Chat 55 03-06-2006 11:55
my comp is not working right and i need help Timmyd Chit-Chat 17 07-11-2005 23:39
Camera not working when connected to robot MarkVH Programming 5 14-02-2005 15:40
Robot Controller Not Working !?!?! Team1425 Electrical 3 24-01-2004 20:52


All times are GMT -5. The time now is 15:14.

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