From 5c36b30d11fe4103728a298a646dad5fc578ce67 Mon Sep 17 00:00:00 2001 From: Benji Rewis Date: Mon, 27 Nov 2023 20:04:44 +0000 Subject: [PATCH 1/2] fix code samples --- codesamples/apis.json | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/codesamples/apis.json b/codesamples/apis.json index b496a511b..6b771ea64 100644 --- a/codesamples/apis.json +++ b/codesamples/apis.json @@ -2,28 +2,43 @@ "base": { "client": "BaseClient", "func": "is_moving", - "args": [] + "args": [] }, "camera": { "client": "CameraClient", "func": "get_image", - "args": [ "std::string(\"image/png\")" ], - "comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary." + "args": [ "std::string(\"image/png\")" ], + "comment": "Note that the supplied MIME type is just a placeholder. Please update as necessary." }, "encoder": { "client": "EncoderClient", "func": "get_properties", - "args": [] + "args": [] }, "motion": { "client": "MotionClient", "func": "get_pose", - "args": ["{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}", "", "{}", "nullptr"] + "args": ["{{\"rdk\", \"component\", \"fake\"}, \"\", \"component\"}", "", "{}", "nullptr"], "comment": "Update with correct component name, destination frame, supplemental transforms, and extra params" }, "motor": { "client": "MotorClient", "func": "is_moving", "args": [] + }, + "movement_sensor": { + "client": "MovementSensorClient", + "func": "get_linear_velocity", + "args: [] + }, + "power_sensor": { + "client": "PowerSensorClient", + "func": "get_voltage", + "args: [] + }, + "sensor": { + "client": "SensorClient", + "func": "get_readings", + "args: [] } } From db0ad12fbca9fd6b37a24a62ec7c54caa3686a3d Mon Sep 17 00:00:00 2001 From: Benji Rewis Date: Mon, 27 Nov 2023 20:06:26 +0000 Subject: [PATCH 2/2] typo --- codesamples/apis.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codesamples/apis.json b/codesamples/apis.json index 6b771ea64..5babe1fd8 100644 --- a/codesamples/apis.json +++ b/codesamples/apis.json @@ -29,16 +29,16 @@ "movement_sensor": { "client": "MovementSensorClient", "func": "get_linear_velocity", - "args: [] + "args": [] }, "power_sensor": { "client": "PowerSensorClient", "func": "get_voltage", - "args: [] + "args": [] }, "sensor": { "client": "SensorClient", "func": "get_readings", - "args: [] + "args": [] } }