import struct from serde import Model, fields from opssat_tmtc.common import EXPERIMENT_APID, UniqueId, make_unique_id class CameraParameters(Model): R: fields.Int() G: fields.Int() B: fields.Int() N: fields.Int() P: fields.Bool() E: fields.Int() W: fields.Int() def serialize_for_uplink(self) -> bytearray: return self.to_json().encode("utf-8")