TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
telemetry.h
Go to the documentation of this file.
1/***************************************************************************
2
3 file : telemetry.h
4 created : Sun Jan 30 22:59:54 CET 2000
5 copyright : (C) 2000 by Eric Espie
6 email : torcs@free.fr
7 version : $Id$
8
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
20
21#ifndef _TELEMETRY_H_
22#define _TELEMETRY_H_
23
24#define TLM_IDENT 1
25
26#include <tgf.h>
27
28typedef void(*tftlmInit)(tdble /* ymin */, tdble /* ymax */);
29typedef void(*tftlmNewChannel)(const char * /* name */, tdble * /* var */, tdble /* min */, tdble /* max */);
30typedef void(*tftlmStartMonitoring)(const char * /* filename */);
31typedef void(*tftlmStopMonitoring)(void);
32typedef void(*tftlmUpdate)(double /* time */);
33typedef void(*tftlmShutdown)(void);
34
35
36typedef struct
37{
38 tftlmInit init; /* Init the telemetry */
39 tftlmNewChannel newChannel; /* Create a new channel */
40 tftlmStartMonitoring startMonitoring; /* Start monitoring */
41 tftlmStopMonitoring stopMonitoring; /* Stop monitoring */
42 tftlmUpdate update; /* Update telemetry */
43 tftlmShutdown shutdown; /* close the telemetry */
44} tTelemItf;
45
46
47
48#endif /* _TELEMETRY_H_ */
49
50
51
float tdble
Floating point type used in TORCS.
Definition tgf.h:47
tftlmShutdown shutdown
Definition telemetry.h:43
tftlmUpdate update
Definition telemetry.h:42
tftlmNewChannel newChannel
Definition telemetry.h:39
tftlmStopMonitoring stopMonitoring
Definition telemetry.h:41
tftlmInit init
Definition telemetry.h:38
tftlmStartMonitoring startMonitoring
Definition telemetry.h:40
void(* tftlmInit)(tdble, tdble)
Definition telemetry.h:28
void(* tftlmUpdate)(double)
Definition telemetry.h:32
void(* tftlmShutdown)(void)
Definition telemetry.h:33
void(* tftlmNewChannel)(const char *, tdble *, tdble, tdble)
Definition telemetry.h:29
void(* tftlmStartMonitoring)(const char *)
Definition telemetry.h:30
void(* tftlmStopMonitoring)(void)
Definition telemetry.h:31