I could test it on the simulator, but I dont think I could come up with a confident test for it.
how does that math work on a picaxe? say I want to do this
compassheading=((compassreading/255)*36)+37-goaldirection
but not
compassheading=(compassreading/(255*36))+37-goaldirection
ok? i thought I read in a post picaxes do the mathe left to right, regardless of the operations involved instead of the standard multiplication, division, addition, subtraction. so by deleteing the parentheisi(?) i'll still get the first equation, right?
if so I can free up a couple lines on the 14M
P.S. the guidance program looks finished, fits in the 14M with 6 bytes to spare, but looks buggy, so need to test, no GPS yet, servos on the way, need to order hall effect compass
how does that math work on a picaxe? say I want to do this
compassheading=((compassreading/255)*36)+37-goaldirection
but not
compassheading=(compassreading/(255*36))+37-goaldirection
ok? i thought I read in a post picaxes do the mathe left to right, regardless of the operations involved instead of the standard multiplication, division, addition, subtraction. so by deleteing the parentheisi(?) i'll still get the first equation, right?
if so I can free up a couple lines on the 14M
P.S. the guidance program looks finished, fits in the 14M with 6 bytes to spare, but looks buggy, so need to test, no GPS yet, servos on the way, need to order hall effect compass