Loading…

方法名称: met_mal_auto

方法ID: 0x40AA

方法标签: Calculate Minimum Amplitude Line

方法描述: Recalculate Minimum Echo Amlitude Line in semiautomatic mode


  • {
  • unsigned char i;
  • unsigned char cmd;
  • unsigned char result;
  • unsigned char temp;
  • unsigned char level_selected;
  • unsigned char status_ok;
  • unsigned short cmd_result;
  • unsigned short temp_short;
  • char status[3];
  • float old_distance;
  • float old_level;
  • float temp_float;
  • float temp_float2;
  • float dead_zone;
  • DD_STRING prompt;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • temp = SELECT_FROM_LIST(literal_string(592),literal_string(593));
  • if (temp == 0)
  • {
  • level_selected = 0;
  • do {
  • temp_float = mal_approx_distance;
  • _get_local_var_value(literal_string(594),0,literal_string(595));
  • mal_approx_distance = temp_float;
  • prompt = literal_string(596);
  • temp = SELECT_FROM_LIST(prompt,literal_string(554));
  • }
  • while (temp != 0);
  • }
  • else
  • {
  • level_selected = 1;
  • PUT_MESSAGE(literal_string(517));
  • temp_short = met_mo_get(12);
  • base_height = met_m_from_internal_format(temp_float);
  • do {
  • temp_float = mal_approx_level;
  • _get_local_var_value(literal_string(597),0,literal_string(595));
  • mal_approx_level = temp_float;
  • prompt = literal_string(598);


请登录以获得完整内容