|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Print F statement
I can't seem to get my printf statements to work in Kevins nav code..heres what i have so far
printf("Port1 Y %3d, X %3d, DIGITAL %d, DIGITAL %d, Wheel %3d, p1_aux1 %d, p1_aux2 %d, pwm09 %3d\r",(int)p1_y,(int)p1_x,(int)digital_io_02,(int )digital_io_02,(int)p1_wheel,(int)p1_sw_aux1,(int) p1_sw_aux2,(int)pwm09); THis is the error that it gives me when i try to build C:\ROBOTICS\TEST CODE\FrcCode\user_routines.c:494:Warning [2066] type qualifier mismatch in assignment HELP! |
|
#2
|
|||||
|
|||||
|
Re: Print F statement
One problem with your code it that you are using digital_io_02. That is used for initialization, not for reading/sending data. You should use 'rc_dig_in02' for inputting the data, and I am not sure why you are printing it twice, but thats not a code problem.
|
|
#3
|
|||
|
|||
|
Re: Print F statement
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: Print F statement
Quote:
Or less likely that you are converting the unsigned chars to ints. |
|
#5
|
|||||
|
|||||
|
Re: Print F statement
Quote:
See the README.txt in the v2.4 project directory. You can suppress this particular error by adding -nw=2066 in MPLAB -> Project -> Build Options... -> Project on the MPLAB C18 tab, click on Use Alternate Settings and add it to the end. |
|
#6
|
|||
|
|||
|
Re: Print F statement
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: Print F statement
Quote:
#include <stdio.h> at the top of any file that uses it. Otherwise, you won't see anything. |
|
#8
|
||||
|
||||
|
Re: Print F statement
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mission Statement - what's your team's? | KathieK | Team Organization | 21 | 27-05-2008 18:13 |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| Google Launches Google Print Search | Joe Matt | Chit-Chat | 6 | 08-10-2004 17:13 |
| Print a different page than current page? | KathieK | Website Design/Showcase | 9 | 24-08-2004 21:11 |
| Mission Statement | Madison | FIRST-related Organizations | 11 | 19-05-2003 14:54 |