mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2024-05-17 20:45:59 +02:00
22 lines
439 B
C
22 lines
439 B
C
#ifndef __DIAGNOSTICS_H_
|
|
#define __DIAGNOSTICS_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
// Constantes
|
|
#define DIAGNOSTIC_INTERVAL 100
|
|
#define DIAGNOSTIC_POLL_INTERVAL 100
|
|
#define DIAGNOSTIC_SERIAL_TIMEOUT 10000
|
|
|
|
#define DIAGNOSTIC_TENSION_TEST 3
|
|
#define DIAGNOSTIC_CODEUSES_DIFF_MIN 100
|
|
#define DIAGNOSTIC_TEMPS_ROTATION 250
|
|
|
|
// Public
|
|
void runDiagnostics();
|
|
|
|
// Private
|
|
void execDiagnostic(char *name, bool (*diagnostic)(void* arg), void* arg);
|
|
|
|
#endif
|