以下のプログラムを作成したのですがサーボモーターが動きません。逆運動学で角度を求めてその位置まで動いて元の位置に戻るプログラムを作りたいです。どこように改善したらよいでしょうか?回答お願いします。
#include<stdio.h>
#include<math.h>
#include<Servo.h>
Servo servo;
int A=0;
void setup(){
servo.attach(9);
double a,b,c.A;
a=10;
b=20;
c=30;
A=acos((bb+cc-aa)/2bc);
degree = A180.0/PI;
}
void loop()
{
servo.write(A);
delay(1000);
servo.write(0);
delay(1000);
}