aes70
Version:
A controller library for the AES70 protocol.
50 lines (47 loc) • 1.32 kB
JavaScript
import { OcaFloat32 } from '../../OCP1/OcaFloat32.js';
import { make_control_class } from '../make_control_class.js';
import { OcaBasicActuator } from './OcaBasicActuator.js';
/**
* 32-bit IEEE floating-point actuator
* @extends OcaBasicActuator
* @class OcaFloat32Actuator
*/
export const OcaFloat32Actuator = make_control_class(
'OcaFloat32Actuator',
5,
'\u0001\u0001\u0001\u0001\n',
3,
OcaBasicActuator,
[
['GetSetting', 5, 1, [], [OcaFloat32, OcaFloat32, OcaFloat32]],
['SetSetting', 5, 2, [OcaFloat32], []],
],
[['Setting', [OcaFloat32], 5, 1, false, false, null]],
[]
);
/**
* Gets the value and limits of the **Setting** property.
* The return values of this method are
*
* - Setting of type ``number``
* - minSetting of type ``number``
* - maxSetting of type ``number``
*
* @method OcaFloat32Actuator#GetSetting
* @returns {Promise<Arguments<number,number,number>>}
*/
/**
* Sets the **Setting** property.
*
* @method OcaFloat32Actuator#SetSetting
* @param {number} Setting
*
* @returns {Promise<void>}
*/
/**
* This event is emitted when the property ``Setting`` changes in the remote object.
* The property ``Setting`` is described in the AES70 standard as follows.
* Float32 setting.
*
* @member {PropertyEvent<number>} OcaFloat32Actuator#OnSettingChanged
*/