Loading…

Method Name: set_PST_defaults_abort

Method ID: 0x433F

Method Label: Exit PST Calibration

Method Help:


  • {
  • float qa, qb, qc, qd, qe; int q, q0, q1, q2, q3; char S[3];
  • int i, j, k;
  • long ids[3];
  • float qa0, qa1, qa2, qa3, qa4, qa7;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(1);
  • _set_resp_code((8),0);
  • save_values();
  • DELAY(1,"|en|Please wait...");
  • send_trans(129,34,S);
  • switch(_ivar_value(16434))
  • {
  • case 7:
  • qa4 = 0.689;
  • break;
  • case 12:
  • qa4 = 68.9;
  • break;
  • case 10:
  • qa4 = 0.703;
  • break;
  • default:
  • qa4 = 10.0;
  • break;
  • }
  • q1 = _ivar_value(16529); q2 = - (_ivar_value(16532) & 0x01); q3 = - _ivar_value(16508); if(2 == q1) q1 = -1; if(!q2) q2 = 1; if(!q3) q3 = 1; k = q1 * q2 * q3;
  • qa7 = _fvar_value(16405);


Please login for more