mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2024-09-28 08:13:06 +02:00
24 lines
473 B
C
24 lines
473 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
|
|
|
|
typedef bool (*diagnosticFunc)(void* arg);
|
|
|
|
// Public
|
|
void runDiagnostics();
|
|
|
|
// Private
|
|
void execDiagnostic(char* name, diagnosticFunc diag, void* arg);
|
|
|
|
#endif
|