feat: Add additional properties to Turtle state for enhanced status reporting
This commit is contained in:
@@ -486,6 +486,8 @@ export class Turtle extends EventEmitter {
|
|||||||
homePosition: this._homePosition,
|
homePosition: this._homePosition,
|
||||||
facing: this._facing,
|
facing: this._facing,
|
||||||
fuel: this._fuel,
|
fuel: this._fuel,
|
||||||
|
fuelLimit: this._fuelLimit,
|
||||||
|
selectedSlot: this._selectedSlot,
|
||||||
inventory: this._inventory,
|
inventory: this._inventory,
|
||||||
inventoryCount: Array.isArray(this._inventory)
|
inventoryCount: Array.isArray(this._inventory)
|
||||||
? this._inventory.length
|
? this._inventory.length
|
||||||
@@ -496,6 +498,9 @@ export class Turtle extends EventEmitter {
|
|||||||
connected: this.connected,
|
connected: this.connected,
|
||||||
lastUpdate: this.lastUpdate,
|
lastUpdate: this.lastUpdate,
|
||||||
label: this._label,
|
label: this._label,
|
||||||
|
peripherals: this._peripherals,
|
||||||
|
error: this._error,
|
||||||
|
warning: this._warning,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user