1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-05-20 13:49:37 +02:00
cdf2018-principal/chef/src/local.c
2018-05-09 14:24:12 +02:00

17 lines
311 B
C

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
float angleGap(float target, float actual)
{
return remainderf(target - actual + M_PI, 2 * M_PI) - M_PI;
}
int main()
{
float cons = 2;
for (float conn = 0; conn < 10.0; conn += 0.1) {
printf("%6f\n", angleGap(cons, conn));
}
}