123456789101112131415161718192021222324252627282930 |
- using StageController.M3H;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace StageController
- {
- public class CommandResetPosition : CommandBase
- {
- private M3HAxisType _axis;
- string _head = "@R";
- public CommandResetPosition(M3HAxisType axis)
- {
- _axis = axis;
- }
- public override string Make()
- {
- return _head + Enum.GetName(typeof(M3HAxisType), _axis) + "!";
- }
- public override bool Parse(string response)
- {
- return response == Make();
- }
- }
- }
|