Skip to content

Conversation

Jaeyoung-Lim
Copy link
Member

Describe problem solved by this pull request
Previously, the parameters for EZGs were stored as a raw param file, making it hard to version the parameter files. Also, this makes it hard to match the parameter with the firmware version.

Describe your solution
This PR adds the parameters of our current EZGs to the airframe config.

  • The defaults are defined as the current vehicle paramters. In case we change it, QGC will rightly display non-default parameters.
  • Vehicle specific calibration parameters are not added to the airframe config

@Jaeyoung-Lim
Copy link
Member Author

@acfloria @tstastny Anychance we can get this in?

param set-default FW_AIRSPD_MAX 16.0
param set-default FW_AIRSPD_MIN 8.5
param set-default FW_AIRSPD_TRIM 10.0
param set-default FW_DTRIM_P_VMAX -0.25
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would not set the dtrim by default because they are platform specific

param set-default LND_FLIGHT_T_HI 2
param set-default LND_FLIGHT_T_LO -1126687183
param set-default NPFG_GSP_MAX_TK 5.0
param set-default NPFG_SW_DST_MLT0.5
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think there is a space missing here

param set-default PWM_MAIN_DIS5 -1
param set-default PWM_MAIN_DIS6 -1
param set-default PWM_MAIN_DISARM 1000
param set-default PWM_MAIN_TRIM1 0.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same for the trims. They are platform specific and probably should just be 0 by default

param set-default ASPD_SCALE 0.85

param set-default PWM_MAIN_DIS1 1500
param set-default PWM_MAIN_DIS2 1350
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably the default here should be 1500. For this EZG we set it to 1350 because the actuator was not well centered.

@stale
Copy link

stale bot commented Feb 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants