Is it possible to use existing C-modules as macros? We have a set of modules (for example motor_speed(left,right)) and want to program a mobile robot with Flowcode using this modules.
Thanks...
Wijnand Nijs
Lecturer Digital System Desing
Fontys, the Netherlands
Existing C-modules as macros
- 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: Existing C-modules as macros
Hello
Yes this is possible. Are your current C functions written using BoostC? If not then you may have to port the code across from your compiler into BoostC.
Then if you look inside the Flowcode V3/Examples folder at example TUT_33 then you will see that this uses external C functions. You should then be able to copy the example and get your own C macros working.
Let us know if you have any problems.
Yes this is possible. Are your current C functions written using BoostC? If not then you may have to port the code across from your compiler into BoostC.
Then if you look inside the Flowcode V3/Examples folder at example TUT_33 then you will see that this uses external C functions. You should then be able to copy the example and get your own C macros working.
Let us know if you have any problems.
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
Re: Existing C-modules as macros
Hello,
Thanks for your help, but I am using AVR controllers. Works it the same way for avr-gcc?
Thanks and greetings...
Wijnand Nijs
Thanks for your help, but I am using AVR controllers. Works it the same way for avr-gcc?
Thanks and greetings...
Wijnand Nijs