Help with converting a simple C function to flowcode?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Speedy2k
Posts: 91
Joined: Mon Aug 06, 2012 5:04 am
Has thanked: 2 times

Help with converting a simple C function to flowcode?

Post by Speedy2k »

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!
Attachments
Sabertooth packetized test.h
(509 Bytes) Downloaded 230 times
Sabertooth packetized test.c
(2.42 KiB) Downloaded 236 times

User avatar
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?

Post by Benj »

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.
Attachments
sabertooth.fcf
(14.5 KiB) Downloaded 238 times

Post Reply