Shop OBEX P1 Docs P2 Docs Learn Events
stumped math — Parallax Forums

stumped math

Ole Man EarlOle Man Earl Posts: 262
edited 2009-05-14 05:44 in Propeller 1
If I use the "float32" in my program for something then this stops working. the rx[noparse][[/noparse] x] always returns 0

[noparse][[/noparse]code]

PUB RC_IO
repeat
' Get Radio Inputs
rx[noparse][[/noparse] 1] := BS2.PULSIN( RxAler,1) ' aleron
rx[noparse][[/noparse] 2] := BS2.PULSIN( RxElev,1) ' elevator
rx[noparse][[/noparse] 3] := BS2.PULSIN( RxThrot,1) ' throttle
rx[noparse][[/noparse] 4] := BS2.PULSIN( RxRudder,1) ' rudder
rx[noparse][[/noparse] 6] := BS2.PULSIN( CH7,1) ' My Ch 7

rx[noparse][[/noparse] 7] := BS2.PULSIN( RxGear,1) ' Gear input switch >550 = down(AP ON) 965 = up(AP OFF)

Any ideas ?
Do I need to tell you my var's ? or anything else ? Need more info ?
The array seams to work if I don't use "float32"

Comments

Sign In or Register to comment.