PeteOlsen
Member
NOT a PLC so no scaling is built in.
Analog to Digital Joystick, range 0 to 512(neutral) to 1023
Have a deadband set from 412 to 612
I need a scaling conversion that will give me approximately
-5 to 0(neutral) to + 5..
So considering this
-1 would have to be less than 412
-5 would be near 0
+1 would have to be greater than 612
+ 5 would be near 1023.
Since this is in a micro controller, I tried to do several if statements, but was still too fast for my desired output wich is a PWM on a servo.
Analog to Digital Joystick, range 0 to 512(neutral) to 1023
Have a deadband set from 412 to 612
I need a scaling conversion that will give me approximately
-5 to 0(neutral) to + 5..
So considering this
-1 would have to be less than 412
-5 would be near 0
+1 would have to be greater than 612
+ 5 would be near 1023.
Since this is in a micro controller, I tried to do several if statements, but was still too fast for my desired output wich is a PWM on a servo.