Skip to content

Commit

Permalink
dummy observe fn
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird committed Jan 6, 2023
1 parent d9de8a8 commit 50e72dd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/self_driving_lab_demo/utils/observe.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,34 @@ def liquid_observe_sensor_data(
return sensor_data


def liquid_dummy_observe_sensor_data(R, Y, B, **kwargs):
# return a fixed set of values (no interaction with real hardware)
return {
"utc_timestamp": 1671675884,
"background": {
"ch470": 21288,
"ch410": 5835,
"ch440": 65535,
"ch510": 21632,
"ch550": 6760,
"ch670": 8970,
"ch620": 2901,
"ch583": 2057,
},
"ch470": 21288,
"ch410": 5835,
"ch440": 65535,
"sd_card_ready": False,
"ch510": 21632,
"ch550": 6760,
"ch670": 8970,
"utc_time_str": "2022-12-22 02:24:44",
"onboard_temperature_K": 297.8537,
"ch620": 2901,
"ch583": 2057,
}


def pico_server_observe_sensor_data(
R: int,
G: int,
Expand Down

0 comments on commit 50e72dd

Please sign in to comment.