servo controller error - Resolved

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

servo controller error - Resolved

Post by mikn »

When I add Servocontroller and try to compile the project, I get these errors:
...
D:\all.c: At top level:
D:\all.c:1455: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
D:\all.c:1676: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
I don't init Servocontroller or do anything else, just add it to the dashboard and compile.
When I remove it from the project, it compiles fine.
What's wrong?
FC 6.1.3.2 (18.02.2016)

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: servo controller error

Post by LeighM »

Hi,

You would need to add at least an "Initialise" macro into the flowchart.
Without any Servo macros being referenced in the project, Flowcode is not including the necessary header code for the component.

Regards,
Leigh

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: servo controller error

Post by mikn »

Thank you, everything is ok now after Initialize added.
FC 6.1.3.2 (18.02.2016)

Post Reply