Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

calibrate()

AbdoullahBougataya edited this page Jul 24, 2023 · 2 revisions

calibrate()

int calibrate(struct Quadcopter parameters, int bip_time);

This calibrate function will calibrate the drone ESCs to make them calibrated the given pulse width. This function takes two parameters:

struct Quadcopter parameters: Is the Quadcopter parameters struct that should be predefined.

int bip_time: Should be set to the time (in seconds) that the motors take to make the beep sound.

Examples

calibrate(parameters, 20000); /*20 s is the time taken by the ESC to make that beep so this calibration process will take 40s (it may vary depending on the ESCs used)*/
Clone this wiki locally