00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005
00006 namespace NavigationController {
00007 public class NavigationCommands {
00008 public static readonly NavigationCommand[] cmdArray = {
00009 new NavigationCommand('a', 0, "system controller up, turn on red led"),
00010 new NavigationCommand('b', 1, "error some component has an error, flash red led"),
00011 new NavigationCommand('c', 2, "reset encoder"),
00012 };
00013
00014
00015 public enum commands {
00016 systemControllerUp,
00017 errorFlashLed,
00018 resetEncoderLedOff
00019 }
00020 }
00021
00022 public class NavigationCommand {
00023 public readonly char command = 'a';
00024 public readonly int commandIndex = 0;
00025 public readonly string commandName = "system controller up, turn on red led";
00026
00027 public NavigationCommand(char cmd, int cmdIndex, string cmdName) {
00028 command = cmd;
00029 commandIndex = cmdIndex;
00030 commandName = cmdName;
00031 }
00032 }
00033 }