Quote:
|
Originally Posted by seanwitte
The big advantage to C is the fact that you can break your code up into logical blocks based on shared interfaces.
|
I still say the biggest advantage to C is signed math. The hoops you had to jump through with pBASIC to get anything to work was rediculous. Look at the following two statements:
pBASIC:
PControl = Error * PGain - 127*(PGain-1) // What??????
C:
PControl = Error*PGain;
It seems to me that the C implementation is much easier, more intuitive, and requires less testing/debug to be sure you recentered yourself correctly around zero. The sad thing is, it just took me 2 seconds to write the C line, but about 5 minutes to figure out the pBASIC line. Given that, I'd rather have C any day.