Hi, i need some help at converting some sample function i got to control a Sabertooth 2X25 V2 motor driver.:
http://www.dimensionengineering.com/pro ... rtooth2x25
They have a sample C file that control this driver from a PIC. I have attached their sample file, can someone take a look at it, i don't know C at all so i am completely lost in those sample file. Thanx a lot!
Help with converting a simple C function to flowcode?
Moderator: Benj
Help with converting a simple C function to flowcode?
- Attachments
-
- Sabertooth packetized test.h
- (509 Bytes) Downloaded 230 times
-
- Sabertooth packetized test.c
- (2.42 KiB) Downloaded 236 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Help with converting a simple C function to flowcode?
Hello,
Here is a quick example, I have done the first driveforwards1 macro and some of the code from main to speed up the motors.
Hopefully it should be enough for you to proceed with.
Let us know how your getting on.
Here is a quick example, I have done the first driveforwards1 macro and some of the code from main to speed up the motors.
Hopefully it should be enough for you to proceed with.
Let us know how your getting on.
- Attachments
-
- sabertooth.fcf
- (14.5 KiB) Downloaded 238 times
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel