MCPcopy 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
75def field_float(field: int, value: float) -> bytes:
76 return tag(field, 5) + struct.pack("<f", value)
77
78
79def field_string(field: int, value: str) -> bytes:

Callers 2

encode_vec3Function · 0.85
make_sensor_frameFunction · 0.85

Calls 1

tagFunction · 0.85

Tested by

no test coverage detected