Skip to content

Align equations to paper - #133

Merged
amacati merged 4 commits into
mainfrom
fix.latex_equations
Oct 7, 2026
Merged

amacati merged 4 commits into
mainfrom
fix.latex_equations

Conversation

@ratheron

@ratheron ratheron commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

The equations were outdated, so I've updated them to be identical to the paper. One major change that emerged due to that is the renaming and redefinition of the thrust_time_coef to thrust_dyn_coef, which is the reciprocal of the old value. This will break applications using it (e.g., the MPCs in drone racing), but is needed to align with the paper.

I've also added a link in the docs to the equations, since personally, I would not look for them in the API.

@ratheron
ratheron requested a review from amacati as a code owner October 6, 2026 19:01

@amacati amacati left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments that we should discuss, otherwise looks good

Comment on lines +93 to +103
where \({}^{\mathcal{B}}\mathbf{f}_\mathrm{t}\) and \({}^{\mathcal{B}}\mathbf{f}_\mathrm{a}\) are
the thrust and aerodynamic drag force, \({}^{\mathcal{B}}\mathbf{t}_\mathrm{t}\),
\({}^{\mathcal{B}}\mathbf{t}_\mathrm{d}\), \({}^{\mathcal{B}}\mathbf{t}_\mathrm{g}\), and
\({}^{\mathcal{B}}\mathbf{t}_\mathrm{r}\) are the thrust, drag, gyroscopic, and reaction torque,
\(\mathbf{e}_\mathrm{z}\) is the unit vector in z direction, \(\mathbf{C}_\mathrm{a}\) is the
body-frame drag matrix, \(l\) is the distance of the motors to the body axes, \(\mathbf{M}\) is
the \(3\times 4\) mixing matrix, \(J_\mathrm{p}\) is the combined inertia of one propeller and its
motor, and \(\mathbf{f}_\mathrm{m}\), \(\mathbf{t}_\mathrm{m}\), and \(\boldsymbol{\Omega}\) stack
the four motor thrusts, torques, and rotor speeds. The gyroscopic and reaction torques convert
\(\boldsymbol{\Omega}\) and \(\dot{\boldsymbol{\Omega}}\) to rad/s internally, so \(J_\mathrm{p}\)
is in SI units.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have a single table explaining everything and then omit this for every function? It's otherwise very cluttered. We could link to it on the bottom of all equations

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. We should link to the paper for the full explanation and explain the symbols more compactly in tables. I will work on this

Comment thread crazyflow/dynamics/so_rpy_rotor/params.toml
@ratheron
ratheron requested a review from amacati October 7, 2026 12:13
@amacati

amacati commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Can't we have a single, unified table for all equations, and then just link to that one table in all equations?

@ratheron

ratheron commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator Author

I think this would be overwhelming. It is already a lot and if I open the so_rpy equations, I don't care about rotor velocities or their dynamics parameters. Imo, every equations should be self-contained. Looking at the rendered docs, I'm not bothered by the table, since they come after the equations, but if I need to, I can look individual parameters up

@amacati

amacati commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Final question before we merge this: does it break anything on the experiments side?

@ratheron

ratheron commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator Author

In crazyflow_experiments? This breaks everything that uses the parameter, i.e., the model-based controllers (MPC, MPCC, MPPI) and the fitting pipeline. However, since the version is pinned, this does not break immediately. If we update the experiments to the next release, we need to fix this.

@amacati

amacati commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Okay, noted. Then let's merge this. Thanks!

@amacati
amacati merged commit 0c1e70c into main Oct 7, 2026
6 checks passed
@amacati
amacati deleted the fix.latex_equations branch October 7, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants