1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-05-17 04:26:00 +02:00
cdf2018-principal/chef/src/testSecu.c
2018-05-11 05:34:06 +02:00

26 lines
420 B
C

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <unistd.h>
#include "i2c.h"
#include "securite.h"
int main(int argc, char* argv[])
{
(void)argc;
(void)argv;
initI2C();
configureSecurite();
float fl, fr, bl, br;
for (;;) {
getAllDistance(&fl, &fr, &bl, &br);
printf("FL: %9f FR: %9f BL: %9f BR: %9f\n", fl, fr, bl, br);
usleep(60 * 1000);
}
}