The power system of the unmanned ship mainly includes the control of the rudder and the control of the gear, the rudder mainly uses the fixed-pair time3 to output the PWM signal, the gear control uses the relay, and controls the opening and closing of the relay by the High and Low level output of the I/O port. Program design, the use of microprocessor STM32F103VCT6 D port for program design, through the serial port according to the different strings received ch, the corresponding gear adjustment, before receiving the new gear, to send the gear clearance instructions, that is, the i/O port-related zero operation, and then in the receiving of the new gear refers to today, through the switch (ch) statement to achieve the control of the gear.
正在翻译中..