[WT-support] Rotors
    Bob Wilson, N6TV 
    n6tv at arrl.net
       
    Tue Aug 11 20:04:43 CEST 2009
    
    
  
On Tue, Aug 11, 2009 at 10:43 AM, Bob Wilson, N6TV <n6tv at arrl.net> wrote:
> moveRotatorTo = (unsigned short)
>   ( ( (signed short)Heading - Offset + 360 ) // 360 );
Correction!  In C the "modulo" operator is %, not //.  So make that
moveRotatorTo = (unsigned short)
  ( ( (signed short)Heading - Offset + 360 ) % 360 );
Thanks F6FVY.
73,
Bob, N6TV
(I've spent too much time writing in another programming language)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.f5mzn.org/pipermail/support/attachments/20090811/ce5abfaa/attachment.htm 
    
    
More information about the Support
mailing list