Click here to Skip to main content
15,895,606 members
Articles / Web Development / ASP.NET

Basic Robot Control using NKH Mindsqualls Libraries

Rate me:
Please Sign up or sign in to vote.
4.69/5 (6 votes)
28 Aug 2010CPOL4 min read 36.6K   1.4K   14  
Demonstration of how to do basic robot remote control via bluetooth using NKH Mindsqualls libraries.
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions