stumped math
Ole Man Earl
Posts: 262
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"
[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
the overlay has 1, 3 serials ports, xbee, compass, gps, main cog take 8 cogs, the float32 takes another. Something will fail.
ver 15 works ver 19 dont work..here they are.
Cant keep eyes open...c u tomorow..
Thanks
Earl