3-Way Inertial Sensor Programming Question

Does anyone know of a way to make a function that uses math and data collected from a 3-way inertial sensor to find the robot’s location on the field? I had an idea that one could do htis but I have no idea how that would work.

I’m going to assume that you are talking about taking the measured X, Y, and Z acceleration values from the IMU to calculate your robot’s position. While this is theoretically possible, it does not actually work in the real world. This is due to many things, but primarily IMU drift and shaky acceleration values. Mathematically, the integral of acceleration is velocity, and the integral of velocity is position. Therefore, we need to take a double integral of acceleration. However, due to imu drift, you would be lucky to have an accurate position for more than a second. If you are looking for a way to calculate your robot’s position on the field without using the GPS sensor and GPS strips, I would read this document on odometry by Pilons.

Technically speaking you could use the 3 way inertial sensor for that but it is more accurate to use Odometry with 2 perpendicular tracking wheels and an inertial sensor for heading

1 Like