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,
|
||||
facing: this._facing,
|
||||
fuel: this._fuel,
|
||||
fuelLimit: this._fuelLimit,
|
||||
selectedSlot: this._selectedSlot,
|
||||
inventory: this._inventory,
|
||||
inventoryCount: Array.isArray(this._inventory)
|
||||
? this._inventory.length
|
||||
@@ -496,6 +498,9 @@ export class Turtle extends EventEmitter {
|
||||
connected: this.connected,
|
||||
lastUpdate: this.lastUpdate,
|
||||
label: this._label,
|
||||
peripherals: this._peripherals,
|
||||
error: this._error,
|
||||
warning: this._warning,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user