Looking for C# sample

General discussion of using Roboclaw motor controllers
Post Reply
gannicus
Posts: 28
Joined: Sat Aug 06, 2016 4:33 am
Looking for C# sample

Post by gannicus »

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
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Looking for C# sample

Post by Basicmicro Support »

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.
gannicus
Posts: 28
Joined: Sat Aug 06, 2016 4:33 am
Re: Looking for C# sample

Post by gannicus »

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.
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.

Can you please tell me what's the step to initiate the motor and control the motor go forward & backward etc?
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Looking for C# sample

Post by Basicmicro Support »

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.
kwmachine
Posts: 3
Joined: Wed Sep 21, 2016 11:36 am
Re: Looking for C# sample

Post by kwmachine »

Any progress on the sample? Even a "hello world" (e.g., connect and get version) would be helpful.
kwmachine
Posts: 3
Joined: Wed Sep 21, 2016 11:36 am
Re: Looking for C# sample

Post by kwmachine »

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.
kwmachine
Posts: 3
Joined: Wed Sep 21, 2016 11:36 am
Re: Looking for C# sample

Post by kwmachine »

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

Post Reply