Skip to content

Update model parameters - #129

Merged
ratheron merged 5 commits into
mainfrom
fix.model_params
Sep 26, 2026
Merged

ratheron merged 5 commits into
mainfrom
fix.model_params

Conversation

@ratheron

Copy link
Copy Markdown
Collaborator

I've noticed that some parameters where still sitting in dev of drone_models. Instead of blindly copying it over, I just refit all params. While doing that, I noticed that the so_rpy_rotor model was not fitting properly. Due to unused gradients for some parameters, the optimizer got stuck. Fixed in this PR.

@ratheron
ratheron requested a review from amacati as a code owner September 26, 2026 12:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

First-principles drag parameters remain stale, and the Jacobian fix lacks a regression assertion.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Updates fitted drone dynamics parameters and corrects translation-identification Jacobians.

Changes:

  • Masks Jacobian columns for unused model parameters.
  • Refreshes fitted coefficients and shared masses.
  • Synchronizes MuJoCo inertial masses.
File Description
crazyflow/​dynamics/​utils/​identification.py Masks inactive Jacobian columns.
crazyflow/​dynamics/​so_rpy/​params.toml Updates fitted parameters.
crazyflow/​dynamics/​so_rpy_rotor/​params.toml Updates rotor-model parameters.
crazyflow/​dynamics/​so_rpy_rotor_drag/​params.toml Updates rotor-drag parameters.
crazyflow/​dynamics/​first_principles/​params.toml Updates shared masses.
crazyflow/​drones/​cf2x_T350.xml Updates inertial mass.
crazyflow/​drones/​cf2x_P250.xml Updates inertial mass.
crazyflow/​drones/​cf2x_L250.xml Updates inertial mass.
crazyflow/​drones/​cf21B_500.xml Updates inertial mass.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crazyflow/dynamics/utils/identification.py
Comment thread crazyflow/dynamics/so_rpy_rotor_drag/params.toml
@ratheron
ratheron merged commit f9ce54d into main Sep 26, 2026
6 checks passed
@ratheron
ratheron deleted the fix.model_params branch September 26, 2026 13:31
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