2018-04-04 16:17:13 +02:00
|
|
|
#include <pthread.h>
|
2018-05-06 01:14:09 +02:00
|
|
|
#include <signal.h>
|
2018-04-30 16:15:47 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2018-05-06 01:14:09 +02:00
|
|
|
#include <time.h> // random seed
|
2018-04-04 16:17:13 +02:00
|
|
|
#include <unistd.h> // sleep
|
|
|
|
|
2018-05-06 01:14:09 +02:00
|
|
|
#include "CF.h"
|
|
|
|
#include "debug.h"
|
|
|
|
#include "movement.h"
|
2018-04-04 16:17:13 +02:00
|
|
|
|
2018-05-06 01:14:09 +02:00
|
|
|
pthread_mutex_t sRunning;
|
|
|
|
|
|
|
|
void endRunning(int signal)
|
2018-04-30 16:15:47 +02:00
|
|
|
{
|
2018-05-06 01:14:09 +02:00
|
|
|
(void)signal;
|
|
|
|
pthread_mutex_unlock(&sRunning);
|
2018-04-30 16:15:47 +02:00
|
|
|
}
|
2018-04-04 16:17:13 +02:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2018-04-30 16:15:47 +02:00
|
|
|
|
2018-05-06 01:14:09 +02:00
|
|
|
configureDebug();
|
|
|
|
configureCF();
|
|
|
|
configurePosition();
|
|
|
|
|
|
|
|
/* long lCod, rCod; */
|
2018-04-30 16:15:47 +02:00
|
|
|
for (;;) {
|
2018-05-06 01:14:09 +02:00
|
|
|
sleep(1);
|
|
|
|
/* getCoders(&lCod, &rCod); */
|
|
|
|
/* printf("%ld %ld\n", lCod, rCod); */
|
|
|
|
/* usleep(100*1000); */
|
2018-04-29 09:38:49 +02:00
|
|
|
}
|
2018-04-04 16:17:13 +02:00
|
|
|
|
|
|
|
}
|