The invention provides an unmanned
torpedo vehicle control program online updating method and
system, and the method comprises the steps: 1, deploying a first
vehicle control program instance and a second
vehicle control program instance, and carrying out the parallel operation of a first vehicle control program instance and a second vehicle control program instance, and forming a dual-control architecture DDC; 2, storing the vehicle control state information in a unified manner through an intermediate
database; 3, initiating a permission switching request based on the vehicle number
granularity, and migrating the control permission of the target vehicle from the current master control instance to another vehicle control program instance; 4, in the permission switching process, the new master control instance recovers the scheduling context by reading the intermediate
database, and the uncompleted instruction continues to be executed. By means of a double-version vehicle control structure,
database state keeping, manual permission switching and the like, the updating process of a vehicle control program is completed on the premise of not interrupting operation, the transportation task continuity and program
maintainability are guaranteed, and the method is suitable for an industrial
automatic control system with the high stability requirement.