Unlock instant, AI-driven research and patent intelligence for your innovation.

Python automatic test script writing method for spacecraft attitude and orbit control software

An automatic test script, software testing technology, applied in software testing/debugging, instrumentation, error detection/correction, etc., can solve problems such as heavy workload, low efficiency, and repeated work, to improve efficiency and quality, and promote universal Develop and improve the effect of test asset reuse

Pending Publication Date: 2021-10-15
BEIJING INST OF CONTROL ENG
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This kind of manual testing has a lot of workload, repeated work, and low efficiency.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Python automatic test script writing method for spacecraft attitude and orbit control software
  • Python automatic test script writing method for spacecraft attitude and orbit control software

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0081] Example 1: A fixed remote control command "transfer to normal mode" in the command library, written in Python language as follows:

[0082] def send command to normal mode ():

[0083] TC=[AB06,0001,0002,0003,0004,0005,0006]; Note: command content

[0084] send(TC);

example 2

[0085] Example 2: Interpreting a rule in the rule base for checking the range of telemetry difference, the Python language is written as follows:

[0086] def Two telemetry difference range check(TM_var1,TM_var2,Offset):

[0087] Note: TM_var1 a telemetry variable 1

[0088] Note: TM_var2 a telemetry variable 2

[0089] Note: Offset The deviation threshold of the two remote measurements, the default is 2%

[0090] return GeneralCase(two telemetry difference check);

[0091] Check(abs(TM_var1-TM_var2)

[0092] print('Telemetry difference is:', TM_var1-TM_var2);

[0093] return

example 3

[0094] Example 3: To interpret a rule in the rule base for checking the normal operation status, the Python language is written as follows:

[0095] def running status normal check():

[0096] Note: no cutting machine

[0097] Check(cut machine telemetry==0);

[0098] Note: no suspension

[0099] Check(long-term shutdown telemetry==0 and short-term shutdown telemetry==0);

[0100] Note: no warning

[0101] Check (floating point abnormal alarm sign == 0);

[0102] Check(Dimin A warning sign==0and Dimin B warning sign==0);

[0103] Check(gyroscope warning sign==0);

[0104] Check (too sensitive fault warning sign==0);

[0105] Check (attitude out-of-tolerance warning sign == 0);

[0106] Check (jet frequent warning sign == 0);

[0107] return

[0108] The third step is to design the automatic test script writing process framework of the spacecraft attitude and orbit control software:

[0109] (1) start the test;

[0110] (2) Initial state setting, including initial t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Python automatic test script compiling method for spacecraft attitude and orbit control software. The Python automatic test script compiling method comprises the following steps: (1) designing a basic module library for compiling an automatic test script of the spacecraft attitude and orbit control software, wherein the basic module library comprises an initial state setting library, a remote control instruction library, a fault setting library, an interpretation rule library, a step driving library and a test control library; (2) designing a process framework for compiling an automatic test script of the spacecraft attitude and orbit control software; and (3) compiling basic module libraries and test scripts by using a Python language, and completing the compiling of the test scripts by calling functions of the basic module libraries according to a process framework compiled by the automatic test scripts of the spacecraft attitude and orbit control software. According to the method, a perfect basic module library and a script writing process framework are designed, the efficiency and the quality of test script writing are improved, the universal development of a test environment is promoted, and the reuse of test assets is improved.

Description

technical field [0001] The invention relates to a Python automatic test script writing method for spacecraft attitude and orbit control software, which is mainly used for writing the automatic test script of spacecraft attitude and orbit control software, and belongs to the field of spacecraft attitude and orbit control software testing. Background technique [0002] The task of the spacecraft attitude and orbit control system is to ensure that the spacecraft can accurately operate according to the predetermined attitude and orbit, and complete complex and diverse flight missions. The attitude and orbit control software is the brain of the control system. With the increase in the number and difficulty of space missions, the development of attitude and orbit control software is faced with the current situation of many version iterations and short development cycles, which also brings challenges to the testing of attitude and orbit control software. [0003] In traditional man...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 吴培亚周中泽李光旭王裙余瑜刘潇翔石恒李建平沈扬帆李乐尧曹志威陈志华周艳丽王建花
Owner BEIJING INST OF CONTROL ENG