Thanks I forget about pitch yaw roll
Well what I wanted to do was make joystick up and down left and right all in one command it's very hard I copied
and call updatestick2 function underneath the first one So I worked out It works good but when I push up or down it curves to the right like it's got too much roll in it or something
even when I got rid of the
it still does it with about every math command like abs asin etc.
well finall I got to stop curving somewhat but it still does it
but only this time when I move the stick it does it then
Well what I wanted to do was make joystick up and down left and right all in one command it's very hard I copied
and call updatestick2 function underneath the first one So I worked out It works good but when I push up or down it curves to the right like it's got too much roll in it or something
Function UpdateStick2() Local xy# = JoyY(port) Updown = Updown + (1* xy) If Updown < 0-MaxUpdown Then Updown = 0-MaxUpdown If Updown > MaxUpdown Then Updown = MaxUpdown If Abs(Updown) < 0.1 Then Updown = 0 If Abs(xy) < 0.1 ;joystick is dead If Updown < 0 Then Updown = Updown + 1 If Updown > 0 Then Updown = Updown - 1 ;If ACos(Updown) < 1 Then Updown = 0 ;If ACos(Updown) > 1 Then Updown = 0 EndIf End Function
even when I got rid of the
;If ACos(Updown) < 1 Then Updown = 0 ;If ACos(Updown) > 1 Then Updown = 0
it still does it with about every math command like abs asin etc.
well finall I got to stop curving somewhat but it still does it
but only this time when I move the stick it does it then