Hey,
I am a bit of a nub when it comes to programming registers but can someone help me activate DLPF for mpu 6050? I have been using the base code to get the raw values and then converting it to roll and pitch using the atan2 formulas but I cant figure out how to activate the low pass filter for it i.e. how to modify the register associated with it.
I have come across this
#define MPU6050_DLPF_BW_256 0x00
#define MPU6050_DLPF_BW_188 0x01
#define MPU6050_DLPF_BW_98 0x02
#define MPU6050_DLPF_BW_42 0x03
#define MPU6050_DLPF_BW_20 0x04
#define MPU6050_DLPF_BW_10 0x05
#define MPU6050_DLPF_BW_5 0x06
but have no idea on how to actually implement it.
This is the code I am currently using, #include<Wire.h>double AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ; uint32_t timer;#defi - Pastebin.com .
Please tell me how to modify it to activate digital low pass filtering