Skip to content

Commit

Permalink
Add a small SLEW rate for SSRC X500 frame ESC control
Browse files Browse the repository at this point in the history
It has been observed that With higher frequency control loop the ESCs
start behaving badly if PWM pulse width changes too rapidly. Take the
motors moment of inertia into account and just restrict the change

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Dec 19, 2024
1 parent 512fb8e commit 7a169b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ROMFS/px4fmu_common/init.d/airframes/4400_ssrc_fog_x
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ param set-default CA_ROTOR3_PX -0.175
param set-default CA_ROTOR3_PY 0.175
param set-default CA_ROTOR3_KM -0.05

# Some slew rate is needed for ESCs if using
# high frequency control loops (e.g. with ADIS imus)
param set-default CA_R0_SLEW 0.1
param set-default CA_R1_SLEW 0.1
param set-default CA_R2_SLEW 0.1
param set-default CA_R3_SLEW 0.1

# PWM functions
param set-default PWM_MAIN_FUNC1 101
param set-default PWM_MAIN_FUNC2 102
Expand Down

0 comments on commit 7a169b9

Please sign in to comment.