I have tried to find the variables which ontrols those parameters you mentioned, but no luck, got very confused. In the AppCoontroller.c, I have the following sensor setup. could you please tell me what to add/change to get high frequency like your configuration. If this is not the target variable, could you please tell on which file and what to change. static Sensor_Setup_T SensorSetup =
{
.CmdProcessorHandle = NULL,
.Enable =
{
.Accel = true,
.Mag = false,
.Gyro = true,
.Humidity = false,
.Temp = false,
.Pressure = false,
.Light = false,
.Noise = true,
},
.Config =
{
.Accel =
{
.Type = SENSOR_ACCEL_BMA280,
.IsRawData = false,
.IsInteruptEnabled = false,
.Callback = NULL,
},
.Gyro =
{
.Type = SENSOR_GYRO_BMG160,
.IsRawData = false,
},
.Mag =
{
.IsRawData = false
},
.Light =
{
.IsInteruptEnabled = false,
.Callback = NULL,
},
.Temp =
{
.OffsetCorrection = APP_TEMPERATURE_OFFSET_CORRECTION,
},
},
};/**< Sensor setup parameters */ Also, in the appControllerSetup: static void AppControllerSetup(void * param1, uint32_t param2)
{
........
NoiseSensor_Setup(22050U);
uint32_t samplingFreqency=500;
.........
} This samplingFrequency does not seems to have any effect. another related question: why only setup function for noise, where is other sensor setup function?
... View more