В «Джеймсе Уэббе» используется ПО на движке JavaScript 20-летней давности

37c676571ff80db02ae15c2ef3ce320d.png

The primary command source in normal operations is the Script Processor Task (SP), which runs scripts written in JavaScript upon receiving a command to do so. The script execution is performed by a JavaScript engine running as separate task that supports ten concurrent JavaScripts running independently of each other. A set of extensions to the JavaScript language have been implemented that provide the interface to SP, which in turn can access ISIM FSW services through the standard task interface ports. Also, to provide communication between independently running Javascript, there are extensions that can set and retrieve the values of shared parameters.

A collection of JavaScripts, stored as ASCII files, make up the Operations Scripts System, discussed in Section 3.7, which provides the capability for automatic operations (see Figure 22). A JavaScript can send a command by communicating to SP, which sends the command packet to the Command Manager. If the command that originated from a JavaScript is an SI function, such as to move a Grating Wheel to a certain position, the command would be routed to the Application Task for that SI. That SI Application Task may generate many commands to the SI hardware to complete the requested operation. These hardware commands are sent via the Command Manager to the bus interface task, either 1553 or SpaceWire, that connects with the SI component being commanded.

Источник, стр. 15

© Habrahabr.ru