Looking for C# sample
Looking for C# sample
Hi,
I bought 2x60A motor controller, and I downloaded the RoboclawClassLib(c#), I can see Roboclaw.cs and USB.cs, but is there any example how to use these classes? I can only find Arduino example from user guide.
Thanks,
Todd
I bought 2x60A motor controller, and I downloaded the RoboclawClassLib(c#), I can see Roboclaw.cs and USB.cs, but is there any example how to use these classes? I can only find Arduino example from user guide.
Thanks,
Todd
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Looking for C# sample
There are no examples currently for using the Roboclaw C# library. You do need a working knowledge of using a C# dll in a .Net project. If you have specific questions about functions in the library please let me know.
Re: Looking for C# sample
Hi, I'm a .net developer myslef, but without document I can't really figureout how to use the Roboclaw c# library. It would be great if there is any C# library document.acidtech wrote:There are no examples currently for using the Roboclaw C# library. You do need a working knowledge of using a C# dll in a .Net project. If you have specific questions about functions in the library please let me know.
Can you please tell me what's the step to initiate the motor and control the motor go forward & backward etc?
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Looking for C# sample
I wont be able to dig into the library until near the end of this week but I will work up a simple example to initialize the library and run the motor(s). I may not have it ready till Monday though.
Re: Looking for C# sample
Any progress on the sample? Even a "hello world" (e.g., connect and get version) would be helpful.
Re: Looking for C# sample
If I could make a few suggestions:
1) Please go through the library and put a brief explanation of what each method does. Some are obvious, some are less obvious. And it would be great to mention any significant limitations in those brief explanations (e.g., current library only works with one RoboClaw attached to the PC).
2) You must have a test program that you use to verify the library. Sharing that test program would be quite helpful.
3) Even a simple program that opened communications and retrieved the version information would help folks get started.
1) Please go through the library and put a brief explanation of what each method does. Some are obvious, some are less obvious. And it would be great to mention any significant limitations in those brief explanations (e.g., current library only works with one RoboClaw attached to the PC).
2) You must have a test program that you use to verify the library. Sharing that test program would be quite helpful.
3) Even a simple program that opened communications and retrieved the version information would help folks get started.
Re: Looking for C# sample
Here's a simple Visual Studio 2015 C# sample I threw together for a motor with encoder (37mm gearmotor with encoder from BotKits.com).
- Attachments
-
- RoboClawTest01.zip
- (104.08 KiB) Downloaded 668 times