Page 72
get_create_bay_AI [Category: Create Sensor Function]
Format:
int
get_create_bay_AI();
Returns the 10 bit analog value on pin 4 from the cargo bay.
get_create_bay_DI [Category: Create Sensor Function]
Format:
int
get_create_bay_DI();
Returns a byte for determining the current digital inputs (0 or 1) being applied to pins 16, 6, 18,
5, and 17 of the connector in the Create cargo bay. The 128, 64, and 32 bits of the byte are not
used. The 16 bit is for pin 15, 8 bit for pin 6, 4 bit for pin 18, 2 bit for pin 5 and 1 bit for pin 17.
Pin 15 is used to alter communications baud rate.
get_create_cwdrop [Category: Create Sensor Function]
Format:
int
get_create_cwdrop();
Returns 1 if caster wheel has dropped, 0 otherwise.
get_create_infrared [Category: Create Sensor Function]
Format:
int
get_create_infrared();
Returns the byte detected from an iRobot remote control, Returns 255 if no byte has been
detected.
get_create_lbump [Category: Create Sensor Function]
Format:
int
get_create_lbump();
Returns 1 if left bumper is pressed, 0 otherwise.
get_create_lcliff [Category: Create Sensor Function]
Format:
int
get_create_lcliff();
Returns 1 if the left cliff sensor is over a surface that doesn't reflect IR (e.g., black) or over a cliff,
0 otherwise.
get_create_lcliff_amt [Category: Create Sensor Function]
Format:
int
get_create_lcliff_amt();
Returns the left cliff sensor (analog) reading as a 12 bit value (0 to 4095).
get_create_lfcliff [Category: Create Sensor Function]
Format:
int
get_create_lfcliff();
Returns 1 if left front cliff sensor is over a surface that doesn't reflect IR (e.g., black) or over a
cliff, 0 otherwise.
get_create_lfcliff_amt [Category: Create Sensor Function]
Format:
int
get_create_lfcliff_amt();
Returns the left front cliff sensor (analog) reading as a 12 bit value (0 to 4095).
get_create_lwdrop [Category: Create Sensor Function]
Format:
int
get_create_lwdrop();
Returns 1 if the left wheel has dropped, 0 otherwise. Materials supplied with the Create include
two wheel clips that when installed will prevent the drive wheels from dropping.
get_create_number_of_stream_packets [Category: Create Sensor Function]
Format:
int
get_create_number_of_stream_packets();
If data streaming is being used, it returns the size of the stream.