|
using NKH.MindSqualls;
namespace Basic_Control_Demo
{
//This class holds variables that need to be used in
//multiple classes
public class GlobalVariables
{
//This is the main variable used to connect and manage the
//nxt the user wishes to connect with.
public static NxtBrick TheNxt;
//This is used to stop functions running that would cause errors
//as the program is shutting down
public static bool IsClosing = false;
//If an error does occur, this pauses all functions that would
//throw another error while the user decides what to do about the first error.
public static bool Error = false;
//These pair motors (name tells you which) and allows the user to run
//two motors simultaneously without them getting out of sync
public static NxtMotorSync AB;
public static NxtMotorSync AC;
public static NxtMotorSync BC;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.