This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2650STK: How can I change the accel full scall range from ±8 to ±2?

Part Number: CC2650STK

Tool/software: Code Composer Studio

As title,

I found the code

____________________________________

float SensorMpu9250_accConvert(int16_t rawData)
{
float v;

switch (accRange)
{
case ACC_RANGE_2G:
//-- calculate acceleration, unit G, range -2, +2
v = (rawData * 1.0) / (32768/2);
break;

case ACC_RANGE_4G:
//-- calculate acceleration, unit G, range -4, +4
v = (rawData * 1.0) / (32768/4);
break;

case ACC_RANGE_8G:
//-- calculate acceleration, unit G, range -8, +8
v = (rawData * 1.0) / (32768/8);
break;

case ACC_RANGE_16G:
//-- calculate acceleration, unit G, range -16, +16
v = (rawData * 1.0) / (32768/16);
break;
}

return v;

___________________________________________

from SensorMpu9250.c and

___________________________________________

// Accelerometer ranges
#define ACC_RANGE_2G 0
#define ACC_RANGE_4G 1
#define ACC_RANGE_8G 2
#define ACC_RANGE_16G 3
#define ACC_RANGE_INVALID 0xFF

___________________________________________

from SensorMpu9250.h.

But I don't know how to change to ±2?

Where can I find the code?

And if I can change the accel full scall range to ±1 or smaller?