setupRPS

void setupRPS()

Runs the sequence to calibrate the RPS coordinates for the ramp, levers, and burger task. This alters the global variables to store the coordinates. To signal when it is ready to set a coordinate, the screen will change color: Black - Ramp, Gray - Levers, Scarlet - Burger, Blue - Tap when on starting position.

Additonally, a high pitch will sound when it detects a tap, followed by a low pitch sound when it’s ready for the next tap.

Example

1
setupRPS();

Function Variables

Note

This functions alters global variables.

Type

Name

Description

float

trash_x

A trash variable used to detect a tap on the touch screen

float

trash_y

A trash variable used to detect a tap on the touch screen