|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Critique this code
Definitely odd, is it a new server perhaps? Maybe my DNS hasn't updated, could somebody resolve the IP and send it to me?
|
|
#2
|
|||
|
|||
|
Re: Critique this code
I could get there just fine, the code is a little unorganized, can you formatt it(it would help alot).
|
|
#3
|
|||
|
|||
|
Re: Critique this code
Quote:
|
|
#4
|
|||
|
|||
|
Re: Critique this code
Why did you use integer math in control_system.c and floating point in drive_control.c. All assignments are being dropped into int variables, so multiplying by 1.30 is just going to put extra strain on the processor to just get the same answer.
Try Code:
targetticks = (percentage * 26) /20; Another general question for all of the PIC gurus out there.. which would be more efficient, if there is any difference? Code:
targetticks = (percentage * 26) /20; or... targetticks = (percentage * 13) /10; |
|
#5
|
|||
|
|||
|
Re: Critique this code
Quote:
|
|
#6
|
||||
|
||||
|
Re: Critique this code
Quote:
![]() |
|
#7
|
||||
|
||||
|
Re: Critique this code
Quote:
Email is my CD username, no spaces all lower case, and it's a gmail.com account. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Out of the Box Camera Code | russell | Programming | 9 | 21-10-2009 05:28 |
| Problem with idata_user_routines.o? | Adrien | Programming | 3 | 12-02-2006 01:33 |
| Team THRUST - Kevin's Code and Camera Code Combine | Chris_Elston | Programming | 3 | 31-01-2005 22:28 |
| Sourceforge for Code Repository and other stuff | SilverStar | Programming | 9 | 15-01-2005 21:16 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |