Cabri G2 EPM

Working on a instrument project or just finished a project? Show it to others!

Moderators: russ, Ralph

Message
Author
User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Cabri G2 EPM

#11 Post by Sling »

Corjan you have been sneaky. How long have they been in the API. You must tell us when these cool new features hit so we can try and break them for you. 😂 Only kidding. Can’t wait to try out the interpolate function that should simplify the code bit.

Thanks

Tony

SimPassion
Posts: 5338
Joined: Thu Jul 27, 2017 12:22 am

Re: Cabri G2 EPM

#12 Post by SimPassion »

Already seen this part on the Wiki, I don't talked about it, I persuade myself that every one was going to the API page in the wiki on a regular basis

I'm on these pages day to day because while coding I still find times where I don't remember the way on how to do things, even if already having used the statements and syntax
For this, the wiki is very helpful to bring some clarifications

Gilles
Last edited by SimPassion on Tue May 05, 2020 5:47 pm, edited 1 time in total.

User avatar
Corjan
Posts: 2939
Joined: Thu Nov 19, 2015 9:04 am

Re: Cabri G2 EPM

#13 Post by Corjan »

Haha, wasn't intentionally :)
But yeah, was about time to add something like this. I see a lot of ifelse structures everywhere.

Corjan

User avatar
HughB
Posts: 64
Joined: Sun Feb 23, 2020 9:01 pm

Re: Cabri G2 EPM

#14 Post by HughB »

Quick demo vid of the G2 MLI. Still a work in progress but its getting there..

User avatar
Ralph
Posts: 7918
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Cabri G2 EPM

#15 Post by Ralph »

I've made one before, it's used by one of our Professional customers.
cabriepm.png

User avatar
HughB
Posts: 64
Joined: Sun Feb 23, 2020 9:01 pm

Re: Cabri G2 EPM

#16 Post by HughB »

Nice job. Is that all canvas drawn or did you use some png files too?

SimPassion
Posts: 5338
Joined: Thu Jul 27, 2017 12:22 am

Re: Cabri G2 EPM

#17 Post by SimPassion »

Just an advice @HughB

you should update your previous post with YT link
and place the video identifier between the two Youtube tags, this is how it works on these forums :

6xdQtUlvdoA to be place between the two tags below
[youtube][/youtube]

Nice work indeed, I guess yours is a full Canvas work ?

Gilles

User avatar
Ralph
Posts: 7918
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Cabri G2 EPM

#18 Post by Ralph »

Mine is full PNG, except for the dimming. It was made in V2, so there was no canvas. When I converted it to V3, I added canvas to dim the screen. But it certainly better if you do it all with canvas. Is that your goal?

User avatar
HughB
Posts: 64
Joined: Sun Feb 23, 2020 9:01 pm

Re: Cabri G2 EPM

#19 Post by HughB »

@SimPassion Thanks for the tip. I wondered why it wasnt showing the first frame.
@Ralph Some parts like the fuel guage, batt guage, warning colour boxes are canvas drawn and the needles are png's. Eventually when i go over it to bring it up to 3.7 spec (for the non linear needles) i will change as much as i can to canvas. Gotta get my head round drawing needle shapes and arcs first :D

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Cabri G2 EPM

#20 Post by Sling »

You can do all of that with canvas if you wish. Take a look at this instrument I did when canvas first came out. It’s all canvas other than png’s for the instrument surround and panel background. It also uses normal text rather than canvas text which was not available on canvas back then but is now. You can even use png’s within canvas now.


Post Reply