@@ -76,12 +76,12 @@ Waypoint* Waypoint::deserialize(const String& serializedWaypoint)
76
76
}
77
77
else
78
78
{
79
- JsonVariant jsonXPos = jsonPayload[" X" ]; /* *< X position [mm]. */
80
- JsonVariant jsonYPos = jsonPayload[" Y" ]; /* *< Y position [mm]. */
81
- JsonVariant jsonOrientation = jsonPayload[" Orientation" ]; /* *< Orientation [mrad]. */
82
- JsonVariant jsonLeft = jsonPayload[" Left" ]; /* *< Left motor speed [steps/s]. */
83
- JsonVariant jsonRight = jsonPayload[" Right" ]; /* *< Right motor speed [steps/s]. */
84
- JsonVariant jsonCenter = jsonPayload[" Center" ]; /* *< Center speed [steps/s]. */
79
+ JsonVariant jsonXPos = jsonPayload[" X" ]; /* X position [mm]. */
80
+ JsonVariant jsonYPos = jsonPayload[" Y" ]; /* Y position [mm]. */
81
+ JsonVariant jsonOrientation = jsonPayload[" Orientation" ]; /* Orientation [mrad]. */
82
+ JsonVariant jsonLeft = jsonPayload[" Left" ]; /* Left motor speed [steps/s]. */
83
+ JsonVariant jsonRight = jsonPayload[" Right" ]; /* Right motor speed [steps/s]. */
84
+ JsonVariant jsonCenter = jsonPayload[" Center" ]; /* Center speed [steps/s]. */
85
85
86
86
if ((false == jsonXPos.isNull ()) && (false == jsonYPos.isNull ()) && (false == jsonOrientation.isNull ()) &&
87
87
(false == jsonLeft.isNull ()) && (false == jsonRight.isNull ()) && (false == jsonCenter.isNull ()))
@@ -105,12 +105,12 @@ void Waypoint::serialize(String& serializedWaypoint) const
105
105
{
106
106
StaticJsonDocument<JSON_DOC_DEFAULT_SIZE> jsonPayload;
107
107
108
- jsonPayload[" X" ] = xPos; /* *< X position [mm]. */
109
- jsonPayload[" Y" ] = yPos; /* *< Y position [mm]. */
110
- jsonPayload[" Orientation" ] = orientation; /* *< Orientation [mrad]. */
111
- jsonPayload[" Left" ] = left; /* *< Left motor speed [steps/s]. */
112
- jsonPayload[" Right" ] = right; /* *< Right motor speed [steps/s]. */
113
- jsonPayload[" Center" ] = center; /* *< Center speed [steps/s]. */
108
+ jsonPayload[" X" ] = xPos; /* X position [mm]. */
109
+ jsonPayload[" Y" ] = yPos; /* Y position [mm]. */
110
+ jsonPayload[" Orientation" ] = orientation; /* Orientation [mrad]. */
111
+ jsonPayload[" Left" ] = left; /* Left motor speed [steps/s]. */
112
+ jsonPayload[" Right" ] = right; /* Right motor speed [steps/s]. */
113
+ jsonPayload[" Center" ] = center; /* Center speed [steps/s]. */
114
114
115
115
size_t jsonBufferSize = measureJson (jsonPayload) + 1U ;
116
116
char jsonBuffer[jsonBufferSize];
0 commit comments