Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 1 month ago.
Multiple Servos
I have 2 servos that i need to program simultaneously. How do i calibrate them separately using the void calibrate() function?
Question relating to:
1 Answer
8 years, 1 month ago.
I Aman,
You must call the calibrate function for each declared servo. ex:
- include "mbed.h"
- include "Servo.h"
Servo throttle(p21); Servo roll(p22);
float range = 0.0005;
throttle.calibrate(range, 100.0); roll.calibrate(range, 180.0);
I use this method to control a quad through a CC3D flight controller. works fine...
Philippe