|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Reading Pan Angle from terminal.c
I am confused as to how to properly read Pan Angle in the terminal.c file inside of auto user_routines.c. Do I define
the Pan_Angle parameter inside of terminal.c or inside of user_routines.c Do I use an extern static unsigned int statement inside of terminal.c and still use another statement in user_routines.c? I tried to look through the code and did not find examples. 1) I have added a statement right below where Kevin is outputting Pan Angle in the print statement to calculate Pan_Angle. printf(" Pan Angle (degrees) = %d\r\n", (((int)N_SERVO - 124) * 65)/124); (Pan_Angle= (((int)PAN_SERVO - 124) * 65)/124); 2) Inside of terminal.c I have added static unsigned int Pan_Angle = 0; 3) What about inside user_routines.c where I actually want to be able to read the Pan Angle? A little confused with C-coding standards, |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Camera Pan Angle Problem | JohnC | Programming | 3 | 29-01-2007 12:25 |
| Help needed with finding stud terminal block from KOP | amirjpl | Electrical | 11 | 25-01-2006 19:32 |
| Reading binary data from a file and writing it in VB | complete | Programming | 1 | 02-01-2006 21:21 |
| reading negative numbers from a file in VB | complete | Programming | 4 | 27-12-2005 19:24 |
| Angle from X,Y | Astronouth7303 | Programming | 18 | 19-04-2004 22:08 |