Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Basic Tutorial -->
- <!-- You can bind the sensor data to the variables for gravity sensor, orientation sensor,
- acceleration sensor, linear acceleration sensor and 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 = "orientation_x" index = "0" />
- <Variable name = "orientation_y" index = "1" />
- <Variable name = "orientation_z" index = "2" />
- </SensorBinder>
- <!-- Linear acceleration
- type = "linear_acceleration"
- index = 0: x direction of linear acceleration
- index = 1: y direction of linear acceleration
- index = 2: z direction of linear acceleration
- Linear acceleration is to remove the influence of gravity:
- * linear acceleration = acceleration - acceleration due to gravity-->
- <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 = "acceleration_x" index = "0" />
- <Variable name = "acceleration_y" index = "1" />
- <Variable name = "acceleration_z" index = "2" />
- </SensorBinder>
- <!-- Gravity sensor
- type = "gravity"
- index = 0: gravitational acceleration in the x direction
- index = 1: gravitational acceleration in the y direction
- index = 2: gravitational acceleration in the z direction -->
- <SensorBinder type = "gravity">
- <Variable name = "gravity_x" index = "0" />
- <Variable name = "gravity_y" index = "1" />
- <Variable name = "gravity_z" 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 = "pressure" index = "0" />
- </SensorBinder>
- </VariableBinders>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement