Loading…

Method Name: pulse_width

Method ID: 0x4060

Method Label: Pulse width

Method Help:


  • {
  • long ids[2];
  • int pulse_width10;
  • float pulse_width11;
  • int pulse_width20;
  • float pulse_width21;
  • char status[3];
  • send(133,status);
  • do {
  • pulse_width10 = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),16450));
  • pulse_width10 = (pulse_width10 & 0xff00) / 0x0100 | (pulse_width10 & 0x00ff) * 0x0100;
  • pulse_width21 = pulse_width11 = (pulse_width10 >> 8 & 0x00ff | pulse_width10 << 8 & 0xff00) / 10.0;
  • _get_local_var_value(literal_string(461),ids,literal_string(462));
  • pulse_width20 = pulse_width21 * 10;
  • if (pulse_width20 < 0)
  • {
  • ACKNOWLEDGE(literal_string(463));
  • status[0] = 1;


Please login for more