Ending the Program (Error End) The following describes processing that is carried out if an error occurs during execution of AOS camera calibration. 52 $cmd_arg[2] = "" $cmd_arg[3] = "" $cmd_arg[4] = "" nonprocedural command transmission function cmd_arg_num = 1 CALL fhrunsendcmd(socket_no, cmd_arg_num, $cmd_name, $cmd_arg[], err_no) IF err_no success THEN GOTO 10 END CALL fhrunrecvval(retry_count, time_out, socket_no, param[], err_no) IF err_no success THEN GOTO 10 END IF param[0] 0 THEN GOTO 10 END IF bconnected == 1 THEN CALL fhclose(socket_no, err_no) END TYPE "AOS Camera Calibration Successful" CALL fhsample_main() Execute the sample program (fhsample _main).
1 If an error occurs during execution, the program sends the camera calibration mode change command by the nonprocedural command transmission function (fhrunsendcmd) to set the manual calibration mode, and then stops the program. 10 ;Set Calib mode $cmd_name = "RBCOM_SET_CALIB_MODE" Set the camera calibration mode $cmd_arg[0] = "0" to manual calibration. $cmd_arg[1] = "" $cmd_arg[2] = "" $cmd_arg[3] = "" $cmd_arg[4] = "" nonprocedural command transmission function cmd_arg_num = 1 CALL fhrunsendcmd(socket_no, cmd_arg_num, $cmd_name, $cmd_arg[], err_no) CALL fhrunrecvval(retry_count, time_out, socket_no, param[], err_no) ;Error IF bconnected == 1 THEN CALL fhclose(socket_no, err_no)