How to use the capnp-ts.Struct function in capnp-ts

To help you get started, we’ve selected a few capnp-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
CarEvent.prototype.setWarning = function (value) { capnp_ts_1.Struct.setBit(18, value, this); };
  CarEvent.prototype.getUserDisable = function () { return capnp_ts_1.Struct.getBit(19, this); };
  CarEvent.prototype.setUserDisable = function (value) { capnp_ts_1.Struct.setBit(19, value, this); };
  CarEvent.prototype.getSoftDisable = function () { return capnp_ts_1.Struct.getBit(20, this); };
  CarEvent.prototype.setSoftDisable = function (value) { capnp_ts_1.Struct.setBit(20, value, this); };
  CarEvent.prototype.getImmediateDisable = function () { return capnp_ts_1.Struct.getBit(21, this); };
  CarEvent.prototype.setImmediateDisable = function (value) { capnp_ts_1.Struct.setBit(21, value, this); };
  CarEvent.prototype.getPreEnable = function () { return capnp_ts_1.Struct.getBit(22, this); };
  CarEvent.prototype.setPreEnable = function (value) { capnp_ts_1.Struct.setBit(22, value, this); };
  CarEvent.prototype.getPermanent = function () { return capnp_ts_1.Struct.getBit(23, this); };
  CarEvent.prototype.setPermanent = function (value) { capnp_ts_1.Struct.setBit(23, value, this); };
  CarEvent.prototype.toString = function () { return 'CarEvent_' + _super.prototype.toString.call(this); };
  CarEvent.EventName = CarEvent_EventName;
  CarEvent._capnp = { displayName: 'CarEvent', id: '9b1657f34caf3ad3', size: new capnp_ts_1.ObjectSize(8, 0) };
  return CarEvent;
}(capnp_ts_1.Struct));
exports.CarEvent = CarEvent;
var CarState_WheelSpeeds = /** @class */ (function (_super) {
  __extends(CarState_WheelSpeeds, _super);
  function CarState_WheelSpeeds () {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  CarState_WheelSpeeds.prototype.getFl = function () { return capnp_ts_1.Struct.getFloat32(0, this); };
  CarState_WheelSpeeds.prototype.setFl = function (value) { capnp_ts_1.Struct.setFloat32(0, value, this); };
  CarState_WheelSpeeds.prototype.getFr = function () { return capnp_ts_1.Struct.getFloat32(4, this); };
  CarState_WheelSpeeds.prototype.setFr = function (value) { capnp_ts_1.Struct.setFloat32(4, value, this); };
  CarState_WheelSpeeds.prototype.getRl = function () { return capnp_ts_1.Struct.getFloat32(8, this); };
  CarState_WheelSpeeds.prototype.setRl = function (value) { capnp_ts_1.Struct.setFloat32(8, value, this); };
  CarState_WheelSpeeds.prototype.getRr = function () { return capnp_ts_1.Struct.getFloat32(12, this); };
  CarState_WheelSpeeds.prototype.setRr = function (value) { capnp_ts_1.Struct.setFloat32(12, value, this); };
  CarState_WheelSpeeds.prototype.toString = function () { return 'CarState_WheelSpeeds_' + _super.prototype.toString.call(this); };
  CarState_WheelSpeeds._capnp = { displayName: 'WheelSpeeds', id: '991a37a6155935a3', size: new capnp_ts_1.ObjectSize(16, 0) };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.getDirectAccelControl = function () { return capnp_ts_1.Struct.getBit(8, this); };
  CarParams.prototype.setDirectAccelControl = function (value) { capnp_ts_1.Struct.setBit(8, value, this); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.setDirectAccelControl = function (value) { capnp_ts_1.Struct.setBit(8, value, this); };
  CarParams.prototype.getStoppingControl = function () { return capnp_ts_1.Struct.getBit(9, this); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarState.prototype.setSteeringPressed = function (value) { capnp_ts_1.Struct.setBit(66, value, this); };
  CarState.prototype.adoptCruiseState = function (value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(2, this)); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.setStartAccel = function (value) { capnp_ts_1.Struct.setFloat32(56, value, this); };
  CarParams.prototype.getSteerRateCost = function () { return capnp_ts_1.Struct.getFloat32(60, this); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.hasLongitudinalKiBP = function () { return !capnp_ts_1.Struct.isNull(capnp_ts_1.Struct.getPointer(13, this)); };
  CarParams.prototype.initLongitudinalKiBP = function (length) { return capnp_ts_1.Struct.initList(13, capnp.Float32List, length, this); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.disownLongitudinalKiBP = function () { return capnp_ts_1.Struct.disown(this.getLongitudinalKiBP()); };
  CarParams.prototype.getLongitudinalKiBP = function () { return capnp_ts_1.Struct.getList(13, capnp.Float32List, this); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.getSteerRateCost = function () { return capnp_ts_1.Struct.getFloat32(60, this); };
  CarParams.prototype.setSteerRateCost = function (value) { capnp_ts_1.Struct.setFloat32(60, value, this); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.setSteerKpBP = function (value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(15, this)); };
  CarParams.prototype.adoptSteerKpV = function (value) { capnp_ts_1.Struct.adopt(value, capnp_ts_1.Struct.getPointer(16, this)); };
github jfrux / workbench / lib / capnp / car.capnp.js View on Github external
  CarParams.prototype.initSteerKpBP = function (length) { return capnp_ts_1.Struct.initList(15, capnp.Float32List, length, this); };
  CarParams.prototype.setSteerKpBP = function (value) { capnp_ts_1.Struct.copyFrom(value, capnp_ts_1.Struct.getPointer(15, this)); };