Implement ACS Command Handlers (PickOn, PickOff, Charge), Manual Mode Safety, and Map UI Commands
This commit is contained in:
@@ -85,6 +85,12 @@ namespace Project.ViewForm
|
||||
if (radpbs0.Checked) ss = arDev.Narumi.Sensor.PBSOn;
|
||||
PUB.AGV.AGVMoveManual(arDev.Narumi.ManulOpt.BS, spd, ss);
|
||||
PUB.sm.SetNewStep(StateMachine.eSMStep.IDLE);
|
||||
|
||||
// [Manual Safety] Clear previous auto-task state
|
||||
PUB._virtualAGV.TargetNode = null;
|
||||
PUB._virtualAGV.CurrentPath = null;
|
||||
PUB.NextWorkCmd = ENIGProtocol.AGVCommandHE.Stop; // Clear ACS Command
|
||||
PUB.sm.ClearRunStep(); // Clear RunStep sequence
|
||||
}
|
||||
|
||||
private void arLabel2_Click(object sender, EventArgs e)
|
||||
@@ -108,6 +114,12 @@ namespace Project.ViewForm
|
||||
if (radpbs0.Checked) ss = arDev.Narumi.Sensor.PBSOn;
|
||||
PUB.AGV.AGVMoveManual(arDev.Narumi.ManulOpt.FS, spd, ss);
|
||||
PUB.sm.SetNewStep(StateMachine.eSMStep.IDLE);
|
||||
|
||||
// [Manual Safety] Clear previous auto-task state
|
||||
PUB._virtualAGV.TargetNode = null;
|
||||
PUB._virtualAGV.CurrentPath = null;
|
||||
PUB.NextWorkCmd = ENIGProtocol.AGVCommandHE.Stop;
|
||||
PUB.sm.ClearRunStep();
|
||||
}
|
||||
|
||||
private void arLabel3_Click(object sender, EventArgs e)
|
||||
@@ -131,6 +143,12 @@ namespace Project.ViewForm
|
||||
if (radpbs0.Checked) ss = arDev.Narumi.Sensor.PBSOn;
|
||||
PUB.AGV.AGVMoveManual(arDev.Narumi.ManulOpt.RT, spd, ss);
|
||||
PUB.sm.SetNewStep(StateMachine.eSMStep.IDLE);
|
||||
|
||||
// [Manual Safety] Clear previous auto-task state
|
||||
PUB._virtualAGV.TargetNode = null;
|
||||
PUB._virtualAGV.CurrentPath = null;
|
||||
PUB.NextWorkCmd = ENIGProtocol.AGVCommandHE.Stop;
|
||||
PUB.sm.ClearRunStep();
|
||||
}
|
||||
|
||||
private void arLabel4_Click(object sender, EventArgs e)
|
||||
@@ -154,6 +172,12 @@ namespace Project.ViewForm
|
||||
if (radpbs0.Checked) ss = arDev.Narumi.Sensor.PBSOn;
|
||||
PUB.AGV.AGVMoveManual(arDev.Narumi.ManulOpt.LT, spd, ss);
|
||||
PUB.sm.SetNewStep(StateMachine.eSMStep.IDLE);
|
||||
|
||||
// [Manual Safety] Clear previous auto-task state
|
||||
PUB._virtualAGV.TargetNode = null;
|
||||
PUB._virtualAGV.CurrentPath = null;
|
||||
PUB.NextWorkCmd = ENIGProtocol.AGVCommandHE.Stop;
|
||||
PUB.sm.ClearRunStep();
|
||||
}
|
||||
|
||||
private void arLabel11_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user