hongbo-miao/hongbomiao.com

View on GitHub
aerospace/quadcopter-pd-controller/utils/getSysParams.m

Summary

Maintainability
Test Coverage
function params = getSysParams()
    % Basic parameters for the quadcopter

    m = 0.18; % kg
    g = 9.81; % m/s/s
    I = [0.00025,   0,          2.55e-6
         0,         0.000232,   0
         2.55e-6,   0,          0.0003738];

    params.mass = m;
    params.I    = I;
    params.invI = inv(I);
    params.gravity = g;
    params.arm_length = 0.086; % m

    params.minF = 0.0;
    params.maxF = 2.0 * m * g;
end