mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-07 23:45:10 +00:00
Add Device MockSolenoidValve
This commit is contained in:
41
unilabos/registry/devices/MockSolenoidValve.yaml
Normal file
41
unilabos/registry/devices/MockSolenoidValve.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
MockSolenoidValve:
|
||||
description: Mock Solenoid Valve Device
|
||||
class:
|
||||
module: unilabos.devices.Mock.MockSolenoidValve.MockSolenoidValve:MockSolenoidValve
|
||||
type: python
|
||||
status_types:
|
||||
status: String
|
||||
valve_status: String
|
||||
action_value_mappings:
|
||||
set_valve_status:
|
||||
type: SendCmd
|
||||
goal:
|
||||
command: status
|
||||
feedback: {}
|
||||
result:
|
||||
success: success
|
||||
open_valve:
|
||||
type: SendCmd
|
||||
goal: {}
|
||||
feedback: {}
|
||||
result:
|
||||
success: success
|
||||
close_valve:
|
||||
type: SendCmd
|
||||
goal: {}
|
||||
feedback: {}
|
||||
result:
|
||||
success: success
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
description: Current status of the valve
|
||||
valve_status:
|
||||
type: string
|
||||
description: Valve status (Open/Closed)
|
||||
required:
|
||||
- status
|
||||
- valve_status
|
||||
additionalProperties: false
|
||||
Reference in New Issue
Block a user