{'fraction_non_alphanumeric': 0.014749262536873156, 'fraction_numerical': 0.0, 'mean_word_length': 5.14027149321267, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Yaw angle control of a boxfish-like robot based on cascade PID control algorithm

Because of the complexity of water environment, it is difficult to precisely model the fish robot system. Therefore, model-based attitude control algorithm is difficult to apply to the robotic fish. Cascade PID control uses the measurements of controlled variable and its derivative to constitute a double feedback loop. It can adjust the interference that influence the intermediate variable in advance and improve the dynamic quality and working frequency of the whole system. It is better than the traditional PID controller in anti-interference performance, rapidity, adaptation and stability. This article adopts the cascade PID algorithm to control the yaw angle of a robotic fish for the first time. This article innovatively uses a Kalman filter to eliminate the system angle error caused by periodic oscillation of robotic fish. A yaw angle control framework was proposed for biomimetic robotic fish. Based on the proposed framework, systematically yaw angle control experiments with the robotic fish were carried out in situations where the reference inputs were step signal, square wave and sine wave. Experiments showed that the robotic fish can accurately track the reference of the yaw angle in real time, verifying the effectiveness of the proposed algorithm.