Go to Post i'm not addicted to CD.com...i can stop anytime i want. - RogerR [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-02-2006, 15:24
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Syntax Error!

I'm getting a syntax error on this line:

int Distance_Function(float tilt_angle_rad)
{
if (tracking_initialized == 1)
{
distance_from_wall = (int)(3.162 / tan(tilt_angle_rad));
return(distance_from_wall);
}
}

I'm not really sure I declaired everything right, but can someone help me out? I added math.h and included it in the tracking.c(where this code is from).


float tilt_angle_rad;

tilt_angle_rad = (0.01745) * (((TILT_SERVO - 144) * 25)/50);
Distance_Function(tilt_angle_rad);

I also have that somewhere else in the code. And I declaired my function aswell. Help? Thanks in advance!
__________________
www.sabrerobotics.com
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C18 v2.4 -- Syntax error where there is no syntax error Joel J Programming 7 12-01-2007 17:27
Syntax Error: externs, structs, and macros Astronouth7303 Programming 3 16-02-2005 15:39
syntax error using enum{} gnormhurst Programming 8 07-02-2005 14:25
MPLink Error cloudago Programming 2 01-02-2005 23:00
Routine declaration syntax error (Or: Where's wlado?) Astronouth7303 Programming 15 24-03-2004 05:51


All times are GMT -5. The time now is 21:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi