opiQueryDevice: Query device using OPI

View source: R/opi.r

opiQueryDeviceR Documentation

Query device using OPI

Description

Generic function for getting details of the chosen OPI implementation that is set with chooseOpi()

Usage

opiQueryDevice(...)

compass.opiQueryDevice()

display.opiQueryDevice()

daydream.opiQueryDevice()

imo.opiQueryDevice()

kowaAP7000.opiQueryDevice()

octo600.opiQueryDevice()

octo900.opiQueryDevice()

PhoneHMD.opiQueryDevice()

simG.opiQueryDevice()

Arguments

...

Implementation specific parameters. See details.

Details

Compass

Return a list of all the constants used in the OPI Compass module.

Display

Returns all constants in .OpiEnv$Display as a list.

Display

Returns values in use by Display.

Daydream

Returns all constants in .OpiEnv$DayDream as a list.

Daydream

DETAILS

Value

Returns a list that contains isSim and implementation-dependent data.

isSim is TRUE if the device is a simulation, or FALSE if the device is a physical machine.

Compass

A list containing constants and their valuse used in the OPI Compass module.

Octopus600

Returns a list of 10 items: * answerButton {0 = not pressed, 1 = pressed } * headSensor {0 = no forehead detected, 1 = forehead detected } * eyeLidClosureLeft {0 = eye is open, 1 = eye is closed} * eyeLidClosureRight {0 = eye is open, 1 = eye is closed} * fixationLostLeft {1 = eye pos lost, 0 = eye pos ok} * fixationLostRight {1 = eye pos lost, 0 = eye pos ok} * pupilPositionXLeft (in px) * pupilPositionYLeft (in px) * pupilPositionXRight (in px) * pupilPositionYRight (in px)

Octopus900

list containing isSim=FALSE.

KowaAP7000

If the chosen OPI is KowaAP7000, then this function returns the current location of the pupil. See the Value section for details.

Returns a list of 4 items:

  • pupilX, the x-coordinate of the pupil position in pixels.

  • pupilY, the y-coordinate of the pupil position in pixels.

  • purkinjeX, the x-coordinate of the purkinje position in pixels.

  • purkinjeY, the y-coordinate of the purkinje position in pixels.

It also prints a list of constants that OPI knows about for the AP-7000.

Octopus600

If the chosen OPI is Octopus600, then this function returns information about the patient. See the Value section for details.

Octopus900

Prints defined constants in OPI package pertaining to Octopus 900.

PhoneHMD

Returns all constants in .OpiEnv$PhoneHMD as a list.

See Also

chooseOpi

Examples

chooseOpi("SimGaussian")
if (!is.null(opiInitialize(sd=2)))
  stop("opiInitialize failed")
print(opiQueryDevice())

OPI documentation built on Nov. 7, 2023, 9:06 a.m.