49 double x = 0, y = 0, z = 0;
50 mmL.GetIMUGyro(x, y, z);
70 double x = 0, y = 0, z = 0;
71 mmL.GetIMUAcc(x, y, z);
117 double roll = 0, pitch = 0, yaw = 0;
118 mmL.GetIMUEuler(roll, pitch, yaw);
138 double x = 0, y = 0, z = 0;
139 mmL.GetIMUAcc(x, y, z);
156 double x = 0, y = 0, z = 0;
157 mmL.GetIMUGyro(x, y, z);
173 double roll = 0, pitch = 0, yaw = 0;
174 mmL.GetIMUEuler(roll, pitch, yaw);
194 bool saveIMUCalData(
float face1,
float face2,
float face3,
float face4,
float face5,
float face6)
196 float accdata[6] = {face1, face2, face3, face4, face5, face6};
199 EEPROM.put(Address_F, accdata[0]);
200 Address_F +=
sizeof(float);
201 EEPROM.put(Address_F, accdata[1]);
202 Address_F +=
sizeof(float);
203 EEPROM.put(Address_F, accdata[2]);
204 Address_F +=
sizeof(float);
205 EEPROM.put(Address_F, accdata[3]);
206 Address_F +=
sizeof(float);
207 EEPROM.put(Address_F, accdata[4]);
208 Address_F +=
sizeof(float);
209 EEPROM.put(Address_F, accdata[5]);
227 EEPROM.get(Address_F, accdata[0]);
228 Address_F +=
sizeof(float);
229 EEPROM.get(Address_F, accdata[1]);
230 Address_F +=
sizeof(float);
231 EEPROM.get(Address_F, accdata[2]);
232 Address_F +=
sizeof(float);
233 EEPROM.get(Address_F, accdata[3]);
234 Address_F +=
sizeof(float);
235 EEPROM.get(Address_F, accdata[4]);
236 Address_F +=
sizeof(float);
237 EEPROM.get(Address_F, accdata[5]);
253 result =
mmL.GetALLEncoderSpeed(Speed_En);
254 Speed_value[0] = Speed_En[0];
255 Speed_value[1] = Speed_En[1];
256 Speed_value[2] = Speed_En[2];
257 Speed_value[3] = Speed_En[3];
276 result =
mmL.Get_IMU_nancalib_acc(Speed_En);
278 accdataCX[0] = Speed_En[0];
279 accdataCX[1] = Speed_En[1];
280 accdataCX[2] = Speed_En[2];
Handling the Lower MCU (STM32) communication.
bool applyIMUCalData(void)
Load and send IMU calibration data from EEPROM (R4 EEPROM 0x32 - 0x49)
bool getIMU_acc_real(float *accdataCX)
Gets the raw (uncalibrated) IMU accelerometer data.
bool saveIMUCalData(float face1, float face2, float face3, float face4, float face5, float face6)
Save IMU calibration data with 6 individual parameters (R4 EEPROM 0x32 - 0x49)
bool resetIMUValues(void)
Resets the IMU values to zero.
double getAccel(AxisType axis)
Gets the accelerometer value for a specified axis.
uint8_t getGyro_All(double *dataX)
Gets the gyro value for a specified axis.
double getGyro(AxisType axis)
Gets the gyro value for a specified axis.
double getAccelRaw(AxisType axis)
Gets the raw (uncalibrated) IMU accelerometer data for a specific axis.
uint8_t getEuler_All(double *dataX)
Gets the Euler angle for a specified axis.
uint8_t getAccel_All(double *dataX)
Gets the accelerometer value for a specified axis.
double getEuler(AxisType axis)
Gets the Euler angle for a specified axis.
bool getAllSpeed(int32_t *Speed_value)
Gets the current encoder Speed value. (RPS)