This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sensor
mob41 edited this page Jan 15, 2017
·
5 revisions
This is a base class used among all ev3dev sensors.
sysfs-class-name | sysfs-class-name-prefix |
---|---|
lego-sensor | sensor |
You are probably not using the base class for robot development. Here's a list of sensors that the library supports:
Library support in http://www.ev3dev.org/docs/sensors/ are in heavy development. Only some of the sensors are properly implemented to the library. But all the basic sensors (EV3 original) are implemented according the language wrapper specification.
(TODO: Link to the sensor, tutorials)
Manufacturer | P/N | Name | Library class | Auto-detected | Driver | Supported |
---|---|---|---|---|---|---|
Generic NXT Analog Sensor | NXTAnalogSensor | Yes | nxt-analog (nxt-analog-sensor) | Yes | ||
Generic EV3 Analog Sensor | EV3AnalogSensor | Yes | ev3-analog-XX (ev3-analog-sensor) | Yes | ||
Charmed Labs | Pixy (CMUcam5) for LEGO | PixyCmucam5Sensor | Yes | pixy-lego (nxt-i2c-sensor) | Yes | |
Dexter Industries | dFlex | DflexSensor | No | di-flex (nxt-analog-sensor) | Yes | |
Fatcatlab | ADC Adapter | ADCAdapter | Yes | fcl-adc (ev3-uart-sensor) | Yes | |
LEGO | ... | EV3,NXT Original sensors | ... | ... | ... | Yes |
... | ... | All remaining sensors | ... | ... | ... | No |
The base class inherits the Device
class, and have a number of properties and functions.
Method | Property | Command | Description |
---|---|---|---|
getAddress() |
address (SYSFS_PROPERTY_ADDRESS) | Get the address of the sensor | |
sendCommand(String command) |
command (SYSFS_PROPERTY_COMMAND) | Sends a command specified to the sensor | |
getCommandsViaString() |
commands (SYSFS_PROPERTY_COMMANDS) | Relieves a spaced-array of commands supported by the sensor | |
getCommands() |
commands (SYSFS_PROPERTY_COMMANDS) | Relieves a String array of commands supported by the sensor | |
..Adding |