mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
update Readme (autostart code)
This commit is contained in:
parent
ae9761bd11
commit
1318bbc8a8
@ -564,7 +564,7 @@ from pydase import DataService, Server
|
|||||||
class SensorService(DataService):
|
class SensorService(DataService):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.readout_frequency = 1.0
|
self.readout_frequency = 1.0
|
||||||
self._autostart_tasks = {"read_sensor_data": ()} # args passed to the function go there
|
self._autostart_tasks["read_sensor_data"] = () # args passed to the function go there
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
def _process_data(self, data: ...) -> None:
|
def _process_data(self, data: ...) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user