Skip to content

Commit 43dbffb

Browse files
Merge branch 'guidedTour' of github.com:kipr/Simulator into guidedTour
2 parents 96ec6e4 + c663c7c commit 43dbffb

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/Info/SensorWidget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class SensorWidget extends React.PureComponent<Props, State> {
129129
if (mesh) {
130130
// Both wheels have the mesh ID 'Wheel_primitive0_merged', so use idx
131131
// to distinguish between them.
132-
const idx = props.name === 'motor 0' ? 0 : 1;
132+
const idx = props.name === 'motor 3' ? 1 : 0;
133133
ACTIVE_SPACE.highlight(mesh, idx);
134134
}
135135
}, 1000),
@@ -147,7 +147,7 @@ class SensorWidget extends React.PureComponent<Props, State> {
147147
const mesh = portMeshMap[props.name];
148148
if (mesh) {
149149
window.setTimeout(() => {
150-
const idx = props.name === 'motor 0' ? 0 : 1;
150+
const idx = props.name === 'motor 3' ? 1 : 0;
151151
ACTIVE_SPACE.unhighlight(mesh, idx);
152152
}, 1000);
153153
}

src/components/Layout/OverlayLayout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ export class OverlayLayout extends React.PureComponent<Props & ReduxOverlayLayou
358358
const robotId = Object.keys(robots)[0];
359359
this.props.onNodeChange(robotId, {
360360
...robots[robotId],
361-
origin
361+
origin,
362+
startingOrigin: origin
362363
});
363364
};
364365

src/components/Layout/SideLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ State
205205
this.props.onNodeChange(robotId, {
206206
...robots[robotId],
207207
origin,
208+
startingOrigin: origin
208209
});
209210
};
210211

0 commit comments

Comments
 (0)