Page 1 of 1

Model 3D et AllCode

Posted: Sun Oct 06, 2019 2:28 pm
by sundgau
Bonjour,

J'aimerai rajouter un model 3D au allcode et qu'il bouge en même temps que lui lors des mouvements.
J'ai regroupé l'ensemble mais le Allcode bouge seul.
GIF.gif
GIF.gif (13.91 KiB) Viewed 12974 times
Comment faire bouger l'ensemble?

Merci d'avance

Bruno

Re: Model 3D et AllCode

Posted: Mon Oct 07, 2019 4:39 pm
by Benj
Bonjour Bruno,

C’est quelque chose pour lequel nous pouvons ajouter un soutien sans trop de problèmes.

Quelle version de Flowcode utilisez-vous et je vais étudier un moyen intéressant de permettre cela.




Hello Bruno,

This is something we can add support for without too much hassle.

Which version of Flowcode are you using and I will investigate a nice way of allowing for this.

Re: Model 3D et AllCode

Posted: Mon Oct 07, 2019 4:48 pm
by Benj
J'ai ajouté une nouvelle propriété au composant dans FCv8 et cela peut être dirigé vers votre groupe contenant le FA et les nouveaux bits montés.
SimProps.jpg
SimProps.jpg (20.21 KiB) Viewed 12945 times
Espérons que cela devrait faire tout ce dont vous avez besoin.



I've added a new property to the component in FCv8 and this can be pointed to your group containing the FA and the new mounted bits.
SimProps.jpg
SimProps.jpg (20.21 KiB) Viewed 12945 times
Hopefully this should do everything you need.

Re: Model 3D et AllCode

Posted: Tue Oct 08, 2019 2:36 pm
by sundgau
Hi Benj,
Sorry for the delay. I only have V7 flowcode. Can you also do the manipulation for this version.
thank you in advance
Bruno

Re: Model 3D et AllCode

Posted: Tue Oct 08, 2019 3:48 pm
by Benj
Hi Bruno,

I'm struggling to get the mod into the v7 component. I'll keep trying but so far it's throwing problems at me.

Re: Model 3D et AllCode

Posted: Tue Oct 08, 2019 4:03 pm
by Benj
I ended up having to build the component with v8 so maybe make a backup of the file first just in case I have broken something fundemental.
FormulaAllCodeP4.fcpx
(308.6 KiB) Downloaded 325 times
The file lives here.

C:\Program Files (x86)\Flowcode 7\components\

Let me know how you get on.

Re: Model 3D et AllCode

Posted: Tue Oct 08, 2019 8:40 pm
by sundgau
Sorry but No "addon mechanics" with the new component on flowcode7!
Screen Shot 10-08-19 at 09.28 PM.PNG
(15.95 KiB) Downloaded 2979 times

Re: Model 3D et AllCode

Posted: Wed Oct 09, 2019 10:19 am
by Benj
Aha sorry I've spotted the problem now. This file should work correctly.
FormulaAllCodeP4.fcpx
(285.55 KiB) Downloaded 319 times

Re: Model 3D et AllCode

Posted: Wed Oct 09, 2019 8:28 pm
by sundgau
Hello Benj and sorry again!
The model has good addon mech but the objects do not follow the Allcode...

Bruno

Re: Model 3D et AllCode

Posted: Thu Oct 10, 2019 10:23 am
by Benj
Thanks for letting me know. It's working for me in v8 so could be down to how you have grouped things. I just selected the FA and everything else I wanted to move with it and grouped them together.

Can you attach your program so I can see your grouping.

Re: Model 3D et AllCode

Posted: Thu Oct 10, 2019 11:48 am
by sundgau
here it is.

Re: Model 3D et AllCode

Posted: Thu Oct 10, 2019 12:21 pm
by Benj
Aha, thanks it's the logo commands that are not working with the group.

For now here's a prog that works :)
Flowcode1_testmodel3d avec allcode.fcfx
(14.24 KiB) Downloaded 297 times
I'll get this fixed but it will probably be tomorrow if that's ok, I'm out of the office today.

Re: Model 3D et AllCode

Posted: Thu Oct 10, 2019 7:22 pm
by sundgau
Yes, I had not tested the right macros!
It works now with all non-logo commands and the result is great. My students can now simulate their robot.
Yes, I had not tested the right macros!

BUT compliation no longer works to generate code C!
Erreurs au cours de la génération du code source C:
Flowcode1_testmodel3d avec allcode.c : 10312 : error : Composant inconnu ou absent: PWM_AudioOut1::Enable
Flowcode1_testmodel3d avec allcode.c : 10314 : error : Composant inconnu ou absent: PWM_AudioOut1::SetDuty10Bit
Flowcode1_testmodel3d avec allcode.c : 10342 : error : Composant inconnu ou absent: PWM_AudioOut1::Disable
Flowcode1_testmodel3d avec allcode.c : 10953 : error : Composant inconnu ou absent: LCD_Backlight::Enable
Flowcode1_testmodel3d avec allcode.c : 10957 : error : Composant inconnu ou absent: LCD_Backlight::Disable
Flowcode1_testmodel3d avec allcode.c : 10962 : error : Composant inconnu ou absent: LCD_Backlight::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11194 : error : Composant inconnu ou absent: PWM_LeftMotorFW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11196 : error : Composant inconnu ou absent: PWM_LeftMotorFW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11204 : error : Composant inconnu ou absent: PWM_LeftMotorBW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11206 : error : Composant inconnu ou absent: PWM_LeftMotorBW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11233 : error : Composant inconnu ou absent: PWM_RightMotorFW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11235 : error : Composant inconnu ou absent: PWM_RightMotorFW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11243 : error : Composant inconnu ou absent: PWM_RightMotorBW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11245 : error : Composant inconnu ou absent: PWM_RightMotorBW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11445 : error : Composant inconnu ou absent: PWM_LeftMotorFW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11447 : error : Composant inconnu ou absent: PWM_LeftMotorFW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11457 : error : Composant inconnu ou absent: PWM_LeftMotorBW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11459 : error : Composant inconnu ou absent: PWM_LeftMotorBW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11491 : error : Composant inconnu ou absent: PWM_RightMotorFW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11493 : error : Composant inconnu ou absent: PWM_RightMotorFW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11503 : error : Composant inconnu ou absent: PWM_RightMotorBW1::Enable
Flowcode1_testmodel3d avec allcode.c : 11505 : error : Composant inconnu ou absent: PWM_RightMotorBW1::SetDuty8Bit
Flowcode1_testmodel3d avec allcode.c : 11830 : error : Composant inconnu ou absent: PWM_LeftMotorBW1::ChangePeriod
Bruno

Re: Model 3D et AllCode

Posted: Fri Oct 11, 2019 12:09 pm
by Benj
Hello,

Many thanks for letting me know. I have now added the functionality to the logo movement functions so hopefully these should work well now too.

I have looked into the compiling issue and beleive this has also been solved for you now.
FormulaAllCodeP4.fcpx
(335.66 KiB) Downloaded 249 times
Let me know how you get on.

Re: Model 3D et AllCode

Posted: Mon Oct 14, 2019 10:39 am
by sundgau
Great, everything works fine on flowcode7.
Thank you very much for all this work.
Bruno