Loading…
Loading…
Method Name: met_volume
Method ID: 0x4089
Method Label: Volume computation setup
Method Help: Set vessel geometry, dimensions and sensor reference point
- {
- char status[3];
- DD_STRING report;
- unsigned short temp_short;
- unsigned short vessel_type_old;
- unsigned short vessel_type_req;
- unsigned short temp_ushort;
- unsigned short sensor_fl_useinclin_old;
- unsigned short sensor_fl_useinclin_req;
- short sensor_angle_x_old;
- short sensor_angle_x_req;
- short sensor_angle_y_old;
- short sensor_angle_y_req;
- short sensor_angle_horiz_old;
- short sensor_angle_horiz_req;
- float temp_float;
- float vol_height1_old;
- float vol_height1_req;
- float vol_height2_old;
- float vol_height2_req;
- float vol_d1_old;
- float vol_d1_req;
- float vol_d2_old;
- float vol_d2_req;
- float vol_l_x1_old;
- float vol_l_x1_req;
- float vol_l_x2_old;
- float vol_l_x2_req;
- float vol_l_y1_old;
- float vol_l_y1_req;
- float vol_l_y2_old;
- float vol_l_y2_req;
- float base_height_old;
- float base_height_req;
- float sensor_dx_bottom_old;
- float sensor_dx_bottom_req;
- float sensor_dy_bottom_old;
- float sensor_dy_bottom_req;
- float sensor_l_to_x_old;
- float sensor_l_to_x_req;
- float sensor_l_to_y_old;
- float sensor_l_to_y_req;
- report = literal_string(71);
- _set_xmtr_device_status(0xFF,0);
- PUT_MESSAGE(literal_string(630));
- met_mo_get_10(2596);
- if (mo_array_20[0] > 5)
- {
- mo.tipf = 5;
- }
- else
- {
- mo.tipf = mo_array_20[0];
- }
- mo.num_sens = mo_array_20[1];
- sensor_dx_bottom_old = mo_array_20[2];
- sensor_dx_bottom_old /= 100.0;
- mo.dx_bottom = sensor_dx_bottom_old;
- sensor_dy_bottom_old = mo_array_20[3];
- sensor_dy_bottom_old /= 100.0;
- mo.dy_bottom = sensor_dy_bottom_old;
- mo.fl_useinclin = mo_array_20[4];
- sensor_fl_useinclin_old = mo.fl_useinclin;
- mo.angle_x = mo_array_20[5];
- sensor_angle_x_old = mo.angle_x;
- mo.angle_y = mo_array_20[6];
- sensor_angle_y_old = mo.angle_y;
- mo.angle_horiz = mo_array_20[7];
- sensor_angle_horiz_old = mo.angle_horiz;
- sensor_l_to_x_old = mo_array_20[8];
- sensor_l_to_x_old /= 100.0;
- mo.l_to_x = sensor_l_to_x_old;
- sensor_l_to_y_old = mo_array_20[9];
- sensor_l_to_y_old /= 100.0;
- mo.l_to_y = sensor_l_to_y_old;
- PUT_MESSAGE(literal_string(631));
- met_base_height_read();
Please login for more