Integral velocity to get angle
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm trying to get the angle from mpu6050... anyone can help?
clear all; clc;
port = 'COM9'; %
board = 'Uno'; %
a = arduino(port,board,'Libraries', 'I2C'); %
fprintf("Connected")
imu = mpu6050(a);
while(1)
velocity = readAngularVelocity(imu);
angle = integral(velocity,time) %need to fix
pause(3)
end
Antworten (0)
Siehe auch
Kategorien
Mehr zu I2C Devices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!