![]() |
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! |
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.
|
Re: Print F statement
Quote:
|
Re: Print F statement
Quote:
Or less likely that you are converting the unsigned chars to ints. |
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. |
Re: Print F statement
Quote:
|
Re: Print F statement
Quote:
#include <stdio.h> at the top of any file that uses it. Otherwise, you won't see anything. |
Re: Print F statement
Quote:
|
| All times are GMT -5. The time now is 07:23. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi