[go: up one dir, main page]

CN107092199B - Ship motion control simulation platform and ship motion control method - Google Patents

Ship motion control simulation platform and ship motion control method Download PDF

Info

Publication number
CN107092199B
CN107092199B CN201710411780.2A CN201710411780A CN107092199B CN 107092199 B CN107092199 B CN 107092199B CN 201710411780 A CN201710411780 A CN 201710411780A CN 107092199 B CN107092199 B CN 107092199B
Authority
CN
China
Prior art keywords
module
control
attitude
motion
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710411780.2A
Other languages
Chinese (zh)
Other versions
CN107092199A (en
Inventor
彭聪
迟慧
曾聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Aeronautics and Astronautics
Original Assignee
Nanjing University of Aeronautics and Astronautics
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Aeronautics and Astronautics filed Critical Nanjing University of Aeronautics and Astronautics
Priority to CN201710411780.2A priority Critical patent/CN107092199B/en
Publication of CN107092199A publication Critical patent/CN107092199A/en
Application granted granted Critical
Publication of CN107092199B publication Critical patent/CN107092199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

本发明公开一种船舶运动控制仿真平台,包括控制模块、驱动模块、姿态测量模块、位置确定模块及电源模块,驱动模块用于控制运动平台的前行和转向;姿态测量模块和位置确定模块分别用于测量运动平台的姿态和位置数据;控制模块配置有航迹跟踪算法和甲板运动模型,控制模块从姿态测量模块和位置确定模块中获取运动平台的姿态和位置信息后进行航迹跟踪计算,然后根据计算结果通过驱动模块将按照期望路线运动,并能同时模拟舰船在海浪中的甲板运动。进一步,还公开一种船舶运动控制方法。通过该平台或方法,把航向控制和航迹控制分开的间接控制方法,控制参数调整简单,航向控制算法和航迹控制算法可分别修改。

The invention discloses a ship motion control simulation platform, comprising a control module, a drive module, an attitude measurement module, a position determination module and a power supply module. The drive module is used to control the forward movement and steering of the movement platform; the attitude measurement module and the position determination module are respectively It is used to measure the attitude and position data of the motion platform; the control module is equipped with a track tracking algorithm and a deck motion model. Then, according to the calculation results, the driving module will move according to the desired route, and at the same time, the deck movement of the ship in the waves can be simulated. Further, a ship motion control method is also disclosed. Through the platform or method, the indirect control method which separates the heading control and the track control, the adjustment of the control parameters is simple, and the heading control algorithm and the track control algorithm can be modified separately.

Description

船舶运动控制仿真平台及船舶运动控制方法Ship motion control simulation platform and ship motion control method

技术领域technical field

本发明属于一种船舶运动控制仿真技术领域,特别涉及一种船舶运动控制仿真平台及船舶运动控制方法。The invention belongs to the technical field of ship motion control simulation, in particular to a ship motion control simulation platform and a ship motion control method.

背景技术Background technique

舰船在海面上的运动会影响飞机着舰精度,可以通过模式识别来判断舰船姿态,从而选择合适的时机着舰。在飞机着舰的研究中,一个舰船运动仿真平台是必不可少的。原型系统的设计与仿真具有非常广泛的应用价值,可快速验证设计系统的原理性方案。为了检验控制系统设计是否合理、控制算法是否有效,需要通过多次水上试验。每次实验需要综合船舶的运动数据,然后进行分析整理,得到控制性能的综合性评估,从而比较控制方法的优劣。所以,仿真是研究船舶运动控制算法的必要方法。通常有以下3种仿真方法:计算机模拟方法、实船试验和半实物平台仿真。The movement of the ship on the sea will affect the landing accuracy of the aircraft, and the attitude of the ship can be judged through pattern recognition, so as to choose the right time to land. In the study of aircraft landing, a ship motion simulation platform is essential. The design and simulation of the prototype system has a very wide range of application value, which can quickly verify the principle scheme of the design system. In order to check whether the control system design is reasonable and the control algorithm is effective, it is necessary to pass several water tests. Each experiment needs to synthesize the motion data of the ship, and then analyze and organize to obtain a comprehensive evaluation of the control performance, so as to compare the advantages and disadvantages of the control methods. Therefore, simulation is a necessary method to study ship motion control algorithm. There are usually the following three simulation methods: computer simulation method, real ship test and semi-physical platform simulation.

计算机模拟方法成本低、简便,是最常用的初期仿真方法,其具有良好的交互性,能够较好地仿真船舶在海浪中的运动,但是计算机模拟方法结果的可靠性与建立的数学模型和模拟海况的精确程度关系很大,故只能作为验证各种控制方法的初步手段。实船试验可靠性高,然而危险性大、成本高,所以一般在控制方法得到计算机模拟验证,基本确定可行性后使用。与前两种方法相比,半实物平台仿真可靠性较高并且费用低又安全,应用广泛,但是目前已经有的船舶运动仿真平台较少,且控制算法复杂,参数调整困难,算法的可移植性不高。The computer simulation method has low cost and simplicity, and is the most commonly used initial simulation method. It has good interactivity and can better simulate the motion of the ship in the waves. The accuracy of the sea state is very important, so it can only be used as a preliminary means to verify various control methods. The real ship test has high reliability, but it is dangerous and costly, so it is generally used after the control method is verified by computer simulation and the feasibility is basically determined. Compared with the first two methods, the semi-physical platform simulation has high reliability, low cost and safety, and is widely used. However, there are few ship motion simulation platforms at present, and the control algorithm is complex, the parameter adjustment is difficult, and the algorithm is portable. Sex is not high.

发明内容SUMMARY OF THE INVENTION

为解决现有技术问题,本发明提出一种参数调整简单、算法移植性强、成本低的船舶运动控制仿真平台及船舶运动控制方法。In order to solve the problems of the prior art, the present invention proposes a ship motion control simulation platform and a ship motion control method with simple parameter adjustment, strong algorithm portability and low cost.

本发明公开的船舶运动控制仿真平台包括控制模块、驱动模块、姿态测量模块、位置确定模块及电源模块,驱动模块用于控制运动平台的前行和转向;姿态测量模块和位置确定模块分别用于测量运动平台的姿态和位置数据;控制模块配置有航迹跟踪算法(包括航向控制和航迹控制)和甲板运动模型,控制模块从姿态测量模块和位置确定模块中获取运动平台的姿态和位置信息后进行航迹跟踪计算,然后根据计算结果通过驱动模块将按照期望路线运动,并能同时模拟舰船在海浪中的甲板运动;电源模块为运动平台的各模块供电;其中,姿态测量模块和位置确定模块均通过异步串行通信接口和控制模块连接通信;航迹跟踪计算包括航向和航迹的跟踪计算。The ship motion control simulation platform disclosed by the invention includes a control module, a drive module, an attitude measurement module, a position determination module and a power supply module. The drive module is used to control the forward movement and steering of the movement platform; the attitude measurement module and the position determination module are respectively used for Measure the attitude and position data of the motion platform; the control module is equipped with a track tracking algorithm (including heading control and track control) and a deck motion model, and the control module obtains the attitude and position information of the motion platform from the attitude measurement module and the position determination module Then the track tracking calculation is carried out, and then the driving module will move according to the desired route according to the calculation results, and can simulate the deck movement of the ship in the waves at the same time; the power module supplies power to each module of the motion platform; among them, the attitude measurement module and the position The determination modules are connected and communicated with the control module through the asynchronous serial communication interface; the track tracking calculation includes the tracking calculation of the course and the track.

进一步的,控制模块包括航向控制单元和航迹控制单元,航迹控制单元接收位置确定模块发送的实时位置数据,并与期望轨迹相比较,而后输出期望航向;航向控制单元接收航迹控制单元输出的期望航向和姿态确定模块发送的实时姿态数据,计算并输出期望姿态的控制信号,然后控制驱动模块改变运动平台的姿态。具体的,航向控制单元接收期望航向和姿态确定模块发送的实时姿态数据,计算后输出运动平台的舵角控制信号,从而控制运动平台的舵机转向带动舵叶,使运动平台姿态改变。Further, the control module includes a heading control unit and a track control unit, the track control unit receives the real-time position data sent by the position determination module, compares it with the desired track, and then outputs the desired heading; the heading control unit receives the output of the track control unit. The real-time attitude data sent by the desired heading and attitude determination module, calculate and output the control signal of the desired attitude, and then control the drive module to change the attitude of the motion platform. Specifically, the heading control unit receives the real-time attitude data sent by the desired heading and attitude determination module, and outputs the rudder angle control signal of the moving platform after calculation, so as to control the steering gear of the moving platform to drive the rudder blades, so that the attitude of the moving platform changes.

进一步的,航向控制使用抗饱和PID控制。Further, heading control uses anti-windup PID control.

进一步的,航迹控制使用视距导航法。Further, the track control uses the line-of-sight navigation method.

进一步的,控制模块内置姿态数据中断程序和姿态数据接收程序,当有姿态数据发送到控制模块时,会产生一个中断,姿态数据中断程序识别出姿态数据帧的帧头后,将完整的一帧数据保存到缓冲区,当一帧数据接收完毕,会将接收标志位置位,等待接收程序读取数据;姿态数据接收程序首先读取接收标志位的值,确定一帧数据已经完整地保存在缓冲区内,然后经过校验无误后读取数据;若想要更新姿态数据,调用姿态数据接收程序即可。Further, the control module has built-in attitude data interrupt program and attitude data receiving program. When there is attitude data sent to the control module, an interrupt will be generated. After the attitude data interrupt program recognizes the frame header of the attitude data frame, it will send a complete frame The data is saved to the buffer. When a frame of data is received, the receiving flag will be set and the receiving program will wait for the data to be read; the attitude data receiving program will first read the value of the receiving flag to determine that a frame of data has been completely stored in the buffer. If you want to update the attitude data, you can call the attitude data receiving program.

进一步的,控制模块内置位置数据中断程序和位置数据接收程序,当有位置数据发送到控制模块时,会产生一个中断,位置数据中断程序将数据保存到缓冲区,当一帧程序接收完毕,控制模块中的接收程序会将数据取到对应的变量中;位置数据接收程序首先读取接收标志位的值,确定一帧数据已经完整地保存在缓冲区内,然后经过校验无误后读取数据;若想要更新位置数据,调用位置数据接收程序即可。Further, the control module has built-in position data interrupt program and position data receiving program. When there is position data sent to the control module, an interrupt will be generated, and the position data interrupt program will save the data to the buffer. The receiving program in the module will fetch the data into the corresponding variable; the position data receiving program first reads the value of the received flag bit, confirms that a frame of data has been completely stored in the buffer, and then reads the data after verification ; If you want to update the location data, just call the location data receiving program.

进一步的,控制模块采用MC9S12XS128MAA单片机最小系统。Further, the control module adopts the minimum system of MC9S12XS128MAA single-chip microcomputer.

进一步的,姿态测量模块输出运动平台的俯仰角、偏航角、滚转角和高度。Further, the attitude measurement module outputs the pitch angle, yaw angle, roll angle and height of the motion platform.

进一步的,姿态测量模块可采用miniAHRS姿态模块。Further, the attitude measurement module can use the miniAHRS attitude module.

进一步的,位置确定模块采用WF-NEO-6M定位芯片。Further, the position determination module adopts WF-NEO-6M positioning chip.

进一步的,驱动模块采用单桨双舵结构。Further, the drive module adopts a single propeller and double rudder structure.

进一步的,驱动模块包括电机、传动轴、螺旋桨、遥控器、舵机、拉杆和舵叶,其中,遥控器用于控制电机前进、后退、停止;电机旋转通过传动轴带动螺旋桨;舵机摇臂旋转通过拉杆带动舵叶。Further, the drive module includes a motor, a transmission shaft, a propeller, a remote control, a steering gear, a lever and a rudder blade, wherein the remote control is used to control the motor to move forward, backward, and stop; the motor rotates to drive the propeller through the transmission shaft; the steering gear rocker arm rotates The rudder blade is driven by the pull rod.

进一步的,控制模块中的软件部分采用模块化设计,各模块有单独的底层程序,以保证在控制过程中只要单独调用该模块子程序即可实现模块功能。Further, the software part in the control module adopts a modular design, and each module has a separate bottom-level program to ensure that the module function can be realized only by calling the subroutine of the module separately in the control process.

进一步的,控制模块还内置甲板运动模型,通过控制模块进行海浪建模并得到各类有效波倾角,将得到的有效波倾角分别输入对应的运动传递函数,计算得到甲板姿态运动函数,再根据姿态测量模块反馈的姿态数据,结合甲板姿态运动函数进行计算,输出控制信号给驱动模块,以控制运动平台的姿态;其中,甲板运动包括横滚运动、俯仰运动、沉浮运动,有效波倾角包括横滚有效波倾角、俯仰有效波倾角、沉浮有效波倾角,传递函数包括横滚运动传递函数、俯仰运动传递函数、沉浮运动传递函数。Further, the control module also has a built-in deck motion model. The control module conducts ocean wave modeling and obtains various effective wave inclination angles. The obtained effective wave inclination angles are respectively input into the corresponding motion transfer function, and the deck attitude motion function is calculated. The attitude data fed back by the measurement module is calculated in combination with the deck attitude motion function, and the control signal is output to the drive module to control the attitude of the moving platform; among them, the deck motion includes roll motion, pitch motion, and heave motion, and the effective wave inclination includes roll. Effective wave inclination angle, pitch effective wave inclination angle, hesitation effective wave inclination angle, transfer functions include roll motion transfer function, pitch motion transfer function, and heave motion transfer function.

本发明还公开一种船舶运动控制方法,将航向控制和航迹控制分开控制,先接收由船舶的实时位置数据,并与期望轨迹相比较,而后输出期望航向;然后接收输出的期望航向和船舶的实时姿态数据,计算并输出期望姿态的控制信号;再根据控制信号改变船舶的运动姿态。The invention also discloses a ship motion control method, which separates the heading control and the track control, firstly receives the real-time position data of the ship and compares it with the desired track, and then outputs the desired heading; and then receives the outputted desired heading and the ship The real-time attitude data of the ship is calculated and output the control signal of the desired attitude; then the motion attitude of the ship is changed according to the control signal.

进一步的,航向控制使用抗饱和PID控制法。Further, the heading control uses the anti-windup PID control method.

进一步的,航迹控制使用视距导航法。Further, the track control uses the line-of-sight navigation method.

进一步的,该船舶包括控制模块、驱动模块、姿态测量模块、位置确定模块,驱动模块用于控制运动平台的前行和转向;姿态测量模块和位置确定模块分别用于测量运动平台的姿态和位置数据;控制模块包括航向控制单元和航迹控制单元,将航向控制和航迹控制分开间接控制,航迹控制单元接收位置确定模块发送的实时位置数据,并与期望轨迹相比较,而后输出期望航向;航向控制单元接收航迹控制单元输出的期望航向和姿态确定模块发送的实时姿态数据,计算并输出期望姿态的控制信号,然后控制驱动模块改变船舶的运动姿态。Further, the ship includes a control module, a drive module, an attitude measurement module, and a position determination module. The drive module is used to control the forward movement and steering of the motion platform; the attitude measurement module and the position determination module are respectively used to measure the attitude and position of the motion platform. Data; the control module includes a heading control unit and a track control unit, which separate and indirectly control the heading control and the track control. The track control unit receives the real-time position data sent by the position determination module, compares it with the desired track, and then outputs the desired heading The course control unit receives the desired course output from the track control unit and the real-time attitude data sent by the attitude determination module, calculates and outputs the control signal of the desired attitude, and then controls the drive module to change the motion attitude of the ship.

有益效果:Beneficial effects:

(1)把航向控制和航迹控制分开的间接控制方法,控制参数调整简单,航向控制算法和航迹控制算法可分别修改。其中,航向控制采用抗饱和PID控制,调试方便,避免了因积分器饱和而产生的系统失控;航迹控制采用视距导航法,不依赖于运动学模型,需要的设计参数少,参数整定容易、收敛性好。(1) The indirect control method that separates the heading control and the track control, the adjustment of the control parameters is simple, and the heading control algorithm and the track control algorithm can be modified separately. Among them, the heading control adopts anti-saturation PID control, which is convenient for debugging and avoids the system out of control due to the saturation of the integrator; the track control adopts the line-of-sight navigation method, which does not depend on the kinematic model, and requires less design parameters and is easy to set parameters. , Good convergence.

(2)船舶运动控制仿真平台可同时带有航迹跟踪算法(包括航向和航迹的跟踪计算)和甲板运动模型,使用者可输入运动轨迹、海浪参数,运动平台将按照期望路线运动、同时模拟舰船在海浪中的甲板运动。(2) The ship motion control simulation platform can be equipped with track tracking algorithm (including heading and track tracking calculation) and deck motion model. Simulate the deck movement of the ship in the waves.

(3)驱动模块包括一个遥控器,可手动遥控其运动平台的前进、后退、暂停,避免在算法调试过程中,运动平台失控造成的硬件损坏。(3) The drive module includes a remote controller, which can manually control the forward, backward and pause of its motion platform to avoid hardware damage caused by the loss of control of the motion platform during the algorithm debugging process.

(4)本发明的软件部分采用模块化设计,各硬件模块有单独的底层程序,在控制过程中,只要调用该模块子程序,即可实现模块功能,程序结构清晰,可移植性强;同时还可以分别调试各模块,方便排错、更换芯片,从而降低仿真平台的成本;设计人员还可根据需求自行替换航向控制的算法和航迹控制的算法,进行二次开发,进一步扩展仿真平台的功能。(4) The software part of the present invention adopts a modular design, and each hardware module has a separate bottom-level program. In the control process, as long as the subroutine of the module is called, the module function can be realized, the program structure is clear, and the portability is strong; It is also possible to debug each module separately, which is convenient for troubleshooting and chip replacement, thereby reducing the cost of the simulation platform; designers can also replace the algorithm of heading control and the algorithm of track control according to their needs, and carry out secondary development to further expand the simulation platform. Function.

附图说明Description of drawings

图1为实施例中的仿真平台硬件结构图Fig. 1 is the hardware structure diagram of the simulation platform in the embodiment

图2为实施例中的主程序流程图Fig. 2 is the main program flow chart in the embodiment

图3为实施例中的姿态数据中断程序流程图Fig. 3 is the flow chart of the attitude data interruption procedure in the embodiment

图4为实施例中的姿态数据接收程序流程图Fig. 4 is the flow chart of the attitude data receiving procedure in the embodiment

图5为实施例中的位置数据中断程序流程图FIG. 5 is a flow chart of the position data interruption program in the embodiment

图6为实施例中的位置数据接收程序流程图FIG. 6 is a flow chart of the position data receiving procedure in the embodiment

图7为实施例中的航迹跟踪控制算法框图FIG. 7 is a block diagram of the track tracking control algorithm in the embodiment

图8为实施例中的航向控制模块中抗饱和PID算法的控制框图Fig. 8 is the control block diagram of the anti-saturation PID algorithm in the heading control module in the embodiment

图9为实施例中的航迹跟踪算法中期望航迹是自西向东时的几何模型FIG. 9 is the geometric model when the desired track is from west to east in the track tracking algorithm in the embodiment

图10为实施例中的航迹跟踪算法中期望航迹是自东向西时的几何模型FIG. 10 is the geometric model when the desired track is from east to west in the track tracking algorithm in the embodiment

具体实施方式Detailed ways

如图1所示,公开了一种船舶运动控制仿真平台的实施例,船舶运动控制仿真平台即“运动平台”、“平台”或“船体”,该平台包括电源模块、驱动模块、姿态测量模块、位置确定模块和控制模块,电源模块提供运动平台各芯片和驱动模块的供电;驱动模块控制运动平台的前行和转向;姿态测量模块和位置确定模块测量运动平台的姿态和位置数据;控制模块为本仿真平台的核心,获得运动平台的姿态和位置信息,然后进行航迹跟踪计算,从而控制舵叶的转向,达到运动控制的效果。As shown in Figure 1, an embodiment of a ship motion control simulation platform is disclosed. The ship motion control simulation platform is a "motion platform", "platform" or "hull", and the platform includes a power module, a drive module, and an attitude measurement module. , position determination module and control module, the power supply module provides power supply for each chip and drive module of the motion platform; the drive module controls the forward movement and steering of the motion platform; the attitude measurement module and the position determination module measure the attitude and position data of the motion platform; the control module As the core of the simulation platform, the attitude and position information of the motion platform are obtained, and then the track tracking calculation is performed to control the steering of the rudder blade to achieve the effect of motion control.

下面结合具体实施例及附图对设计方案进行描述:The design scheme is described below in conjunction with specific embodiments and accompanying drawings:

实施例中所述控制模块采用MC9S12XS128MAA单片机最小系统,主程序流程图如图2所示:每0.5秒接收姿态测量模块和位置确定模块发送的数据,按照航迹跟踪算法计算出舵角控制信号,通过PWM波的方式输出给舵机使其带动舵叶偏转,从而控制运动平台的运动轨迹。The control module described in the embodiment adopts the MC9S12XS128MAA single-chip minimum system, and the main program flow chart is shown in Figure 2: every 0.5 seconds, the data sent by the attitude measurement module and the position determination module are received, and the rudder angle control signal is calculated according to the track tracking algorithm, The PWM wave is output to the steering gear to drive the rudder blade to deflect, thereby controlling the motion trajectory of the motion platform.

姿态测量模块可采用miniAHRS姿态模块,该模块由STM32F103T8(主控芯片)、MPU6050(加速度传感器)、HMC5883L(三轴地磁传感器)和BMP180(气压高度传感器)组成,可直接输出传感器原始测量值,通过对各传感器测量值进行解算,输出运动平台的俯仰角、偏航角、滚转角和高度。该姿态测量模块通过异步串行通信接口和控制模块通信。The attitude measurement module can use the miniAHRS attitude module, which is composed of STM32F103T8 (main control chip), MPU6050 (acceleration sensor), HMC5883L (three-axis geomagnetic sensor) and BMP180 (barometric height sensor), which can directly output the original measurement value of the sensor. Calculate the measured values of each sensor, and output the pitch angle, yaw angle, roll angle and height of the motion platform. The attitude measurement module communicates with the control module through an asynchronous serial communication interface.

当有姿态数据发送到控制模块时,会产生一个中断。姿态数据中断函数流程图如图3所示:该程序识别出姿态数据帧的帧头后,将完整的一帧数据保存到缓冲区,当一帧数据接收完毕,会将接收标志位置位(即把标志位的值赋为1),等待接收程序读取数据。图3中,oxa5和ox5a表示数据帧的帧头。An interrupt is generated when there is attitude data sent to the control module. The flowchart of the attitude data interrupt function is shown in Figure 3: after the program recognizes the frame header of the attitude data frame, it saves a complete frame of data to the buffer. Set the value of the flag bit to 1) and wait for the receiving program to read the data. In Figure 3, oxa5 and ox5a represent the frame header of the data frame.

姿态数据接收程序流程图如图4所示:该程序首先读取接收标志位的值,确定一帧数据已经完整地保存在缓冲区内,然后经过校验无误后读取数据。图4中,A1类数据是解算后的姿态数据,A2类是传感器原始测量数据,它们是用两种帧发送的,所以需要分别解析。如果想要更新姿态数据,调用姿态数据接收程序即可(因为姿态接收函数直接把缓冲区的数据赋值给对应的变量,调用它可以更新变量的值)。The flow chart of the attitude data receiving program is shown in Figure 4: the program first reads the value of the receiving flag bit, confirms that a frame of data has been completely stored in the buffer, and then reads the data after verification. In Figure 4, the A1 type data is the calculated attitude data, and the A2 type is the original measurement data of the sensor. They are sent in two frames, so they need to be analyzed separately. If you want to update the attitude data, you can call the attitude data receiving program (because the attitude receiving function directly assigns the data of the buffer to the corresponding variable, and calling it can update the value of the variable).

位置确定模块采用WF-NEO-6M定位芯片,通过异步串行通信接口和控制模块通信。The position determination module adopts WF-NEO-6M positioning chip, and communicates with the control module through the asynchronous serial communication interface.

当有位置数据(即表示经纬度的位置数据)发送到控制模块时,会产生一个中断。位置数据中断函数流程图如图5所示:该程序将数据保存到缓冲区,当一帧程序接收完毕,控制模块中的接收程序会将数据取到对应的变量中。An interrupt is generated when position data (ie, position data representing latitude and longitude) is sent to the control module. The flow chart of the position data interrupt function is shown in Figure 5: the program saves the data to the buffer, and when a frame of program is received, the receiving program in the control module will fetch the data into the corresponding variable.

位置数据接收程序流程图如图6:该程序首先读取接收标志位的值,确定一帧数据已经完整地保存在缓冲区内,然后经过校验无误后读取数据。如果想要更新位置数据,调用位置数据接收程序即可。The flow chart of the position data receiving program is shown in Figure 6: the program first reads the value of the received flag bit, confirms that a frame of data has been completely stored in the buffer, and then reads the data after verification. If you want to update the location data, just call the location data receiving program.

电源模块包括两组12V的锂电池,它们均由3块18650锂电池串联而成,一组的保护板限流10A,为驱动模块单独供电;另一组的保护板限流5A,给所有芯片和舵机供电。The power module includes two sets of 12V lithium batteries, all of which are made up of three 18650 lithium batteries in series. One set of protection boards has a current limit of 10A to supply power to the drive module alone; the other set of protection boards has a current limit of 5A, which supplies all chips. and servo power supply.

驱动模块采用单桨双舵结构,包括RS-550高速电机、传动轴、螺旋桨、遥控器、舵机、拉杆和舵叶;其中,电机旋转通过传动轴带动螺旋桨;遥控器连接在电机和电源之间,可通过遥控器控制电机前进、后退、停止;舵机摇臂旋转通过拉杆带动舵叶。The drive module adopts a single propeller and double rudder structure, including RS-550 high-speed motor, transmission shaft, propeller, remote control, steering gear, pull rod and rudder blade; the motor rotates to drive the propeller through the transmission shaft; the remote control is connected between the motor and the power supply. During the time, the motor can be controlled by the remote control to move forward, backward and stop; the rotation of the steering gear rocker arm drives the rudder blade through the pull rod.

实施例中,控制模块包括航迹控制单元和航向控制单元,采用把航向控制和航迹控制分开的间接控制方法。控制算法框图如图7:航迹控制单元接收位置确定模块发送的实时位置数据,并与期望轨迹相比较,而后输出期望航向;航向控制单元接收期望航向和姿态确定模块发送的实时姿态数据,计算后输出舵角控制信号,从而控制舵机转向带动舵叶,使运动平台的姿态改变。In the embodiment, the control module includes a track control unit and a heading control unit, and adopts an indirect control method that separates the heading control and the track control. The block diagram of the control algorithm is shown in Figure 7: the track control unit receives the real-time position data sent by the position determination module, compares it with the desired track, and then outputs the desired heading; the heading control unit receives the desired heading and the real-time attitude data sent by the attitude determination module, calculates Then output the rudder angle control signal, so as to control the steering gear to drive the rudder blade and change the attitude of the moving platform.

值得注意的是,而在现有技术中,大多使用直接控制,控制模块同时接收姿态和位置数据,计算后输出舵角控制信号,虽然可以控制得更加精确,但是参数调节困难。而本方法采用间接控制是航向控制和航迹控制的相对分离,控制精确性基本不受影响,但参数调试更加简单。It is worth noting that in the prior art, direct control is mostly used. The control module receives attitude and position data at the same time, and outputs the rudder angle control signal after calculation. Although it can be controlled more accurately, it is difficult to adjust parameters. In this method, the indirect control is the relative separation of the heading control and the track control, the control accuracy is basically not affected, but the parameter debugging is simpler.

实施例中,航向控制使用抗饱和PID控制,避免了因机械结构限制而导致的积分器过饱和现象。In the embodiment, the anti-windup PID control is used for the heading control, which avoids the oversaturation phenomenon of the integrator caused by the limitation of the mechanical structure.

航向控制模块中抗饱和PID算法的控制框图如图8所示,其中,The control block diagram of the anti-saturation PID algorithm in the heading control module is shown in Figure 8, where,

Figure BDA0001312611450000061
Figure BDA0001312611450000061

式中,θd是期望航向,

Figure BDA0001312611450000062
是实际航向,ν是不经限幅的舵角控制信号,u表示限幅后的舵角控制信号;此外,图8中,t表示时间,Kp表示比例系数,Ki表示积分系数,Kd表示微分系数,Kf表示抗饱和反馈增益。where θd is the desired heading,
Figure BDA0001312611450000062
is the actual heading, ν is the rudder angle control signal without limitation, u is the rudder angle control signal after limitation; in addition, in Fig. 8, t is the time, K p is the proportional coefficient, K i is the integral coefficient, K d is the differential coefficient, and K f is the anti-windup feedback gain.

当输出的ν过小的时候,将u与ν的差值(正的)加到积分控制的过程中,可以使ν增大;当输出的ν过大,将u与ν的差值(负的)加到积分控制过程中,此时则减弱了积分控制,使输出的ν变小;当输出的ν在合理范围内,则u与ν相等,等价于普通的PID控制。When the output ν is too small, the difference between u and ν (positive) can be added to the integral control process to increase ν; when the output ν is too large, the difference between u and ν (negative ) is added to the integral control process, at this time, the integral control is weakened, so that the output ν becomes smaller; when the output ν is within a reasonable range, then u and ν are equal, which is equivalent to ordinary PID control.

航迹控制使用视距导航法,不依赖于运动学模型,参数调试简单,其中:The track control uses the line-of-sight navigation method, does not depend on the kinematic model, and the parameter debugging is simple, among which:

当期望航线是自西向东时(如图9),航向角计算公式如下:When the desired route is from west to east (as shown in Figure 9), the heading angle calculation formula is as follows:

θ(t)=αk+arctan(e(t)/Δ)θ(t)=α k +arctan(e(t)/Δ)

当期望航线是自东向西时(如图10),航向角计算公式如下:When the desired route is from east to west (as shown in Figure 10), the heading angle calculation formula is as follows:

θ(t)=αk-arctan(e(t)/Δ)+πθ(t)=α k -arctan(e(t)/Δ)+π

图9、图10中:Pk到Pk+1是期望航线。P(t)是船体所在位置,Pm(t)是船体位置到期望航线的投影点,Pd(t)是虚拟跟踪点,αk是期望航线与北方的夹角,θ(t)是期望航向,e(t)是P(t)与Pm(t)之间的距离(即,表示运动平台所在位置与它在期望航线上的投影点之间的距离),Δ是Pm(t)与Pd(t)之间的距离(即,表示运动平台所在位置在期望航线上的投影点与虚拟跟踪点之间的距离,是一个可调参数)。In Fig. 9 and Fig. 10: P k to P k+1 are desired routes. P(t) is the position of the hull, P m (t) is the projection point of the hull position to the desired route, P d (t) is the virtual tracking point, α k is the angle between the desired route and the north, θ(t) is Desired heading, e(t) is the distance between P(t) and P m (t) (i.e. the distance between where the moving platform is located and its projected point on the desired course), Δ is P m ( The distance between t) and P d (t) (that is, the distance between the projected point representing the position of the motion platform on the desired route and the virtual tracking point, is an adjustable parameter).

其中,αk计算公式如下:Among them, the calculation formula of α k is as follows:

αk=π/2-arctan(yk+1-yk,xk+1-xk)α k =π/2-arctan(y k+1 -y k ,x k+1 -x k )

式中:xk表示期望轨迹起点的经度,yk表示期望轨迹起点的纬度;xk+1表示期望轨迹目标点的经度;yk+1表示期望轨迹目标点的纬度。In the formula: x k represents the longitude of the starting point of the desired trajectory, y k represents the latitude of the starting point of the desired trajectory; x k+1 represents the longitude of the target point of the desired trajectory; y k+1 represents the latitude of the target point of the desired trajectory.

当期望航线是自西向东时(如图9),e(t)计算公式如下:When the desired route is from west to east (as shown in Figure 9), the calculation formula of e(t) is as follows:

e(t)=(x(t)-xk)cosαk-(y(t)-yk)sinαk e(t)=(x(t)-x k )cosα k -(y(t)-y k )sinα k

当期望航线是自东向西时(如图10),e(t)计算公式如下:When the desired route is from east to west (as shown in Figure 10), the calculation formula of e(t) is as follows:

e(t)=(x(t)-xk+1)cosαk-(y(t)-yk+1)sinαk e(t)=(x(t)-x k+1 )cosα k -(y(t)-y k+1 )sinα k

式中:x(t)表示运动平台所在位置的经度;y(t)表示运动平台所在位置的纬度。In the formula: x(t) represents the longitude of the location of the motion platform; y(t) represents the latitude of the location of the motion platform.

设置期望路径时,需要输入期望路径点,运动平台将沿各点顺序组成的折线运动。当运动平台航行过一条折线PkPk+1后,控制程序会将期望路径自动切换到下一条折线Pk+ 1Pk+2,路径更新原则如下:When setting the desired path, you need to input the desired path points, and the motion platform will move along the polyline formed by the sequence of the points. When the motion platform sails through a polyline P k P k+1 , the control program will automatically switch the desired path to the next polyline P k+ 1 P k+2 , and the path update principle is as follows:

[x(t)-xk]2+[y(t)-yk]2≤R2 [x(t)-x k ] 2 +[y(t)-y k ] 2 ≤R 2

式中:R表示船体所在位置与目标航迹点之间的距离,是一个可调参数。In the formula: R represents the distance between the position of the hull and the target track point, which is an adjustable parameter.

当期望路径更新时,期望航向变化较大,会出现阶跃响应,因此加入一阶惯性滤波,来平滑导引算法获得的期望航向。经过平滑的航向为:When the desired path is updated, the desired heading changes greatly and a step response occurs, so a first-order inertial filter is added to smooth the desired heading obtained by the guidance algorithm. The smoothed heading is:

θd(t)=αθ(t)+(1-α)θd(t-1)θ d (t)=αθ(t)+(1-α)θ d (t-1)

式中:θd(t)表示经过平滑的期望航向;α表示滤波系数;θ(t)表示上述视距导航法中计算得出的期望航向;θd(t-1)表示上一时刻经过平滑的期望航向。In the formula: θ d (t) represents the smoothed desired heading; α represents the filter coefficient; θ (t) represents the desired heading calculated in the above line-of-sight navigation method; θ d (t-1) represents the Smooth desired heading.

实施例中所述控制模块里面所有的运算程序可以使用c语言编写,当然也可以采用其它语言编写。All the operation programs in the control module described in the embodiments can be written in C language, and of course can also be written in other languages.

本发明的软件部分采用模块化设计,各硬件模块有单独的底层程序,在控制过程中,只要调用该模块子程序,即可实现模块功能,程序结构清晰,方便修改算法。如果想要仿真别的航迹跟踪算法,只要修改航迹跟踪函数(实施例中采用的是控制模块中将航向控制和航迹控制分开的间接控制方法,也可采用现有技术中的直接控制法),可移植性强;同时可以分别调试各模块,方便排错、更换芯片,节约成本。The software part of the present invention adopts a modular design, and each hardware module has a separate bottom-level program. In the control process, the module function can be realized as long as the subroutine of the module is called, and the program structure is clear and the algorithm is convenient to modify. If you want to simulate other track tracking algorithms, you only need to modify the track tracking function (the indirect control method in the control module that separates the heading control and the track control is used in the embodiment, and the direct control method in the prior art can also be used. At the same time, each module can be debugged separately, which is convenient for troubleshooting, chip replacement and cost saving.

主程序结构图如图2所示,每0.5秒读取位置数据和姿态数据,然后经过控制算法的计算,输出舵机控制信号,以此来控制舵叶。The main program structure diagram is shown in Figure 2. The position data and attitude data are read every 0.5 seconds, and then through the calculation of the control algorithm, the steering gear control signal is output to control the rudder blade.

各模块子程序介绍如下:The subroutines of each module are described as follows:

①时钟部分:①Clock part:

void INIT_PLL(void):晶振频率为16MHz,这个函数的功能是把总线频率超频到32MHz。void INIT_PLL(void): The crystal frequency is 16MHz. The function of this function is to overclock the bus frequency to 32MHz.

②GPS部分:②GPS part:

void INIT_SCI1(void):初始化串口;void INIT_SCI1(void): Initialize the serial port;

unsigned char change(unsigned char*a):GPS芯片的数据类型是符号型,这个函数把符号型变成对应的数字;unsigned char change(unsigned char*a): The data type of the GPS chip is the symbol type, this function changes the symbol type into the corresponding number;

void Get_GPS(void):从缓冲区中取出GPS数据;void Get_GPS(void): Get GPS data from the buffer;

interrupt 21 void USART2_IRQHandler_GPS(void):GPS数据接收中断函数;interrupt 21 void USART2_IRQHandler_GPS(void): GPS data reception interrupt function;

unsigned char Sum_check_GPS(void):数据校验;unsigned char Sum_check_GPS(void): data check;

void UART2_CommandRoute_GPS(void):GPS数据接收的主函数,调用这个函数可更新GPS数据。void UART2_CommandRoute_GPS(void): The main function of GPS data reception, call this function to update GPS data.

③miniAHRS部分:③miniAHRS part:

void INIT_SCI0(void):初始化串口;void INIT_SCI0(void): Initialize the serial port;

void UART2_Get_IMU(void):取姿态数据;void UART2_Get_IMU(void): Get attitude data;

void UART2_Get_Motion(void):取ADC数据(即未经解码的数据);void UART2_Get_Motion(void): Get ADC data (ie, undecoded data);

void interrupt 20USART2_IRQHandler(void):数据接收中断;void interrupt 20USART2_IRQHandler(void): data reception interrupt;

unsigned char Sum_check(void):数据校验;unsigned char Sum_check(void): data check;

void UART2_CommandRoute(void):姿态数据接收的主函数,调用可更新姿态数据。void UART2_CommandRoute(void): The main function for receiving attitude data, which can be called to update attitude data.

④舵机部分:④Steering gear part:

void init_pwm(void):PWM信号初始化;void init_pwm(void): PWM signal initialization;

void rudder(void):根据控制模块的舵角信号,使舵机偏转一定角度。void rudder(void): According to the rudder angle signal of the control module, the steering gear is deflected by a certain angle.

⑤控制模块部分:⑤ Control module part:

float atand(float x):将三角函数重新定义,以角度为单位运算;float atand(float x): redefine trigonometric functions to operate in units of angles;

void control(void):航向、航迹控制函数。void control(void): heading and track control functions.

⑥PIT计时模块:⑥PIT timing module:

void init_PIT():PIT模块初始化;void init_PIT(): PIT module initialization;

interrupt 66void PIT_INTER(void):每计时完毕后调用的中断函数。interrupt 66void PIT_INTER(void): Interrupt function called after every timer.

例如,当需要更新运动平台的姿态数据时,不需要调用miniAHRS模块全部的函数,只需要调用UART2_CommandRoute()这个函数,即可完成姿态数据的更新;同样的,需要更新位置数据时,也只需要调用UART2_CommandRoute_GPS()。For example, when you need to update the attitude data of the motion platform, you don't need to call all the functions of the miniAHRS module, you only need to call the function UART2_CommandRoute() to complete the update of the attitude data; similarly, when you need to update the position data, you only need to Call UART2_CommandRoute_GPS().

本发明还可根据用户指定的海况模拟舰船甲板运动,包括横滚运动、俯仰运动、沉浮运动。所述甲板运动建模如下:The present invention can also simulate the ship deck motion, including roll motion, pitch motion, and heave motion, according to the sea state specified by the user. The deck motion is modeled as follows:

海浪运动导致了舰船甲板运动,因此要模拟甲板运动必须先进行海浪建模。The motion of the waves leads to the motion of the ship's deck, so to simulate the motion of the deck, wave modeling must be done first.

(1)海浪建模(1) Wave modeling

使用长峰波海浪模型,可把长峰波随机海浪看作由无数个频率不同、幅值不同、初相位不同的余弦波叠加而成,不考虑高次谐波,且研究某固定点海浪模型时,谐波幅值ξ可用下式表示:Using the long-peaked wave model, the random long-peaked wave can be regarded as the superposition of countless cosine waves with different frequencies, different amplitudes and different initial phases, without considering higher harmonics, and study a fixed point wave model When , the harmonic amplitude ξ can be expressed by the following formula:

Figure BDA0001312611450000101
Figure BDA0001312611450000101

式中:t表示时间,ξi表示第i个谐波的幅值;ωi表示第i个谐波的角频率;εi表示第i个谐波的初相角(在0~π随机均匀分布)。In the formula: t represents time, ξ i represents the amplitude of the ith harmonic; ω i represents the angular frequency of the ith harmonic; ε i represents the initial phase angle of the ith harmonic (randomly uniform between 0 and π). distributed).

把海浪谱离散化即可得到对应频率谐波的能量值,所述海浪谱使用的是ITTC单参数谱,谐波能量值Sξ的经验表达式如下:The energy value of the corresponding frequency harmonic can be obtained by discretizing the wave spectrum. The wave spectrum uses the ITTC single-parameter spectrum. The empirical expression of the harmonic energy value S ξ is as follows:

Figure BDA0001312611450000102
Figure BDA0001312611450000102

式中:ω表示海浪频率;g表示重力加速度;h1/3表示有义波高。Where: ω is the wave frequency; g is the acceleration of gravity; h 1/3 is the significant wave height.

谐波能量值与谐波幅值的关系如下:The relationship between the harmonic energy value and the harmonic amplitude is as follows:

Figure BDA0001312611450000103
Figure BDA0001312611450000103

式中:ωi表示谐波频率;Sξi)表示谐波能量值;ξi表示谐波幅值。Where: ω i represents the harmonic frequency; S ξi ) represents the harmonic energy value; ξ i represents the harmonic amplitude.

由此可计算出对应谐波的幅值。From this, the magnitude of the corresponding harmonic can be calculated.

有效波倾角的计算,包括横滚有效波倾角αφe、俯仰有效波倾角αθe、沉浮有效波倾角ξze,其计算公式如下:The calculation of the effective wave inclination angle includes the roll effective wave inclination angle α φe , the pitch effective wave inclination angle α θe , and the heave effective wave inclination angle ξ ze . The calculation formula is as follows:

Figure BDA0001312611450000104
Figure BDA0001312611450000104

Figure BDA0001312611450000105
Figure BDA0001312611450000105

Figure BDA0001312611450000106
Figure BDA0001312611450000106

式中:β表示遭遇角;ωei表示舰船遭遇频率,

Figure BDA0001312611450000111
V是航速;Xφ表示横滚有效波倾角修正系数;Xθ表示俯仰有效波倾角修正系数;Xz表示沉浮有效波倾角修正系数。In the formula: β represents the encounter angle; ω ei represents the ship encounter frequency,
Figure BDA0001312611450000111
V is the speed; X φ represents the correction coefficient of the inclination angle of the roll effective wave; X θ represents the correction coefficient of the inclination angle of the pitch effective wave; X z represents the correction coefficient of the inclination angle of the up and down effective wave.

(2)甲板运动建模(2) Deck motion modeling

包括横滚运动传递函数、俯仰运动传递函数、沉浮运动传递函数,把上述有效波倾角作为系统输入,经过传递函数的计算,所得输出即为甲板姿态运动函数。Including roll motion transfer function, pitch motion transfer function, and heave motion transfer function, the above effective wave inclination angle is used as the system input, after the calculation of the transfer function, the obtained output is the deck attitude motion function.

其中,有效波倾角是上述与时间相关的公式,进行拉式变换后,变成带s的公式,s是自动化里面表示传递函数用的,进行拉式反变换之后会变成与时间相关的函数。将有效波倾角作为传递函数的输入,两式相乘即可得到带s的甲板姿态运动函数,再进行拉式反变换,才得到姿态角与时间相关的函数。甲板运动姿态函数是甲板的姿态角随时间变化的函数。所述传递函数如下:Among them, the effective wave inclination is the above time-related formula. After the pull-type transformation, it becomes a formula with s, and s is used to represent the transfer function in the automation. After the pull-type inverse transformation, it will become a time-related function. . Taking the effective wave inclination angle as the input of the transfer function, the deck attitude motion function with s can be obtained by multiplying the two formulas. The deck motion attitude function is the function of the deck attitude angle changing with time. The transfer function is as follows:

①横滚运动传递函数:①Rolling motion transfer function:

Figure BDA0001312611450000112
Figure BDA0001312611450000112

式中:ωφ表示舰船的横滚固有角频率,

Figure BDA0001312611450000113
Jφ表示横滚转动惯量;ΔJφ表示横滚附加转动惯量;D表示舰船排水质量;h表示横稳定中心高;ζφ表示横滚阻尼因子,与船的自身特性有关。where: ω φ represents the roll natural angular frequency of the ship,
Figure BDA0001312611450000113
J φ represents the rolling moment of inertia; ΔJ φ represents the rolling additional moment of inertia; D represents the displacement mass of the ship; h represents the height of the lateral stability center; ζ φ represents the rolling damping factor, which is related to the ship's own characteristics.

②俯仰运动传递函数②Pitch motion transfer function

Figure BDA0001312611450000114
Figure BDA0001312611450000114

式中:ωθ表示舰船的俯仰固有角频率;

Figure BDA0001312611450000115
Jθ表示俯仰转动惯量;ΔJθ表示俯仰附加转动惯量;ζθ表示俯仰阻尼因子,与船的自身特性有关。where: ω θ represents the natural pitch frequency of the ship;
Figure BDA0001312611450000115
J θ represents the pitch moment of inertia; ΔJ θ represents the pitch additional moment of inertia; ζ θ represents the pitch damping factor, which is related to the ship's own characteristics.

③沉浮运动传递函数③The transfer function of ups and downs

式中:ωz表示舰船沉浮固有频率,λz表示沉浮附加质量;ρ表示海水密度;Sw表示舰船水线面面积;ζz表示沉浮阻尼因子。In the formula: ω z represents the natural frequency of the ship's ups and downs, λ z represents the additional mass of ups and downs; ρ represents the density of seawater; Sw represents the waterplane area of the ship; ζ z represents the ups and downs damping factor.

尽管以上结合附图对本发明的实施方案进行了描述,但本发明并不局限于上述的具体实施方案和应用领域,上述的具体实施方案仅仅是示意性的、指导性的,而不是限制性的。本领域的普通技术人员在本说明书的启示下,在不脱离本发明权利要求所保护的范围的情况下,还可以做出很多种的形式,这些均属于本发明保护之列。Although the embodiments of the present invention have been described above with reference to the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments and application fields, and the above-mentioned specific embodiments are only illustrative and instructive, rather than restrictive . Under the enlightenment of this specification, those skilled in the art can also make many forms without departing from the scope of protection of the claims of the present invention, which all belong to the protection of the present invention.

Claims (8)

1. A ship motion control simulation platform is characterized by comprising a control module, a driving module, an attitude measurement module, a position determination module and a power supply module,
the driving module is used for controlling the forward movement and the steering of the motion control simulation platform;
the attitude measurement module and the position determination module are respectively used for measuring attitude and position data of the motion control simulation platform;
the control module acquires the attitude and position information of the motion control simulation platform from the attitude measurement module and the position determination module, then carries out track tracking calculation, and then realizes motion control through the driving module according to the calculation result;
the power supply module supplies power to each module of the motion control simulation platform;
the attitude measurement module and the position determination module are connected and communicated with the control module through asynchronous serial communication interfaces;
the control module comprises a course control unit and a track control unit, wherein the track control unit receives the real-time position data sent by the position determination module, compares the real-time position data with an expected track and then outputs an expected course; the course control unit receives the expected course output by the track control unit and the real-time attitude data sent by the attitude measurement module, calculates and outputs a control signal of the expected attitude, and then controls the driving module to change the attitude of the motion control simulation platform; the track tracking calculation comprises the tracking calculation of the course and the track; the track control adopts a line-of-sight navigation method;
the control module is also internally provided with a deck motion model for simulating the movement of the deck of the ship according to a specified sea condition, wherein the sea condition is the wave motion causing the movement of the deck of the ship; the method specifically comprises the following steps: firstly, sea wave modeling is carried out to obtain various effective wave dip angles, then a deck motion model is constructed, the obtained effective wave dip angles are respectively input into corresponding motion transfer functions, a deck attitude motion function is obtained through calculation, finally, calculation is carried out according to attitude data fed back by an attitude measurement module and in combination with the deck attitude motion function, and a control signal is output to a driving module to control the attitude of a motion control simulation platform;
the deck movement of the ship comprises rolling movement, pitching movement and sinking and floating movement; the effective wave inclination angle comprises a rolling effective wave inclination angle, a pitching effective wave inclination angle and a sinking and floating effective wave inclination angle;
the motion transfer function comprises a roll motion transfer function, a pitch motion transfer function and a sinking and floating motion transfer function;
wherein the roll effective wave inclination angle alphaφeEffective pitch wave inclination angle alphaθeEffective wave dip angle xizeThe calculation formula of (a) is as follows:
Figure FDA0002198261330000021
Figure FDA0002198261330000022
in the formula: β represents the encounter angle; omegaeiThe frequency of encounter of the ship is represented,
Figure FDA0002198261330000024
v is the speed of the ship; xφRepresenting a roll effective wave inclination angle correction coefficient; xθRepresenting a pitch effective wave inclination angle correction coefficient; xzRepresenting the dip angle correction coefficient of the sinking and floating effective wave; g represents the gravitational acceleration; omegaiRepresents the angular frequency of the ith harmonic; sξi) Representing the harmonic energy value; epsiloniRepresenting the initial phase angle of the ith harmonic;
the roll motion transfer function is calculated as follows:
Figure FDA0002198261330000025
in the formula: omegaφRepresenting the roll natural angular frequency of the ship,
Figure FDA0002198261330000026
Jφrepresenting rolling moment of inertia △ JφRepresenting roll additional moment of inertia; d represents the ship drainage quality; h represents the transverse center of stability height; zetaφRepresents a roll damping factor;
the pitch motion transfer function is calculated as follows:
Figure FDA0002198261330000027
in the formula: omegaθRepresenting the natural angular frequency of pitching of the ship;
Figure FDA0002198261330000028
Jθrepresenting pitch moment of inertia △ JθRepresenting a pitch additional moment of inertia; zetaθRepresents a pitch damping factor;
the sinking-floating motion transfer function is calculated as follows:
Figure FDA0002198261330000031
in the formula: omegazThe natural frequency of the ship in the ups and downs is shown,λzrepresenting the sinking and floating additional mass; ρ represents the seawater density; swShowing the area of the waterline surface of the ship; zetazRepresenting the heave damping factor.
2. The vessel motion control simulation platform of claim 1, wherein: the course control uses an anti-saturation PID control method.
3. The vessel motion control simulation platform of claim 1, wherein: the control module is internally provided with a posture data interrupt program and a posture data receiving program, when posture data are sent to the control module, an interrupt is generated, after the posture data interrupt program identifies a frame header of a posture data frame, a complete frame of data is stored in a buffer area, and when the frame of data is completely received, a receiving flag bit is set to wait for the posture data receiving program to read the data; firstly, the attitude data receiving program reads the value of a receiving zone bit, determines that a frame of data is completely stored in a buffer area, and then reads the data after checking without errors; if the attitude data is required to be updated, calling an attitude data receiving program; the control module is internally provided with a position data interrupt program and a position data receiving program, when position data are sent to the control module, an interrupt is generated, the position data interrupt program stores the data into a buffer area, and when one frame of program is received, the position data receiving program in the control module can take the data into a corresponding variable; the position data receiving program firstly reads the value of the receiving zone bit, determines that a frame of data is completely stored in a buffer area, and then reads the data after checking without errors; if the position data is required to be updated, the position data receiving program is called to realize the updating.
4. The vessel motion control simulation platform of claim 1, wherein: the attitude measurement module adopts a miniAHRS attitude module, and outputs a pitch angle, a yaw angle, a roll angle and a height of the motion control simulation platform; the position determination module adopts WF-NEO-6M to position the chip.
5. The vessel motion control simulation platform of claim 1, wherein: the driving module adopts a single-paddle double-rudder structure.
6. The vessel motion control simulation platform of claim 5, wherein: the driving module comprises a motor, a transmission shaft, a propeller, a remote controller, a steering engine, a pull rod and a rudder blade, wherein the remote controller is used for controlling the motor to advance, retreat and stop; the motor rotates to drive the propeller through the transmission shaft; the steering engine rocker arm rotates to drive the rudder blade through the pull rod.
7. The vessel motion control simulation platform of claim 1, wherein: the software part in the control module adopts a modular design, and each module has an independent bottom layer program so as to ensure that the function of the module can be realized by only calling the bottom layer program of the module in the control process.
8. A ship motion control method is characterized in that based on the ship motion control simulation platform of any one of claims 1 to 7, course control and track control are separately controlled, real-time position data of a ship are received and compared with an expected track, and then an expected course is output; then receiving the output expected course and the real-time attitude data of the ship, and calculating and outputting a control signal of the expected attitude; and then the motion attitude of the ship is changed according to the control signal.
CN201710411780.2A 2017-06-05 2017-06-05 Ship motion control simulation platform and ship motion control method Active CN107092199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710411780.2A CN107092199B (en) 2017-06-05 2017-06-05 Ship motion control simulation platform and ship motion control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710411780.2A CN107092199B (en) 2017-06-05 2017-06-05 Ship motion control simulation platform and ship motion control method

Publications (2)

Publication Number Publication Date
CN107092199A CN107092199A (en) 2017-08-25
CN107092199B true CN107092199B (en) 2020-01-10

Family

ID=59639874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710411780.2A Active CN107092199B (en) 2017-06-05 2017-06-05 Ship motion control simulation platform and ship motion control method

Country Status (1)

Country Link
CN (1) CN107092199B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908119B (en) * 2017-10-31 2021-06-04 上海船舶运输科学研究所 Management system for real-time monitoring of navigation performance of commercial ships
CN109613928B (en) * 2018-11-20 2023-06-02 上海工程技术大学 Composite control system and method for multi-vector propeller combined aerostat
CN110161877A (en) * 2019-05-06 2019-08-23 中国舰船研究设计中心 A kind of electric steering engine control system half-physical simulation test platform and test method
CN118937617A (en) * 2024-07-31 2024-11-12 重庆草街航运电力开发有限公司 Online detection method and system based on mobile floating vessel

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317542A (en) * 1993-07-21 1994-05-31 The United States Of America As Represented By The Secretary Of The Navy Ship's attitude data converter

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101109958A (en) * 2007-07-24 2008-01-23 浙江工业大学 Set the steering instrument for automatic heading correction
FR2945868B1 (en) * 2009-05-19 2011-07-01 Airbus France METHOD AND DEVICE FOR INTEGRATING A GPS RF EMULATOR IN A SIMULATION ENVIRONMENT
CN201638083U (en) * 2009-11-20 2010-11-17 大连海事大学 A hardware-in-the-loop simulation system for ship motion control
CN103309244B (en) * 2013-05-29 2016-05-04 哈尔滨工程大学 One owes to drive unmanned boat semi-physical system and dedicated emulated method thereof
CN103576694B (en) * 2013-11-14 2015-03-11 哈尔滨工程大学 Semi-physical simulation system of dynamic positioning ship

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317542A (en) * 1993-07-21 1994-05-31 The United States Of America As Represented By The Secretary Of The Navy Ship's attitude data converter

Also Published As

Publication number Publication date
CN107092199A (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN107092199B (en) Ship motion control simulation platform and ship motion control method
CN109911110B (en) stabilize the boat
Lv et al. Underwater navigation methodology based on intelligent velocity model for standard AUV
CN104898429A (en) Tri-rotor attitude control method based on auto-disturbance rejection controller
CN104658368A (en) Ship steering simulator and simulation method
CN105242679A (en) Method for designing control system of four rotor aircraft
CN110827616A (en) A simulation test platform and method for submarine steering and balance control
CN110223565A (en) A kind of flight simulation method, device, equipment and storage medium
Sauzé et al. Moop: A miniature sailing robot platform
CN111881632A (en) A method and system for determining the wind limit map of a helicopter
CN105300407B (en) A kind of marine dynamic starting method for single axis modulation laser gyro inertial navigation system
Leonard et al. Sensor fusion observer design and experimental validation for an underwater kite
CN107014374A (en) A kind of underwater glider Energy Saving Algorithm based on complementary filter
CN105628056A (en) Fine filtering method and test platform for random walk noise of gyroscope
CN117034807A (en) Numerical simulation research method for model self-navigation of underwater vehicle
CN113806950A (en) Simulation Method of Strapdown Inertial Navigation System Based on Submersible Space Motion Model
CN118707963B (en) Ship motion control method, device, ship and storage medium
Kilpin Modelling and design of an autonomous sailboat for ocean observation
Harris Time domain simulation of a yacht sailing upwind in waves
Le Roux Autonomous landing of a fixed-wing unmanned aerial vehicle onto a moving platform
Beachy et al. Modification of a Lateral MIMO Model for Use as a Hydrofoil Boat Design Tool and Flight Control System with the Addition of Longitudinal Control
Shang Motion Control Analysis of Hydrofoil-Based Autonomous Surface Vehicle: An Integrated Approach Utilizing Moving-Mass-Actuated Stabilizer and Variable RPM Propeller Modeled with Computational Fluid Dynamics and Auto-Control Algorithm
CN117850417A (en) Formation control method and system for unmanned ship on water surface and autonomous underwater vehicle
Lei et al. Design and Development of Experimental Platform for Small Unmanned Airship
Kjerstad Weather-optimal positioning control for underactuated USVs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant