float xiaoyu_2000[1200];
float dayu_2000[1200];
uint16_t clk, i_old,i_new;
void list(void)
{
float Angle_1,Angle_2;
float encoder_1,encoder_2;
uint16_t i,j;
for(i=0;i<1200;i++)
{
encoder_1+=0.05;
Angle_1 = encoder_1*PI/180;
dayu_2000
= (Angle_1-atanf( L*(1-cos(Angle_1))/(S+L*sin(Angle_1))))*180/PI;
//printf("rn the data is111: %frn",dayu_2000);
}
for(j=0;j<1200;j++)
{
encoder_2+=0.05;
Angle_2 = encoder_2*PI/180;
xiaoyu_2000[j] = (Angle_2+atanf( L*(1-cos(Angle_2))/(S-L*sin(Angle_2))))*180/PI;
//printf("rn the data is: %f rn",xiaoyu_2000[j]);
}
printf("rn the data is: completed rn");
}
float xiaoyu_2000[1200];
float dayu_2000[1200];
uint16_t clk, i_old,i_new;
void list(void)
{
float Angle_1,Angle_2;
float encoder_1,encoder_2;
uint16_t i,j;
for(i=0;i<1200;i++)
{
encoder_1+=0.05;
Angle_1 = encoder_1*PI/180;
dayu_2000 = (Angle_1-atanf( L*(1-cos(Angle_1))/(S+L*sin(Angle_1))))*180/PI;
//printf("rn the data is111: %frn",dayu_2000);
}
for(j=0;j<1200;j++)
{
encoder_2+=0.05;
Angle_2 = encoder_2*PI/180;
xiaoyu_2000[j] = (Angle_2+atanf( L*(1-cos(Angle_2))/(S-L*sin(Angle_2))))*180/PI;
//printf("rn the data is: %f rn",xiaoyu_2000[j]);
}
printf("rn the data is: completed rn");
}
举报