<SensorBinder type = "">
: You can bind the sensor data to the variables for gravity sensing, orientation sensor, acceleration sensors, pressure sensors (altitude)
Example:<VariableBinders>
// Orientation sensor:
type = "orientation"
index = 0: azimuth, from 0 to 359,0 = North, 90 = East, 180 = South, 270 = West
index = 1: pitch angle, -180 ~ 180, z-axis steering y-axis positive direction
index = 2: roll angle, -90 ~ 90, x-axis steering z axis positive direction
<SensorBinder type = "orientation">
<Variable name = "" index = "0" />
<Variable name = "" index = "1" />
<Variable name = "" index = "2" />
</ SensorBinder>
// Linear acceleration
type = "linear_acceleration"
index = 0: x direction of linear acceleration
index = 1: linear acceleration y direction
index = 2: z direction of linear acceleration
Linear acceleration is to remove the influence of gravity: gravitational acceleration = linear acceleration +
<SensorBinder type = "linear_acceleration">
<Variable name = "linear_acceleration_x" index = "0" />
<Variable name = "linear_acceleration_y" index = "1" />
<Variable name = "linear_acceleration_z" index = "2" />
</ SensorBinder>
// Acceleration
type = "accelerometer"
index = 0: x-direction acceleration
index = 1: y direction acceleration
index = 2: z direction acceleration
<SensorBinder type = "accelerometer">
<Variable name = "" index = "0" />
<Variable name = "" index = "1" />
<Variable name = "" index = "2" />
</ SensorBinder>
// Gravity sensor
type = "gravity"
index = 0: gravitational acceleration in the x direction
gravitational acceleration in the y direction: index = 1
index = 2: gravitational acceleration z direction
<SensorBinder type = "gravity">
<Variable name = "" index = "0" />
<Variable name = "" index = "1" />
<Variable name = "" index = "2" />
</ SensorBinder>
// Pressure sensor
type = "pressure"
index = 0: barometric pressure unit hPa. The average air pressure at sea level is 1013.25hPa, it can be estimated based on the barometric pressure altitude.
<SensorBinder type = "pressure">
<Variable name = "" index = "0" />
</ SensorBinder>
</ VariableBinders>