Languages

Menu
Sites
Language
How to set accelerometer sensor scale (range) in Tizen native application?

Hello,

I have developed a Tizen native application that uses accelerometer. I want to set the scale (max, min range) to +/- 2G (that is, +/-19.6 m/s^2).

Is there any API available to set the scale to 2G?

(The sensor_get_min_range API returns -78.408012 and sensor_get_max_range API returns 78.405624. That is +/-8G.)

Thanks,

Madhura

 

 

 

 

Responses

3 Replies
Shaswati Saha

According to this link, the range is already set from -19.6 m/s2  to +19.6 m/s2. What's the problem? Would you please share elaborately?

Madhura Pohekar

Hello Shaswati,

 

1) Even though  this link says that the range is set to -19.6 m/s^2  to +19.6 m/s^2, the wearable device actually give readings in -78.xxx to +78.xxx range.

So I confirmed the output of sensor_get_min_range and sensor_get_max_range  APIs. And it returned range as -78.408012 and 78.405624. It means sensor readings and min/max range through API matches. This was just for confirmation.

 

2) The problem is, the werable device returns values in +/-78.xx m/s^2. Whereas, I am interested in getting the values in +/- 19.6 m/s^2.

But I do not find any way to do this. I did not find any API to set any range.

Is there any way to do so?

 

Thanks,

Madhura

Shaswati Saha

Oh! I couldn't find such API in API ref. unfortunately. Please share here if you find any way to do so.