Quote Originally Posted by Mike, K8LH View Post
Hi Alain,

May I impose to ask about the analog signal you're measuring and how it relates to degrees port and starboard? ).

Kind regards, Mike
Hi, Mike,

I'd also had liked a way to find some easier calculations ...

but the guy who gave me the formulas ( a final project for student ...) gave it in the " ax+b " form ... with a and b being ... floating point numbers with 2 or 3 decimals !!!

I already have extracted integer ratios to avoid any floating point calculations ... ...

I wonder it is a voltage given by a pot ( position of a helm ) that is the input value...

do not bash ... I perfectly know :

1) the pot has 5% garanteed linearity ...

2) as the input swings from 3.02v to 5.02 v ... the output value is ... 26 starboard to 26 port ...

So, I know there's overkilling math here, but it can't be modified or re-studied because of the final projects rush ...

The HEX just fits into the PIC Flash memory... so, it will be enough here ...


being serious ... that doesn't rub the 4+ x ratio between compilers ... for same little job !!!

Alain