Disclosure of Invention
In order to overcome the defects of the prior art, the technical problem to be solved by the invention is to provide a rotating speed maintaining method for restarting a satellite reaction flywheel after power failure, which can solve the problem of unstable satellite attitude control caused by speed return to zero when the existing reaction flywheel is initialized after power failure and power-up again.
The technical scheme of the invention is that the rotating speed maintaining method for restarting the satellite reaction flywheel after power failure comprises the following steps:
(1) After the reaction flywheel is electrified, initializing a system and starting self-checking;
(2) Judging whether the reaction flywheel receives a correct remote control instruction during the self-checking period, if so, closing the flywheel power-off restarting speed maintaining function and executing the step (4), otherwise, opening the flywheel power-off restarting speed maintaining function and executing the step (3);
(3) Reading the current rotating speed, setting the current rotating speed as a target rotating speed, entering a rotating speed mode, stabilizing the rotating speed of the reaction flywheel at the current rotating speed, and realizing the stabilization of the satellite attitude, and jumping to the step (5);
(4) The reaction flywheel responds to the correct remote control instruction;
(5) And (5) ending.
The invention can ensure that the rotating speed of the reaction flywheel is basically kept unchanged or the rotating speed variation is very small before and after the power failure, so that the influence of the power failure restarting operation of the reaction flywheel on the whole satellite attitude is negligible, and the satellite can always keep normal work in the whole process of the power failure restarting of the reaction flywheel.
Still another method for maintaining the rotational speed of a satellite reaction flywheel powered off and restarted is provided, which comprises the following steps:
(I) The reaction flywheel is electrified, and a control system is initialized;
(II) the controller detecting the rotational speed of the reaction flywheel;
(III) if the rotational speed of the reaction flywheel is within a preset range, performing step (IV), otherwise performing step (II);
(IV) starting a counter and normally timing, wherein the communication module works normally;
(V) judging whether the communication module receives the target rotating speed signal, if so, executing the step (VIII), otherwise, executing the step (VI);
(VI) judging whether the timing time reaches the preset duration, if so, executing the step (VII), otherwise, executing the step (V);
(VII) the controller starts a power-off restarting rotating speed maintaining function, and takes the current rotating speed as a target rotating speed;
(VIII) the controller performs PI control and outputs a control signal;
and (IX) the motor runs according to the control signal to complete the rotation speed control.
The utility model also provides a rotational speed retaining device that satellite reaction flywheel outage restarted, it includes:
The initialization module is configured after the reaction flywheel is electrified, and the system is initialized and self-checking is started;
the judging module is configured with a self-checking period to judge whether the reaction flywheel receives a correct remote control instruction, if so, the flywheel power-off restarting rotating speed maintaining function is closed and the response module is executed, and if not, the flywheel power-off restarting rotating speed maintaining function is opened and the rotating speed setting module is executed;
the rotating speed setting module is configured to read the current rotating speed, then set the current rotating speed as a target rotating speed, enter a rotating speed mode, and stabilize the rotating speed of the reaction flywheel at the current rotating speed so as to realize the stabilization of the satellite attitude;
And the response module is configured to enable the reaction flywheel to respond to the correct remote control command.
Detailed Description
As shown in fig. 1, the method for maintaining the rotation speed of the satellite reaction flywheel during power-off restarting comprises the following steps:
(1) After the reaction flywheel is electrified, initializing a system and starting self-checking;
(2) Judging whether the reaction flywheel receives a correct remote control instruction during the self-checking period, if so, closing the flywheel power-off restarting speed maintaining function and executing the step (4), otherwise, opening the flywheel power-off restarting speed maintaining function and executing the step (3);
(3) Reading the current rotating speed, setting the current rotating speed as a target rotating speed, entering a rotating speed mode, stabilizing the rotating speed of the reaction flywheel at the current rotating speed, and realizing the stabilization of the satellite attitude, and jumping to the step (5);
(4) The reaction flywheel responds to the correct remote control instruction;
(5) And (5) ending.
The invention can ensure that the rotating speed of the reaction flywheel is basically kept unchanged or the rotating speed variation is very small before and after the power failure, so that the influence of the power failure restarting operation of the reaction flywheel on the whole satellite attitude is negligible, and the satellite can always keep normal work in the whole process of the power failure restarting of the reaction flywheel.
Preferably, in the step (1), the system initialization includes clock initialization, IO initialization, serial port initialization, CAN initialization, timer initialization, ADC/DAC initialization, wherein the clock is used for providing a signal with a certain frequency for the controller chip to enable the controller chip to work according to a fixed rhythm, the timer provides timing, the IO initialization is used for initializing the pin function of the controller chip, the serial port and the CAN are used for the controller chip to communicate with an external control device, the ADC collects motor current and feeds the motor current back to the controller chip, and the controller chip outputs the current to the motor through the DAC.
Preferably, in the step (3), the current rotation speed is stable in the rotation speed range of the flywheel control as the detected rotation speed signal, otherwise, the rotation speed signal is unstable, if the rotation speed signal is stable, the reaction flywheel enters a rotation speed mode, if the rotation speed signal is unstable, the current is supplied to the motor 0 by default after power-on, and the reaction flywheel enters a sliding mode.
Preferably, as shown in fig. 3, in the step (3), after entering the rotational speed mode, the timer starts to count, after reaching the preset time period, the flywheel enters the flywheel power-off restart rotational speed maintaining function, the current rotational speed value is read first, then the current rotational speed is set as the target rotational speed, the rotational speed enters the rotational speed mode control loop, the output current of the device is controlled by the PI control method in the rotational speed mode control loop, and the rotational speed of the flywheel is stabilized at the current rotational speed.
Preferably, in the step (3), the preset time period is 1 second.
It can be understood that the speed of the flywheel of different models is different after the power failure, the preset duration of the flywheel of different models is also different to be configured in theory, the 1 second duration in the scheme is the longest safe time of the actual measurement of all the flywheels, the uniformity of the program function module is considered, the industrialization is convenient, and the preset duration in the scheme is set to be 1 second.
As shown in fig. 2, another method for maintaining the rotation speed of the satellite reaction flywheel during power-off restart is also provided, which comprises the following steps:
(I) The reaction flywheel is electrified, and a control system is initialized;
(II) the controller detecting the rotational speed of the reaction flywheel;
(III) if the rotational speed of the reaction flywheel is within a preset range, performing step (IV), otherwise performing step (II);
(IV) starting a counter and normally timing, wherein the communication module works normally;
(V) judging whether the communication module receives the target rotating speed signal, if so, executing the step (VIII), otherwise, executing the step (VI);
(VI) judging whether the timing time reaches the preset duration, if so, executing the step (VII), otherwise, executing the step (V);
(VII) the controller starts a power-off restarting rotating speed maintaining function, and takes the current rotating speed as a target rotating speed;
(VIII) the controller performs PI control and outputs a control signal;
and (IX) the motor runs according to the control signal to complete the rotation speed control.
It will be appreciated by those of ordinary skill in the art that implementing all or part of the steps of the methods of the above embodiments may be accomplished by a program that is stored in a computer readable storage medium that, when executed, comprises the steps of the methods of the above embodiments, and that the storage medium may be a ROM/RAM, magnetic disk, optical disk, memory card, etc. Accordingly, the invention also includes a rotational speed maintenance device for a satellite reaction flywheel power-down restart, corresponding to the method of the invention, which device is generally represented in the form of functional modules corresponding to the steps of the method. The device comprises:
The initialization module is configured after the reaction flywheel is electrified, and the system is initialized and self-checking is started;
the judging module is configured with a self-checking period to judge whether the reaction flywheel receives a correct remote control instruction, if so, the flywheel power-off restarting rotating speed maintaining function is closed and the response module is executed, and if not, the flywheel power-off restarting rotating speed maintaining function is opened and the rotating speed setting module is executed;
the rotating speed setting module is configured to read the current rotating speed, then set the current rotating speed as a target rotating speed, enter a rotating speed mode, and stabilize the rotating speed of the reaction flywheel at the current rotating speed so as to realize the stabilization of the satellite attitude;
And the response module is configured to enable the reaction flywheel to respond to the correct remote control command.
Preferably, in the initialization module, the system initialization comprises clock initialization, IO initialization, serial port initialization, CAN initialization, timer initialization and ADC/DAC initialization, wherein the clock is used for providing signals with certain frequency for the controller chip to enable the controller chip to work according to a fixed rhythm, the timer is used for providing timing, the IO initialization is used for initializing the pin function of the controller chip, the serial port and the CAN are used for communicating the controller chip with an external control device, the ADC acquires motor current and feeds the motor current back to the controller chip, and the controller chip outputs the current to the motor through the DAC.
Preferably, in the rotation speed setting module, the current rotation speed is stable in the rotation speed range of the flywheel control, otherwise, the rotation speed signal is unstable, if the rotation speed signal is stable, the reaction flywheel enters a rotation speed mode, if the rotation speed signal is unstable, the current is supplied to the motor 0 by default, and the reaction flywheel enters a sliding mode.
Preferably, in the rotation speed setting module, a timer starts to count after entering the working mode, a flywheel power-off restarting rotation speed maintaining function is entered after a preset time period is reached, a current rotation speed value is read first, then the current rotation speed is set as a target rotation speed, the target rotation speed enters a rotation speed mode control loop, the rotation speed mode control loop controls the output current of equipment through a PI control method, the rotation speed of the flywheel is stabilized at the current rotation speed, and the preset time period is 1 second.
FIG. 4 is a plot of a reaction flywheel de-energized speed maintenance state test. Wherein,
The first stage is a normal working stage, the target rotating speed is 1000rpm, namely the first stage rotating speed is a gentle line segment, and the speed counting times are 37.
The second stage is a power-off stage, because the power-off cannot test the rotation speed of the flywheel, the flywheel is in a sliding stage, namely, the rotation speed is in a straight-line falling stage, the rotation speed counting number is 0 (the rotation speed is 927.24rpm when the power is on, and the power-off time is 4.7 s).
The third stage is the re-electrifying stage, the control system carries out self-checking again, the flywheel is in the sliding stage continuously, namely the inclined line segment with the slow rotation speed decreasing, and the rotation speed counting times are 11.
The fourth stage is a rotation speed maintaining stage, wherein the flywheel maintains the rotation speed by taking the current rotation speed as the target rotation speed (912.71 rpm in the figure), namely the second section of rotation speed is a gentle line segment, and the rotation speed counting times are 163.
FIG. 5 is a plot of a reactive flywheel power-off receive speed control signal test line. Wherein,
The first stage is a normal working stage, the target rotating speed is 1000rpm, namely the first stage rotating speed is a gentle line segment, and the speed counting times are 13.
The second stage is a power-off stage, because the power-off cannot test the rotation speed of the flywheel, the flywheel is in a sliding stage, namely, the rotation speed is in a straight-line falling stage, the rotation speed counting number is 0 (the rotation speed is 905.95rpm when the power is on, and the power-off time is 6.1 s).
And the third stage is a re-electrifying stage, the control system receives the control signal again, the flywheel continues to control the rotating speed by taking 1000rpm as the target rotating speed, namely, the rotating speed is rapidly increased by a diagonal segment, and the rotating speed counting times are 11.
The fourth stage is a rotation speed maintaining stage, wherein the flywheel maintains the rotation speed by taking 1000rpm as the target rotation speed, namely the second section of rotation speed is a smooth line segment, and the rotation speed counting times are 43.
Wherein, when measuring flywheel rotational speed, the average count interval of controller is about 0.1s.
The beneficial technical effects of the invention are as follows:
1. the method can keep the satellite attitude stable without obtaining a remote control instruction value.
2. The method is far shorter than other technical schemes, and the stable control of the satellite attitude can be completed within 3s after the flywheel is electrified again.
The present invention is not limited to the preferred embodiments, but can be modified in any way according to the technical principles of the present invention, and all such modifications, equivalent variations and modifications are included in the scope of the present invention.