Quote:
Originally Posted by Tanis
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
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.