Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ field_float
Function
field_float
examples/Protobuf Example/sensor_simulator.py:75–76 ·
view source on GitHub ↗
(field: int, value: float)
Source
from the content-addressed store, hash-verified
73
74
75
def
field_float(field: int, value: float) -> bytes:
76
return
tag(field, 5) + struct.pack(
"<f"
, value)
77
78
79
def
field_string(field: int, value: str) -> bytes:
Callers
2
encode_vec3
Function · 0.85
make_sensor_frame
Function · 0.85
Calls
1
tag
Function · 0.85
Tested by
no test coverage detected