Design and Development of an Autonomous Underwater Helicopter for Ecological Observation of Coral Reefs

Real-time status monitoring is an important prerequisite for coral reef ecological protection. Existing equipment does not provide an ocean observation platform with adequate mobility and efficiency. This paper describes the design considerations of a proposed autonomous underwater helicopter (AUH) dedicated for ecological observation of coral reefs, including the system architecture, electronic devices, sensors and actuators, and explains the path control algorithm and controller to follow a specific path for ocean exploration. The structure and dynamic model of the AUH are first introduced, and then the corresponding simplification is made for motion analysis. Furthermore, computational fluid dynamics (CFD) simulation is carried out to evaluate the dynamic performance of the AUH. Fuzzy-PID control algorithm is utilized to achieve a good antidisturbance effect. In order to validate the performance of the proposed underwater vehicle, a field test was performed, and results confirmed the feasibility of the proposed prototype.


Introduction
Coral reefs, known as "underwater rainforests", are the most biodiverse ecosystems in the world and provide considerable economic, ecological and social benefits for human beings. With the increasing intensity of social and marine economic activities in coastal areas, coral reefs are facing the threat of severe damage [1]. Real-time observation is an important prerequisite for the rescue and protection of coral reefs; it helps to understand the status of coral reef systems, identify relative impact factors and evaluate the effectiveness of conservation measures, so as to put forward suggestions for further improvement on protection strategies. Traditional coral observations are either carried out by divers carrying cameras and samplers at the coral reef site or by fixed observation platforms with scientific sensors [2,3], which have significant limitations in terms of observation scale and efficiency. With the development of ocean technology, underwater vehicles equipped with professional observation equipment are coming into application in the ocean observation field [4][5][6][7][8][9][10][11]. However, existing underwater vehicles do not provide an ideal platform for large-scale and long-term observation of coral reefs. More specifically, (i) while an autonomous underwater vehicle (AUV) mainly works in the upper water column, the observation of coral reefs requires the underwater vehicle to be able to reach the seafloor and hover at a fixed point; (ii) operation in the complex water flow near the seabed puts forward higher requirements for the maneuverability of the underwater vehicle.
In view of the problems mentioned above, a seafloor-resident mobile observation platform, Coral-AUH, is designed and developed in this paper. As a disk-shaped underwater vehicle, the AUH has experienced several generations of iteration and come into underwater vehicle.
In view of the problems mentioned above, a seafloor-resident mobile observation platform, Coral-AUH, is designed and developed in this paper. As a disk-shaped underwater vehicle, the AUH has experienced several generations of iteration and come into application in various fields [12][13][14][15][16][17][18]. Coral-AUH inherits the super maneuverability and seafloor-resident capability; meanwhile, it carries a camera and multiple sensors to detect environmental data such as pH, conductivity, dissolved oxygen, turbidity and chlorophyll in real time, which helps scientists to determine the health status of corals more accurately. The advent of Coral-AUH will provide a large-scale and long-term observation platform for coral reef ecological observation.
The rest of this paper is arranged as follows: The general configuration of Coral-AUH is discussed first, and then a kinematic model and motion analysis are presented. After that, computational fluid analysis evaluating the hydrodynamic performance of Coral-AUH is presented. The control system is then described, and the results of a pool test validating the feasibility of the control algorithm are presented. Finally, the results of a field test verifying the observation capability and reliability of Coral-AUH are presented.

System Architecture
Inspired by the bottom-dwelling stingray (Figure 1), we designed the disk-shaped autonomous underwater helicopter (AUH), a new member of the AUV family, which is suitable for seafloor-resident observation and operation. Over the decades, a series of AUH prototypes have been developed for various scenarios, and in this paper, Coral-AUH is designed and implemented as the underwater mobile platform for coral observations. Coral-AUH measures 0.5 m × 0.5 m × 0.32 m, weighs 12 kg, is neutrally slightly positive-buoyant, and can swim for 60 min at a time. The designed maximum speed is 2 kn and the maximum diving depth is 200 m. The system overview of Coral-AUH is shown in Figure 2. It mainly consists of the shell, propulsion system, power module, data acquisition module, scientific sensor group, wireless Internet of Things module, etc. The power module provides power for functional units on Coral-AUH, while the supporting structure offers a physical connection for all modules. The scientific sensor group is mounted in the frame and includes the intelligent pH (PH) electrode, intelligent conductivity (EC) electrode, intelligent dissolved oxygen (DO) electrode, intelligent turbidity electrodes, self-cleaning chlorophyll digital sensors, etc. (The selection of scientific sensor group was determined according to suggestions from professional coral observation and study team in Nanhai Institute of Chinese Academy of Sciences.) There are two sealed cabins, which isolate inner electronic devices from water. The upper sealed cabin contains a motion control module, data acquisition module and wireless Internet of Things module, and the lower sealed cabin The system overview of Coral-AUH is shown in Figure 2. It mainly consists of the shell, propulsion system, power module, data acquisition module, scientific sensor group, wireless Internet of Things module, etc. The power module provides power for functional units on Coral-AUH, while the supporting structure offers a physical connection for all modules. The scientific sensor group is mounted in the frame and includes the intelligent pH (PH) electrode, intelligent conductivity (EC) electrode, intelligent dissolved oxygen (DO) electrode, intelligent turbidity electrodes, self-cleaning chlorophyll digital sensors, etc. (The selection of scientific sensor group was determined according to suggestions from professional coral observation and study team in Nanhai Institute of Chinese Academy of Sciences.) There are two sealed cabins, which isolate inner electronic devices from water. The upper sealed cabin contains a motion control module, data acquisition module and wireless Internet of Things module, and the lower sealed cabin contains power supply components such as batteries. The data acquisition control module is connected with the scientific sensor assembly through the RS485 bus, and the data acquisition control module can read the water quality data fed back by the sensor in real time and perform corresponding processing by sending control signals to the water quality sensor assembly according to the set time sequence.
contains power supply components such as batteries. The data acquisition control module is connected with the scientific sensor assembly through the RS485 bus, and the data acquisition control module can read the water quality data fed back by the sensor in real time and perform corresponding processing by sending control signals to the water quality sensor assembly according to the set time sequence. As shown in Figure 3, the main body of Coral-AUH adopts a frame structure, which is convenient for the installation and fixation of the load devices, more specifically, the scientific sensors. The outer casing is an arc-shaped dome cover, which helps to improve the hydrodynamic performance, and an opening channel for each propeller is arranged on the casing to allow for the water to flow through. The propeller group contains a total of six propellers, including four horizontal propellers, which are symmetrically installed around the mounting bracket to provide torsion force rotating around the vertical central axis and thrust force for horizontal movement. The four propellers are decoupled and can be independently controlled for advance, retreat and yaw. The propulsion direction of the remaining two propellers is the vertical direction. They are symmetrically installed on both sides of the mounting bracket to provide the thrust of the vertical motion of the underwater drone for controlling snorkeling. This propeller layout can improve the space utilization rate and make the designed AUH structure more compact and smaller in appearance. Meanwhile, through staggered arrangement, the flow channels of each propeller do not interfere with each other.

Kinematic Modelling and Motion Analysis
As the underwater vehicle designed in this paper is dedicated for coral ecological observation, so one key index is to improve the athletic performance, especially its maneuverability, compared with the traditional torpedo-type autonomous underwater vehicle. Considering the requirement for mobility, as well as the special limitations, the layout of propellers was designed as shown in Figure 4. The six propellers are decou- As shown in Figure 3, the main body of Coral-AUH adopts a frame structure, which is convenient for the installation and fixation of the load devices, more specifically, the scientific sensors. The outer casing is an arc-shaped dome cover, which helps to improve the hydrodynamic performance, and an opening channel for each propeller is arranged on the casing to allow for the water to flow through. The propeller group contains a total of six propellers, including four horizontal propellers, which are symmetrically installed around the mounting bracket to provide torsion force rotating around the vertical central axis and thrust force for horizontal movement. The four propellers are decoupled and can be independently controlled for advance, retreat and yaw. The propulsion direction of the remaining two propellers is the vertical direction. They are symmetrically installed on both sides of the mounting bracket to provide the thrust of the vertical motion of the underwater drone for controlling snorkeling. This propeller layout can improve the space utilization rate and make the designed AUH structure more compact and smaller in appearance. Meanwhile, through staggered arrangement, the flow channels of each propeller do not interfere with each other.
contains power supply components such as batteries. The data acquisition control module is connected with the scientific sensor assembly through the RS485 bus, and the data acquisition control module can read the water quality data fed back by the sensor in real time and perform corresponding processing by sending control signals to the water quality sensor assembly according to the set time sequence. As shown in Figure 3, the main body of Coral-AUH adopts a frame structure, which is convenient for the installation and fixation of the load devices, more specifically, the scientific sensors. The outer casing is an arc-shaped dome cover, which helps to improve the hydrodynamic performance, and an opening channel for each propeller is arranged on the casing to allow for the water to flow through. The propeller group contains a total of six propellers, including four horizontal propellers, which are symmetrically installed around the mounting bracket to provide torsion force rotating around the vertical central axis and thrust force for horizontal movement. The four propellers are decoupled and can be independently controlled for advance, retreat and yaw. The propulsion direction of the remaining two propellers is the vertical direction. They are symmetrically installed on both sides of the mounting bracket to provide the thrust of the vertical motion of the underwater drone for controlling snorkeling. This propeller layout can improve the space utilization rate and make the designed AUH structure more compact and smaller in appearance. Meanwhile, through staggered arrangement, the flow channels of each propeller do not interfere with each other.

Kinematic Modelling and Motion Analysis
As the underwater vehicle designed in this paper is dedicated for coral ecological observation, so one key index is to improve the athletic performance, especially its maneuverability, compared with the traditional torpedo-type autonomous underwater vehicle. Considering the requirement for mobility, as well as the special limitations, the layout of propellers was designed as shown in Figure 4. The six propellers are decou-

Kinematic Modelling and Motion Analysis
As the underwater vehicle designed in this paper is dedicated for coral ecological observation, so one key index is to improve the athletic performance, especially its maneuverability, compared with the traditional torpedo-type autonomous underwater vehicle. Considering the requirement for mobility, as well as the special limitations, the layout of propellers was designed as shown in Figure 4. The six propellers are decoupled from each other, and all of them can independently control the trajectory of the AUH by changing the rotational speed.
Before establishing the kinematic model, it is necessary to define the coordinate system. As shown in Figure 5, there are two coordinate frames: one is the ground coordinate frame (E-X_E Y_E Z_E), also known as the static coordinate frame, which is used as the inertial reference system, and the other is the body coordinate frame (O-xyz). In this paper, the center of buoyancy is selected as the origin O of the coordinate frame, with the bodyreferenced x-axis forward, y-axis to port (right) and zaxis down.  Before establishing the kinematic model, it is necessary to define the coordinate system. As shown in Figure 5, there are two coordinate frames: one is the ground coordinate frame (E-X_E Y_E Z_E), also known as the static coordinate frame, which is used as the inertial reference system, and the other is the body coordinate frame (O-xyz). In this paper, the center of buoyancy is selected as the origin O of the coordinate frame, with the body-referenced x-axis forward, y-axis to port (right) and z-axis down.    Before establishing the kinematic model, it is necessary to define the coordinate system. As shown in Figure 5, there are two coordinate frames: one is the ground coordinate frame (E-X_E Y_E Z_E), also known as the static coordinate frame, which is used as the inertial reference system, and the other is the body coordinate frame (O-xyz). In this paper, the center of buoyancy is selected as the origin O of the coordinate frame, with the body-referenced x-axis forward, y-axis to port (right) and z-axis down.   The definitions concerning six degrees of freedom (DOFs) of Coral-AUH are given in the tables below, three in translations and three in rotations. The variables in the inertial frame and body frame are shown in Tables 1 and 2. Table 1. Parameters in the inertial frame. Table 2. Parameters in the body frame.

Vector Speed (V) Angular Velocity (Ω) Force (F) Torque (M)
Based on the variables defined in Tables 1 and 2, the linear velocity and angular velocity of Coral-AUH can be expressed as p . q . r T . The linear velocity and angular velocity can be converted through the coordinate transformation matrix [19], as shown in Equations (1) and (2). Equation (3) is the specific expression of the speed conversion matrix Theoretically, six propellers can control the motion of the underwater vehicle in six DOFs. However, in practical application scenarios, motion in all DOFs is not often required. As for Coral-AUH, the three degrees of freedom of forward, steering and lifting are sufficient to meet the needs of coral observations. Based on the kinematic model above, the motion analysis of Coral-AUH is carried out in these three DOFs.
The free body diagram of the six propellers is shown in Figure 6.
Based on the variables defined in Tables 1 and 2, the linear velocity and angular velocity of Coral-AUH can be expressed as = , = , = and = . The linear velocity and angular velocity can be converted through the coordinate transformation matrix [19], as shown in Equations (1) and (2). Equation (3) is the specific expression of the speed conversion matrix .
Theoretically, six propellers can control the motion of the underwater vehicle in six DOFs. However, in practical application scenarios, motion in all DOFs is not often required. As for Coral-AUH, the three degrees of freedom of forward, steering and lifting are sufficient to meet the needs of coral observations. Based on the kinematic model above, the motion analysis of Coral-AUH is carried out in these three DOFs.
The free body diagram of the six propellers is shown in Figure 6. The expression corresponding to the free body diagram produced by the propellers can thus be obtained: The expression corresponding to the free body diagram produced by the propellers can thus be obtained: Considering the practical application, this paper only considers three DOFs. The force generated by the propeller can be calculated by where K f is the propeller coefficient and Ω i is the angular velocity of the i-th propeller. Equation (4) can be simplified as In this paper, the Newton-Euler equation [20] is used to establish the dynamic model. On the horizontal plane, the AUH kinetic model can be expressed as where J is the total inertial of the vehicle, ω * (Jω) is the centripetal force and C gyro is the gyroscopic effect moment generated by the propeller due to the rotation of the propeller. M f is water resistance or moment, which can be calculated by where ρ is the fluid density, C f is the water resistance coefficient, A f is the wet surface area of the AUH and V is the flow rate. K ζ is the force and moment produced by the gravity and the buoyancy. M C is the force and moment generated by the optical cable to the AUH, which can be written as where C c is the resistance coefficient, A C is the wet area of the cable and V f is the water velocity. τ is the force and moment generated by the propeller.
Since the gyroscopic effect has little influence on underwater objects, it is not considered in this paper, and the resistance of the optical cable to the AUH is ignored. Combined with the snorkeling motion in the vertical direction, the equation of motion under three degrees of freedom can finally be simplified as where C f H and C f V are the drag coefficients in the horizontal and vertical directions obtained according to the hydrodynamic analysis, which will be introduced in detail in Section 2.3. A H and A V respectively represent the wet area in the horizontal and vertical directions of the AUH. C R is the general water resistance coefficient when the AUH rotates. R is the turning radius of the designed AUH. The input control variable of the Coral-AUH is the angular velocity of the i-th propeller. This section clarifies the dynamic law and its quantitative expression for Coral-AUH, which prepares for the subsequent parameter setting of the control system.

CFD Simulation
In motion analysis, the water resistance is an important variable affecting the kinematic performance of Coral-AUH, which requires accurate calculation. However, due to the complex underwater environment, the water resistance of Coral-AUH when working underwater is not linear and can hardly be obtained directly. CFD software proves to be an effective tool to evaluate the resistance of underwater vehicles, and the simulation results can be used to optimize the external dimension parameters of the Coral-AUH afterward. The diversion shell of the AUH is mainly utilized to protect the internal equipment of the helicopter from the water flow in the marine environment and the impact damage of various debris; meanwhile, its hydrodynamic profile helps to reduce the fluid resistance in the operation process so as to reduce the power consumption.
In this paper, ANSYS-FLUENT is utilized as the CFD simulation tool. To ensure calculation accuracy and save computing resources, the RNG k-ε model is used to establish an outer drainage basin of 4 m × 4 m × 10 m. The velocity inlet and pressure outlet boundary conditions are established, and the rest are set as no-slip walls. Considering the complexity of the model, unstructured grid is adopted globally. The boundary layer is refined near the wall of the inner watershed, and the minimum grid size is 2 mm. The RNG model is one of the widely used two-equation turbulence models; it solves two transport equations and simulates Reynolds stress by the eddy viscosity method.

∂ρ ∂t
The RNG k-ε model [21] is based on model transport equations for the turbulence kinetic energy (k) and its dissipation rate (ε), which are obtained from the following transport equations: In these equations, G k represents the generation of turbulence kinetic energy due to the mean velocity gradients and G b is the generation of turbulence kinetic energy due to buoyancy. Y M represents the contribution of the fluctuating dilatation in compressible turbulence to the overall dissipation rate. C 1ε , C 2ε and C 3ε are constants and σ k and σ ε are the turbulent Prandtl numbers for k and ε, respectively. The quantities α k and α ε are the inverse effective Prandtl numbers for k and ε, respectively. S k and S ε are user-defined source terms.
The numerical solver uses the pressure-based Semi-Implicit Method for Pressure Linked Equations (SIMPLE), which iteratively decouples the calculation of velocity and pressure. The condition for iterative calculation to stop in each case is that the residuals of each parameter are less than 10 −3 .
Two typical translation and rotation velocities were simulated, and the resistance obtain could be input into the motion control analysis. The resistance diagrams and the velocity contour of the Coral-AUH are shown in Figure 7.
Comparing the resistance of the Coral-AUH in all directions under the conditions of the incoming flow speeds of 1 and 1.5 m/s, the resistance Fx is about 25 N at 1 m/s and about 55 N at 1.5 m/s. The resistance Fy basically fluctuates up and down around 0 N, and the Coral-AUH receives roughly the same resistance in the x-axis and z-axis, which may cause rising during the horizontal advance. It can be fine-tuned by the vertical propellers. From the velocity contour, at the speeds of 1 and 1.5 m/s, the surrounding fluid flow is similar and the streamline is good. The flow velocity of the upper fluid and the opposite flow is relatively large and then gradually decreases to both sides of the hull, and the flow velocity of the fluid behind the helicopter is relatively small.
In addition to translational movement, steering is also a frequent motion in underwater operations. Therefore, the torque of the Coral-AUH when it rotates at different angular speeds perpendicular to z-axis was analyzed. The torque variations and velocity contours when angular speed is at 90 and 180 • /s are shown in Figure 8.
By comparison, it can be found that the torque is about 0.006 N m at 90 • /s and 0.02 N m at 180 • /s. It is much smaller than the resistance encountered when moving horizontally. It can better meet the requirements of flexible steering and maneuverability of underwater helicopters during movement. Meanwhile, the resistance in the horizontal direction of the underwater helicopter is small and the action is flexible, while the resistance in the vertical direction is large, which can also ensure the stability of its navigation process. In addition to translational movement, steering is also a frequent motion in underwater operations. Therefore, the torque of the Coral-AUH when it rotates at different angular speeds perpendicular to z-axis was analyzed. The torque variations and velocity contours when angular speed is at 90 and 180°/s are shown in Figure 8. By comparison, it can be found that the torque is about 0.006 N m at 90°/s and 0.02 N m at 180°/s. It is much smaller than the resistance encountered when moving horizontally. It can better meet the requirements of flexible steering and maneuverability of underwater helicopters during movement. Meanwhile, the resistance in the horizontal di-

Guidance and Actuators
The positioning system of the Coral-AUH consists of an inertial measurement unit (IMU) and depth sensor (Figure 9). An AUH can be equipped with an ultrashort baseline (USBL) system for underwater acoustic positioning. The USBL system is usually expensive and heavy, and acoustic positioning is not the focus of this paper. Relative displacement and angular variation data are read from IMU to locate the AUH and to verify the feasibility of motion actuators. derwater helicopters during movement. Meanwhile, the resistance in the horizontal direction of the underwater helicopter is small and the action is flexible, while the resistance in the vertical direction is large, which can also ensure the stability of its navigation process.

Guidance and Actuators
The positioning system of the Coral-AUH consists of an inertial measurement unit (IMU) and depth sensor (Figure 9). An AUH can be equipped with an ultrashort baseline (USBL) system for underwater acoustic positioning. The USBL system is usually expensive and heavy, and acoustic positioning is not the focus of this paper. Relative displacement and angular variation data are read from IMU to locate the AUH and to verify the feasibility of motion actuators. The motion actuators in Coral-AUH are the horizontal and vertical propellers. The motion control panel perceives data from sensors and outputs motion commands after position calculation. The inertial measurement unit (IMU) measures the three-axis attitude angle and acceleration rate of the Coral-AUH. The depth sensor measures the depth of the AUH. Having received data from the positioning system, the motion control panel then calculates the actual position of the Coral-AUH and compares it with the target position and sends commands to the attitude adjustment system and propulsion system accordingly.

Motion Control
The motion of the AUH requires the collaborative work of six brushless DC (BLDC) motors. An STM32 generates PWM at a certain frequency and duty cycle, which is utilized as drive signals for the propeller group. The control command comes from the data collected from sensors and remote control signals. The IMU module is composed of an ITG3205 triaxial gyroscope, an ADXL345 triaxial accelerometer and an HMX5883L triaxial magnetic field sensor. PID closed-loop control is utilized to ensure that the Coral-AUH successfully completes the desired motion.
In the practical application process of the AUH, three modes are mainly involved: forward and backward, up and down, and steering. The operating modes of the propellers will be introduced below ( Figure 10). The motion actuators in Coral-AUH are the horizontal and vertical propellers. The motion control panel perceives data from sensors and outputs motion commands after position calculation. The inertial measurement unit (IMU) measures the three-axis attitude angle and acceleration rate of the Coral-AUH. The depth sensor measures the depth of the AUH. Having received data from the positioning system, the motion control panel then calculates the actual position of the Coral-AUH and compares it with the target position and sends commands to the attitude adjustment system and propulsion system accordingly.

Motion Control
The motion of the AUH requires the collaborative work of six brushless DC (BLDC) motors. An STM32 generates PWM at a certain frequency and duty cycle, which is utilized as drive signals for the propeller group. The control command comes from the data collected from sensors and remote control signals. The IMU module is composed of an ITG3205 triaxial gyroscope, an ADXL345 triaxial accelerometer and an HMX5883L triaxial magnetic field sensor. PID closed-loop control is utilized to ensure that the Coral-AUH successfully completes the desired motion.
In the practical application process of the AUH, three modes are mainly involved: forward and backward, up and down, and steering. The operating modes of the propellers will be introduced below ( Figure 10). (i) Forward and backward When moving forward, the four horizontal propellers maintain the same rotation speed. Propellers 1 and 4 generate a clockwise force perpendicular to the central axis, and propellers 2 and 3 generate a counterclockwise force perpendicular to the central axis. At this time, the force of the four horizontal propellers in the y-axis direction is just

(i) Forward and backward
When moving forward, the four horizontal propellers maintain the same rotation speed. Propellers 1 and 4 generate a clockwise force perpendicular to the central axis, and propellers 2 and 3 generate a counterclockwise force perpendicular to the central axis. At this time, the force of the four horizontal propellers in the y-axis direction is just offset. The resultant force is the forward thrust. The principle of moving backward is omitted since it is similar to that of moving forward.
(ii) Up and down When the two vertical propellers simultaneously generate the same upward or downward force according to the speed requirement, Coral-AUH moves in the vertical direction.
(iii) Left and right steering When the horizontal propellers in relative position propel in opposite directions, Coral-AUH can realize 360 • turning with zero radius.

Fuzzy-PID Control Algorithm
The traditional PID controller features high reliability, simple structure and easy parameter adjustment, but it also has some shortcomings; for example, the control accuracy is not sufficient and the anti-interference ability is poor. The parameters in traditional PID control are preset, and when the system is under disturbance, preset parameters cannot be changed, so the performance of the traditional controller cannot meet certain precision. In fuzzy algorithms, parameters can adapt to changes according to certain rules, so a fuzzy-PID control algorithm has better antidisturbance performance than a traditional PID control algorithm. The comparison of fuzzy-PID control and traditional PID control logic diagrams is shown in Figure 11. The traditional PID control system is mainly composed of a PID controller and a controlled object. In this paper, the control object is a brushless DC motor. According to the given value ( ) of the system and the actual output feedback c(t) of the control system, the deviation value of the system ( ) = ( ) − ( ).
Fuzzy control is a nonlinear control strategy based on fuzzy reasoning. Its basic principle is to integrate human operation experience and common sense reasoning rules through fuzzy language. When the stability of the system is destroyed, the fuzzy control algorithm can make a judgment according to the current state to maintain stability, so the fuzzy algorithm is integrated into the traditional PID algorithm to form a fuzzy PID controller, which usually achieves a good control effect. As shown in Figure 11, error e and error variation rate ec are input into the fuzzy controller, and KP', KI' and KD' are The traditional PID control system is mainly composed of a PID controller and a controlled object. In this paper, the control object is a brushless DC motor. According to the given value r(t) of the system and the actual output feedback c(t) of the control system, the deviation value of the system e(t) = r(t) − c(t).
u(t) = K p * e(t) In which, Fuzzy control is a nonlinear control strategy based on fuzzy reasoning. Its basic principle is to integrate human operation experience and common sense reasoning rules through fuzzy language. When the stability of the system is destroyed, the fuzzy control algorithm can make a judgment according to the current state to maintain stability, so the fuzzy algorithm is integrated into the traditional PID algorithm to form a fuzzy PID controller, which usually achieves a good control effect. As shown in Figure 11, error e and error variation rate ec are input into the fuzzy controller, and KP', KI' and KD' are obtained after calculation. These three environment-variant parameters are input into the PID controller in real time, which facilitates the application under different circumstances.
The simulation model was established in MATLAB Simulink. In the traditional PID control model, according to the optimization result, KP is set as 8, KI is set as 0.3 and KD is set as 0.8. In the fuzzy PID control model, fuzzification factors Ke = 2 and Kec = 0.1; defuzzification factors K1 = 0.8, K2 = 120 and K3 = 0.5; and initial PID parameters Kp = 0.6, Ki = 0.8 and Ki = 0.05. The comparison of response curves in traditional PID control and fuzzy PID control is shown in Figure 12. As shown in Figure 10, compared with the traditional PID controller, the fuzzy PID controller has a faster response speed, shorter time to reach the steady state and much less overshoot. When the reference input surges, the response speed of fuzzy PID control is faster in the adjustment process, and there is almost no overshoot, so the controller has a better anti-interference ability.

Motion Test
We performed quantitative tests in a pool to measure the propulsion and attitude adjustment capabilities of the Coral-AUH. The average swimming speed in a straight path was 1.54 m/s (±0.06 m/s), equivalent to 1.5 body lengths per second. The average angular spin rate was 3.14 rad/s (±0.6 rad/s) with a zero turning radius. The average dive speed in the horizontal attitude was 0.72 m/s (±0.07 m/s), equivalent to 0.7 body lengths per second. A sample AUH trajectory is shown in Figure 11, illustrating the ultra-agile swimming motion following preset commands. The AUH can change attitude, direction and depth while exploring the coral reefs, with an average swimming speed of 1.28 m/s (±0.26 m/s) at depths of 0 to 200 m.
In order to verify the feasibility of the control algorithm, an experiment to test mobility was carried out in a swimming pool. A preset route was designed and input into the control system of the AUH, and the route was quite challenging as it had sharp turning and attitude adjustment. In the preset task, the AUH is supposed to follow the route through attitude adjustment and vectoring propulsion. As shown in Figure 13, the trajectory started at point O; AUH was designed to dive to Point A and then cruise to point B. After that, AUH turned 90° clockwise and cruised to point C. At point C, AUH came up to point D, and then it cruised to point E. At point E, AUH turned 90° clockwise and finally returned to point O. The whole route mainly involves variations in yaw. A comparison was made between the preset route and the actual route, and the result is shown in Figure 13. Yaw angle was also recorded in real time and compared with the preset value, as shown in Figure 14. The actual route and heading angle agree well with preset values, validating the fuzzy control algorithm.

Motion Test
We performed quantitative tests in a pool to measure the propulsion and attitude adjustment capabilities of the Coral-AUH. The average swimming speed in a straight path was 1.54 m/s (±0.06 m/s), equivalent to 1.5 body lengths per second. The average angular spin rate was 3.14 rad/s (±0.6 rad/s) with a zero turning radius. The average dive speed in the horizontal attitude was 0.72 m/s (±0.07 m/s), equivalent to 0.7 body lengths per second. A sample AUH trajectory is shown in Figure 11, illustrating the ultra-agile swimming motion following preset commands. The AUH can change attitude, direction and depth while exploring the coral reefs, with an average swimming speed of 1.28 m/s (±0.26 m/s) at depths of 0 to 200 m.
In order to verify the feasibility of the control algorithm, an experiment to test mobility was carried out in a swimming pool. A preset route was designed and input into the control system of the AUH, and the route was quite challenging as it had sharp turning and attitude adjustment. In the preset task, the AUH is supposed to follow the route through attitude adjustment and vectoring propulsion. As shown in Figure 13, the trajectory started at point O; AUH was designed to dive to Point A and then cruise to point B. After that, AUH turned 90 • clockwise and cruised to point C. At point C, AUH came up to point D, and then it cruised to point E. At point E, AUH turned 90 • clockwise and finally returned to point O. The whole route mainly involves variations in yaw. A comparison was made between the preset route and the actual route, and the result is shown in Figure 13. Yaw angle was also recorded in real time and compared with the preset value, as shown in Figure 14. The actual route and heading angle agree well with preset values, validating the fuzzy control algorithm. through attitude adjustment and vectoring propulsion. As shown in Figure 13, the trajectory started at point O; AUH was designed to dive to Point A and then cruise to point B. After that, AUH turned 90° clockwise and cruised to point C. At point C, AUH came up to point D, and then it cruised to point E. At point E, AUH turned 90° clockwise and finally returned to point O. The whole route mainly involves variations in yaw. A comparison was made between the preset route and the actual route, and the result is shown in Figure 13. Yaw angle was also recorded in real time and compared with the preset value, as shown in Figure 14. The actual route and heading angle agree well with preset values, validating the fuzzy control algorithm.

Field Test
The function and reliability of Coral-AUH were tested in a field test in the wate Luhuitou and Yazhou Bay in Sanya City. Coral reef ecological restoration areas loc in the Nanhaisuo National Coral Conservation Area and the Dongluo Island Coral toration Area were selected as test sites (shown in Figure 15). In the field test, Co AUH successfully cruised to the desired site with a preset route. The photos taken Coral-AUH are shown in Figures 16 and 17, and the water quality data collected by sensor group are shown in Tables 3 and 4.

Field Test
The function and reliability of Coral-AUH were tested in a field test in the waters of Luhuitou and Yazhou Bay in Sanya City. Coral reef ecological restoration areas located in the Nanhaisuo National Coral Conservation Area and the Dongluo Island Coral Restoration Area were selected as test sites (shown in Figure 15). In the field test, Coral-AUH successfully cruised to the desired site with a preset route. The photos taken by Coral-AUH are shown in Figures 16 and 17, and the water quality data collected by the sensor group are shown in Tables 3 and 4.

Field Test
The function and reliability of Coral-AUH were tested in a field test in the waters of Luhuitou and Yazhou Bay in Sanya City. Coral reef ecological restoration areas located in the Nanhaisuo National Coral Conservation Area and the Dongluo Island Coral Restoration Area were selected as test sites (shown in Figure 15). In the field test, Coral-AUH successfully cruised to the desired site with a preset route. The photos taken by Coral-AUH are shown in Figures 16 and 17, and the water quality data collected by the sensor group are shown in Tables 3 and 4.           The field test lasted 2 h each time. The maximum depth reached was 30 m. It can be seen from the test results that the Coral-AUH successfully cruised to the coral reef site and hovered there to take photographs; meanwhile, it could detect environmental data such as pH, conductivity, dissolved oxygen, turbidity and chlorophyll in real time. The test results show that the system can improve the accuracy and timeliness of coral monitoring and can meet the long-term stereoscopic observation requirements for coral reefs in a complex seabed ecological environment.

Conclusions
This paper contributes to the field of undersea robots that can serve as an observatory platform for coral reefs. First, we present the design considerations of a stingray-shaped underwater vehicle that can complete scientific surveys continuously within certain sea areas. Motion analysis and CFD simulation show Coral-AUH has low rotation resistance and superior maneuverability. A fuzzy algorithm is integrated into the traditional PID algorithm to form a fuzzy PID controller, which usually achieves a good antidisturbance effect. Simulation and experimental results show that AUH follows the preset route well and demonstrates excellent maneuverability. Finally, the function and reliability of Coral-AUH were tested in the waters of Luhuitou and Yazhou Bay at the depths of 10 and 30 m, respectively, and the duration of each test lasted for around 2 h. The results show that Coral-AUH can quickly, accurately and efficiently conduct coral observation tasks.  Data Availability Statement: All the data supporting the reported results has been included in this paper.