9#ifndef wb_nxt_interface_h
10#define wb_nxt_interface_h
45union nxt_port_object_data
49 PROPERTY(uint8_t, distance)
54 PROPERTY(
bool, pressed)
59 PROPERTY(int32_t, value)
60 } passive_light_sensor;
64 PROPERTY(int32_t, value)
65 } active_light_sensor;
69 CONTROLLED_PROPERTY(uint32_t, enc_ticks)
71 CONTROLLED_PROPERTY(int16_t, speed)
73 CONTROL_BIT(enc_ticks)
78 unsigned int _padding : 14;
89 PROPERTY(
union nxt_port_object_data, data)
106 memset(
this, 0,
sizeof(*
this));
An object that contains the type and data of an nxt sensor.
PROPERTY(enum nxt_port_object_type, type) PROPERTY(union nxt_port_object_data
what type of sensor / motor
Interface for talking with an NXT.
ARRAY_PROPERTY(struct nxt_port_object, objects, NUMBER_OF_NXT_PORTS) wb_nxt_interface()
An array of sensors and motors plugged into the nxt ports.
nxt_ports
/file wb_nxt_interface.h
nxt_port_object_type
Used to determine what type of object is plugged into each port on the nxt currently.
@ NUMBER_OF_NXT_OBJECT_TYPES