Constructor
new Orphe(_num)
Name | Type | Description |
---|---|---|
_num | number | specifies id of your ORPHE CORE Module |
- Source
Members
device_information
Associative array of device information
- Source
gait
associative array for gait data
- Source
quat
associative array for quotanion
- Source
Methods
(async) begin(notification_typeopt, optionsopt) → {Promise.<string>}
begin BLE connection If options is not specified, it follows the current settings of the device.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
notification_type | string | <optional> | "ANALYSIS" | ANALYSIS, RAW, ANALYSIS_AND_RAW |
options | object | <optional> | {range:{acc:-1, gyro:-1}} | {range:{acc:[2,4,8,16],gyro:[250,500,1000,2000]} |
- Source
- Type:
- Promise.<string>
gotAcc(acc)
Name | Type | Description |
---|---|---|
acc | Object | {x,y,z} |
- Source
gotCalorie(calorie)
Name | Type | Description |
---|---|---|
calorie | Object | {value} |
- Source
gotData(data)
Name | Type | Description |
---|---|---|
data | dataview | orphe terminal専用 |
- Source
gotDelta(delta)
Name | Type | Description |
---|---|---|
delta | Object | {x,y,z} |
- Source
gotDirection(direction)
Name | Type | Description |
---|---|---|
direction | Object | {value} 0:none, 1:foward, 2:backward, 3:inside, 4:outside |
- Source
gotDistance(distance)
Name | Type | Description |
---|---|---|
distance | Object | {value} |
- Source
gotEuler(euler)
Name | Type | Description |
---|---|---|
euler | Object | {pitch, roll, yaw} |
- Source
gotFootAngle(foot_angle)
Name | Type | Description |
---|---|---|
foot_angle | Object | {value} |
- Source
gotGait(gait)
Name | Type | Description |
---|---|---|
gait | Object | {type, direction, calorie, distance} |
- Source
gotGyro(gyro)
Name | Type | Description |
---|---|---|
gyro | Object | {x,y,z} |
- Source
gotLandingImpact(landing_impact)
Name | Type | Description |
---|---|---|
landing_impact | Object | {value} |
- Source
gotPronation(pronation)
Name | Type | Description |
---|---|---|
pronation | Object | {x,y,z} |
- Source
gotQuat(quat)
Name | Type | Description |
---|---|---|
quat | Object | {w, x,y,z} |
- Source
gotStepsNumber(steps_number)
Name | Type | Description |
---|---|---|
steps_number | Object | {value} |
- Source
gotStride(stride)
Name | Type | Description |
---|---|---|
stride | Object | {x,y,z} |
- Source
gotType(type)
Name | Type | Description |
---|---|---|
type | Object | {value} 0:none, 1:walk, 2:run, 3:stand |
- Source
onRead(data, uuid)
Incoming byte callback function
Name | Type | Description |
---|---|---|
data | dataView | incoming bytes |
uuid | string |
- Source
read(uuid)
Read BLE data
Name | Type | Description |
---|---|---|
uuid | string | DEVICE_INFORMATION |
- Source
requestDevice(uuid)
Execute requestDevice()
Name | Type | Description |
---|---|---|
uuid | string |
- Source
reset()
reset(disconnect & clear)
- Source
resetAnalysisLogs()
Reset Analysis logs in the core module.
- Source
resetMotionSensorAttitude()
Reset motion sensor attitude, quaternion culculation.
- Source
setLED(on_off, pattern)
set LED mode
Name | Type | Description |
---|---|---|
on_off | int | 0: turning off the LED, 1: turning on the LED |
pattern | int | 0-4 |
- Source
setLEDBrightness(value)
sets the LED Brightness
Name | Type | Description |
---|---|---|
value | uint8 | 0-255, 0:turning off the LED |
- Source
setup(names)
setup UUID by predefined name, DEVICE_INFORMATION, SENSOR_VALUES, STEP_ANALYSIS
Name | Type | Description |
---|---|---|
names | Array.<string> | DEVICE_INFORMATION, SENSOR_VALUES, STEP_ANALYSIS |
- Source
startNotify(uuid)
Stop Notification
Name | Type | Description |
---|---|---|
uuid | string |
- Source
stop()
stop and disconnect GATT connection
- Source
stopNotify(uuid)
Stop Notification
Name | Type | Description |
---|---|---|
uuid | string |
- Source
write(uuid, array_value)
write data to the BLE device
Name | Type | Description |
---|---|---|
uuid | string | DEVICE_INFORMATION, SENSOR_VALUES, STEP_ANALYSIS |
array_value | dataView | write bytes |
- Source