Bonjour je dois faire un programme pour contrôler le couple de plusieurs servomoteurs ax12a mais je ne comprend pas l'erreur que j'obtiens voici mon programme :
#include <ax12.h> #include <BioloidController.h>
int x = ax12SetRegister(1, 34, 150);
int y = ax12SetRegister(2, 34, 150);
Ok but how can I do to attribute to x the value of the couple of the first servo and y for the second servo which corresponds to address 34 of this library
Ok but how can I do to attribute to x the value of the couple of the first servo and y for the second servo which corresponds to address 34 of this library
I do not understand the question. The function does not return anything, so there is nothing to assign to a variable.
The function takes arguments. The two calls seem to take the number that you want to store in x and y.