I am a pretty inexperienced programmer and this is my first endeavor into visual C#, which is most likely the reason that I am having trouble. I did, however, spend several hours making an effort toward not asking an incredibly stupid question. So, I hope that my time has paid off…
I’m interested in manipulating the MaestroExample code in the SDK for a robotics project, in which I will be setting the target of several servos based on keystroke input. So far I’m following the code behind the example without much trouble. The major source of confusion for me is that I’m not sure where to find the actions for the GUI elements. I see that these elements are declared in the MainWindow, but I can’t see where they are linked to actions.
In particular, the ActivateCheckBox definition is in the MainWindow.Designer.cs file, but where would I find the code that causes the servo response when it is run?
I see in another post that this command is used to set the target:
One of the prerequisites for this command is given:
That’s where I’m having my problem. I don’t know where to see the code in MaestroExample. I’m sure I’m just lost in the unfamiliarities of C# and USB API code (I have a copy of Jan Axelson’s USB Complete on its way to help with that), and so it would be immensely appreciated if someone could get me pointed in the right direction.