User Tools

Site Tools


common_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
common_code [2015/08/17 15:37] – [Accel Variable] hakcentercommon_code [2015/10/22 12:19] – [Performance] hakcenter
Line 86: Line 86:
     if (turbo_rpm < top_end_rpm) { turbo_accel[2] = turbo_accel[1]; } else { turbo_accel[2] = turbo_accel[0]; }     if (turbo_rpm < top_end_rpm) { turbo_accel[2] = turbo_accel[1]; } else { turbo_accel[2] = turbo_accel[0]; }
 </code> </code>
-\\ **<fc #6495ed>last_turbo_rpm[0] is updated every 10ms</fc>** +\\ **<fc #6495ed>last_turbo_rpm[0]</fc>** is updated every 10ms 
-\\ **<fc #6495ed>last_turbo_rpm[1] is updated every 100ms</fc>**+\\ **<fc #6495ed>last_turbo_rpm[1]</fc>** is updated every 100ms
 ---- ----
 ==== Idle ==== ==== Idle ====
Line 186: Line 186:
 Performance mode sets vane position to current curve position + the position from JP1. Performance mode sets vane position to current curve position + the position from JP1.
 <code> <code>
-    } //END id !brake_mode && !cruise_mode 
     // -- PERFORMANCE MODE -- //     // -- PERFORMANCE MODE -- //
-         if (performance_mode && vane_position <= 800 && turbo_rpm < top_end_rpm) { vane_position = 800; } +    if (performance_mode && turbo_rpm < top_end_rpm) { vane_position = vane_position + performance_position; }
-    else if (performance_mode && turbo_rpm < top_end_rpm) { vane_position = vane_position + performance_position; }+
 </code> </code>
-  * When calculated vane position + performance is not at least 800, vane position is set to 800. +  * Calculated vane position is **<fc #6495ed>vane_position</fc> + <fc #6495ed>performance_position</fc>**
-    * Otherwise calculated vane position is **<fc #6495ed>vane_position</fc> + <fc #6495ed>performance_position</fc>**+
  
 ---- ----
common_code.txt · Last modified: 2015/10/30 12:54 by hakcenter