by serithseraki » Tue Oct 25, 2011 5:26 pm
by serithseraki
Tue Oct 25, 2011 5:26 pm
I have read what I could find on the forum and wiki and I am aware that gyros would be the better alternative for this. I would use them if I had the funds and available space on my robonova for them. But sadly I have to use what I got available and the accelerometer is it. Now I assume I would have to use the servo command to adjust the servos individually according to tilt, but I do not know how to write code for this. But to give you all an idea on my plans I want to use the accelerometer to compensate for slight tilt, and then use the arms and legs to brace for impact at a large tilt.
I have read what I could find on the forum and wiki and I am aware that gyros would be the better alternative for this. I would use them if I had the funds and available space on my robonova for them. But sadly I have to use what I got available and the accelerometer is it. Now I assume I would have to use the servo command to adjust the servos individually according to tilt, but I do not know how to write code for this. But to give you all an idea on my plans I want to use the accelerometer to compensate for slight tilt, and then use the arms and legs to brace for impact at a large tilt.