syntax = "proto3"; package cmvr.config; enum PX6AXGen3PollingReadMode { PX_6AX_GEN3_POLLING_READ_MODE_DISTRIBUTED_AND_RESULTANT_FORCE = 0; PX_6AX_GEN3_POLLING_READ_MODE_DISTRIBUTED_FORCE = 1; PX_6AX_GEN3_POLLING_READ_MODE_RESULTANT_FORCE = 2; } message PX6AXGen3{ reserved 10, 15, 16; reserved "tactile_finger", "tactile_region"; string id = 1; string serial_port = 2; string sensor_model = 3; int32 module_id = 4; int32 baud_rate = 5; int32 distributed_length = 6; int32 resultant_length = 7; int32 poll_interval_ms = 8; bool auto_calibrate = 9; int32 response_timeout_ms = 11; int32 tactile_rows = 12; int32 tactile_cols = 13; int32 response_header_bytes = 14; string sensor_name = 17; PX6AXGen3PollingReadMode polling_read_mode = 18; // Maximum age since the sample's request was sent. 0 uses 50 ms. // Independent of response_timeout_ms: stale cached data must fail promptly. int32 max_sample_age_ms = 19; } message ZeroSimTouch { string id = 1; } message PX6AXGenXCan { string id = 1; int32 channel_id = 2; // Unset uses the default standard CAN force frame ID, 0x600. optional uint32 force_can_id = 3; // Maximum age of the latest received sample. 0 uses 300 ms. int32 max_sample_age_ms = 4; } message TouchDeviceConfig { string id = 1; oneof backend { PX6AXGen3 px_6ax_gen3 = 10; ZeroSimTouch zero_sim = 11; PX6AXGenXCan px_6ax_genx_can = 12; } } message TouchConfig { repeated TouchDeviceConfig touches = 1; } message TouchRootConfig { TouchConfig touch = 1; }