SSC.Sensor¶
- Subclasses:
SSC.SensorAccelerometer,SSC.SensorCompass,SSC.SensorGyroscope,SSC.SensorLight,SSC.SensorMagnetometer,SSC.SensorProximity
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
If the sensor is available for measurements. |
||
r/w/co |
The data type supported by the sensor. |
||
r |
The mount matrix of the sensor in the physical space. |
||
r |
Name of the sensor driver. |
||
r |
The sample rate in Hz supported by the sensor. |
||
r |
The stream type supported by the sensor. |
||
r/w/co |
Higher 64 bits of the sensor UID |
||
r/w/co |
Lower 64 bits of the sensor UID |
||
r |
Name of the vendor of the sensor. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class SSC.Sensor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(data_type, cancellable, callback, *user_data)¶
- Parameters:
data_type (
str) –cancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) –
- classmethod new_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) –- Raises:
- Return type:
- close(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) –
- close_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) –- Raises:
- Return type:
- open(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) –
- open_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) –- Raises:
- Return type:
- do_close(cancellable, callback, *user_data) virtual¶
- Parameters:
cancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) –
- do_close_finish(result) virtual¶
- Parameters:
result (
Gio.AsyncResult) –- Return type:
- do_open(cancellable, callback, *user_data) virtual¶
- Parameters:
cancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) –
- do_open_finish(result) virtual¶
- Parameters:
result (
Gio.AsyncResult) –- Return type:
Property Details¶
- SSC.Sensor.props.available¶
-
If the sensor is available for measurements.
- SSC.Sensor.props.data_type¶
- Name:
data-type- Type:
- Default Value:
- Flags:
The data type supported by the sensor.
- SSC.Sensor.props.mount_matrix¶
-
The mount matrix of the sensor in the physical space.
- SSC.Sensor.props.name¶
-
Name of the sensor driver.
- SSC.Sensor.props.sample_rate¶
-
The sample rate in Hz supported by the sensor.
- SSC.Sensor.props.stream_type¶
-
The stream type supported by the sensor.
- SSC.Sensor.props.uid_high¶
- Name:
uid-high- Type:
- Default Value:
0- Flags:
Higher 64 bits of the sensor UID
- SSC.Sensor.props.uid_low¶
- Name:
uid-low- Type:
- Default Value:
0- Flags:
Lower 64 bits of the sensor UID