AileServo = map(Output, 0, 1024, 1100, 1900);
I have a gyro and accelerometer taking readings and outputting a kalman filtered reading from 0 to 359 degrees.
In the PID library example it looks like the Input value is an analog vaule from 0, 1023. So, I mapped my filtered angle from (0, 359) to (0, 1023) and made it equal the Input. I made the Setpoint variable equal to 762(~270 degrees) and mapped it as so: Code: [Select]AileServo = map(Output, 0, 1024, 1100, 1900);
I know im doing something very wrong here. Any help is appreciated.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16