示例#1
0
        public AxisDirectionModel GetNewDirection(CommandDirection command, CompassDirections direction)
        {
            AxisDirectionModel modelTemp = new AxisDirectionModel();

            modelTemp.compassDirection = GetNewCompassPoint(command, direction);
            modelTemp.axisDirection    = GetNewAxis(modelTemp.compassDirection);
            return(modelTemp);
        }
示例#2
0
        private void SetDirections(CommandDirection letterRL)
        {
            AxisDirectionModel axisDirectModel = new AxisDirectionModel();

            axisDirectModel       = directionObj.GetNewDirection(letterRL, RoverCompassDirection);
            RoverCompassDirection = axisDirectModel.compassDirection;  //N-E-S-W
            AxisOfMotion          = axisDirectModel.axisDirection;
        }