gusimplewhiteboard
wb_buttons_status.h
Go to the documentation of this file.
1
9
#ifndef wb_buttons_status_h
10
#define wb_buttons_status_h
11
12
#include <gu_util.h>
13
#include "
wb_button.h
"
14
16
enum
nxt_buttons_id
17
{
18
LEFT_BUTTON
= 0,
19
RIGHT_BUTTON
,
20
NUMBER_OF_NXT_BUTTONS
21
};
22
26
struct
wb_buttons_status
27
{
29
ARRAY_PROPERTY
(
struct
wb_button
, touch_sensors,
NUMBER_OF_NXT_BUTTONS
)
30
31
#ifdef __cplusplus
35
wb_buttons_status
()
36
{
37
memset(
this
, 0,
sizeof
(*
this
));
38
}
39
#endif
40
};
41
42
#endif
//wb_buttons_status_h
wb_button
/file wb_button.h
Definition:
wb_button.h:18
wb_buttons_status
An Array of buttons for talking with an NXT.
Definition:
wb_buttons_status.h:27
wb_buttons_status::ARRAY_PROPERTY
ARRAY_PROPERTY(struct wb_button, touch_sensors, NUMBER_OF_NXT_BUTTONS) wb_buttons_status()
An array of sensors and motors plugged into the nxt ports.
Definition:
wb_buttons_status.h:29
wb_button.h
nxt_buttons_id
nxt_buttons_id
/file wb_buttons_status.h
Definition:
wb_buttons_status.h:17
RIGHT_BUTTON
@ RIGHT_BUTTON
Definition:
wb_buttons_status.h:19
LEFT_BUTTON
@ LEFT_BUTTON
Definition:
wb_buttons_status.h:18
NUMBER_OF_NXT_BUTTONS
@ NUMBER_OF_NXT_BUTTONS
Definition:
wb_buttons_status.h:20
typeClassDefs
wb_buttons_status.h
Generated by
1.9.2