Matlab Function codes of the macros called in scripts

For Formula AllCode users to discuss projects, programs, and any other issues related to the Formula AllCode robotics platform.

Moderators: Benj, Mods

vivek26
Posts: 2
Joined: Fri Jun 09, 2017 10:58 am
Contact:

Matlab Function codes of the macros called in scripts

Postby vivek26 » Fri Jun 09, 2017 11:10 am

Hi there,
I need to know how exactly the commands like Forwards , SetMotors work. i.e in the Matlab script of these functions there are statements of fwrite which i see are calling again to some another macro listed by numbers like 2,3,4,5etc. in the script.
If it is possible could you please upload the macros details.
I require to modify and know how exactly things are so that i can utilize the maximum out of it.
Thanks!!!

User avatar
Benj
Matrix Staff
Posts: 14130
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4325 times
Been thanked: 4070 times
Contact:

Re: Matlab Function codes of the macros called in scripts

Postby Benj » Tue Jun 13, 2017 12:19 pm

Hello,

The Formula AllCode works in binary mode and string mode. The Matlab scripts are accessing the binary mode to help speed up communications.

This document contains the overview of the binary and string modes and should help you to get the right command numbers.

Command API.xlsx
(18.58 KiB) Downloaded 225 times


Commands are always sent in the following format: Component ID, Function Index, Parameters, Returns