|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: printf problem
Ok so I am having the SAME problem. I can't see if my float calculations are working or not. Did you see the README in the IFI released camera code:
Code:
www.InnovationFirst.com 1/8/2004 - Removed printf_lib.c and printf_lib.h - now using <stdio.h>, compiler needs -nw=2066 to suppress warnings - Added user_camera.c and user_camera.h - to remove code from build -> remove the _USE_CMU_CAMERA macro - Replaced file named PicSerialDrv with user_serialdrv - Note: when using a 'printf' use a '\r' rather than a '\n' with the new compiler (v2.4) So I am not using print_f.lib. I am using stdio.h. I am doing the same thing as miketwalker but I don't get anything to the screen while trying to use floats. Has anyone else got any input? I am using MPLAB, not CBOT, and the new 2.4 version complier.... I spent all day wondering if our float calculations are actually working. Is float supported in this PIC? Can I even do a calculation like this? If WHEELBASE = 485.35 mm? Code:
pos_mm_theta = (pos_mm_Left_Encoder_Count - pos_mm_Right_Encoder_Count)/WHEELBASE; posx_mm = pos_mm_distance * sin(pos_mm_theta); posy_mm = pos_mm_distance * cos(pos_mm_theta); Quote:
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Problem: Extremely Frustrating | chantilly_team | Programming | 19 | 12-02-2005 23:00 |
| printf problem | cbolin | Programming | 4 | 09-11-2004 02:44 |
| Anyone with a replacement Printf? | Larry Barello | Programming | 5 | 19-03-2004 02:20 |
| The problem with scouting... | archiver | 2001 | 10 | 23-06-2002 23:49 |
| Major problem with chipphua motors | aka Scott White | Motors | 18 | 19-03-2002 19:44 |