Skip to content

Commit

Permalink
ubuntsu compile warning for unused variable p, q, r, psi
Browse files Browse the repository at this point in the history
kenjihiranabe committed Dec 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 70d2bbb commit bfaeedc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions matlab-if/drone_acceleration_by_linear_at_hover.c
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@
mi_drone_acceleration_out_t drone_acceleration_by_linear_at_hover(const mi_drone_acceleration_in_t* in) {
double phi = in->phi;
double theta = in->theta;
double psi = in->psi;
// double psi = in->psi; // unused
double u = in->u;
double v = in->v;
double w = in->w;
double p = in->p;
double q = in->q;
double r = in->r;
// double p = in->p; // unused
// double q = in->q; // unused
// double r = in->r; // unused
double T = in->thrust;
double tx = in->torque_x;
double ty = in->torque_y;
@@ -37,5 +37,4 @@ mi_drone_acceleration_out_t drone_acceleration_by_linear_at_hover(const mi_drone
.dq = ty/Iyy,
.dr = tz/Izz
};
}

}

0 comments on commit bfaeedc

Please sign in to comment.