View Single Post
  #9   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"