Skip to content

Commit

Permalink
Issue #1127: swap calliope motors in sim, fix visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
bjost2s committed May 1, 2023
1 parent 7519e72 commit d184efe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ define(["require", "exports", "robot.sensors", "./robot.actuators", "robot.base.
var myActuatorPins = [];
var myDrawableMotors = [
{
cx: 362,
cx: 562,
cy: 720,
theta: 0,
color: 'grey',
Expand All @@ -56,7 +56,7 @@ define(["require", "exports", "robot.sensors", "./robot.actuators", "robot.base.
timeout: 0,
},
{
cx: 562,
cx: 362,
cy: 720,
theta: 0,
color: 'grey',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class RobotCalliope extends RobotBaseStationary {
let myActuatorPins: DrawableTouchKey[] = [];
let myDrawableMotors: DrawableMotor[] = [
{
cx: 362,
cx: 562,
cy: 720,
theta: 0,
color: 'grey',
Expand All @@ -57,7 +57,7 @@ export default class RobotCalliope extends RobotBaseStationary {
timeout: 0,
},
{
cx: 562, //-45, // center x
cx: 362, //-45, // center x
cy: 720, // center y
theta: 0,
color: 'grey',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import de.fhg.iais.roberta.bean.UsedHardwareBean;
import de.fhg.iais.roberta.components.Project;
import de.fhg.iais.roberta.visitor.codegen.MbedStackMachineVisitor;
import de.fhg.iais.roberta.visitor.codegen.CalliopeStackMachineVisitor;
import de.fhg.iais.roberta.visitor.lang.codegen.AbstractStackMachineVisitor;
import de.fhg.iais.roberta.worker.AbstractStackMachineGeneratorWorker;

public class CalliopeStackMachineGeneratorWorker extends AbstractStackMachineGeneratorWorker {
@Override
protected AbstractStackMachineVisitor getVisitor(Project project, UsedHardwareBean usedHardwareBean) {
return new MbedStackMachineVisitor(project.getConfigurationAst(), project.getProgramAst().getTree());
return new CalliopeStackMachineVisitor(project.getConfigurationAst(), project.getProgramAst().getTree());
}
}

0 comments on commit d184efe

Please sign in to comment.