{"id":4021,"date":"2019-02-12T16:10:20","date_gmt":"2019-02-12T16:10:20","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/11-control-systems\/th_gains\/"},"modified":"2025-08-29T11:35:02","modified_gmt":"2025-08-29T16:35:02","slug":"th_gains","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/7-control-systems\/th_gains\/","title":{"rendered":"th_gains"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Set the proportional, integral, and derivative gains for the throttle controller.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>th_gains<\/strong> &lt;proportional_gain&gt; &lt;integral_gain&gt; &lt;derivative_gain&gt; [+s] [m=control_mode]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<table style=\"width: 100%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 7.01%;\">\n<p>proportional_gain<\/p>\n<\/td>\n<td style=\"width: 92.84%;\">\n<p>Specify the desired Proportional gain value for the throttle controller.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 7.01%;\">\n<p>integral_gain<\/p>\n<\/td>\n<td style=\"width: 92.84%;\">\n<p>Specify the desired Integral gain value for the throttle controller.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 7.01%;\">\n<p>derivative_gain<\/p>\n<\/td>\n<td style=\"width: 92.84%;\">\n<p>Specify the desired Derivative gain value for the throttle controller.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 7.01%;\">\n<p>+s<\/p>\n<\/td>\n<td style=\"width: 92.84%;\">\n<p>Optional. Specify this flag to\u00a0indicate the gains should be written to the ctrl_specs.NNN file.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 7.01%;\">\n<p>m=control_mode<\/p>\n<\/td>\n<td style=\"width: 92.84%;\">\n<p>Optional.\u00a0Specify the target engine control mode (as gains are specific to each mode):<br \/>\n1 =&gt; THROT_SPEED<br \/>\n2 =&gt; THROT_SPEED<br \/>\n3 =&gt; THROT_SPEED<br \/>\n4 =&gt; THROT_GROSS_TORQUE<br \/>\n5 =&gt; THROT_NET_TORQUE<br \/>\n6 =&gt; THROT_OTHER<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>th_gains<\/strong> .08 .003 .02<\/p>\n<p>The above command sets the gains of the throttle controller to:<br \/>\nProportional gain = .08 <br \/>\nIntegral gain = .003 <br \/>\nDerivative gain = .02<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The program checks that all gains have the same sign and prompts for confirmation. If not, ensure values are appropriate for the current control mode.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"\/index.php\/usage-help-manual\/7-control-systems\/th\/\">th<\/a>, <a href=\"\/index.php\/usage-help-manual\/7-control-systems\/th_ramp\/\">th_ramp<\/a>, <a href=\"\/index.php\/usage-help-manual\/7-control-systems\/dy\/\">dy<\/a>,<a href=\"\/index.php\/usage-help-manual\/7-control-systems\/dy_ramp\/\">dy_ramp<\/a>, <a href=\"\/index.php\/usage-help-manual\/7-control-systems\/dy_gains\/\">dy_gains<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Set the proportional, integral, and derivative gains for the throttle controller. Enter: th_gains &lt;proportional_gain&gt; &lt;integral_gain&gt; &lt;derivative_gain&gt; [+s] [m=control_mode] Where: proportional_gain Specify the desired Proportional gain value for the throttle controller. integral_gain Specify the desired Integral gain value for the throttle controller. derivative_gain Specify the desired Derivative gain value for the throttle controller. +s Optional. [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1958,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4021","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/4021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=4021"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/4021\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1958"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=4021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}