GTuner.functions()
5 posts
• Page 1 of 1
GTuner.functions()
Hey devs, could you let us know which gpc functions are currently implemented in gcv? E.g. I know that Gtuner.get_actual() works but Gtuner.event_active() doesn’t.
Also, is there any chance to pass a variable back and forth between the two or is gcv_read() the only option?
Also, is there any chance to pass a variable back and forth between the two or is gcv_read() the only option?
-
eom85 - First Sergeant
- Posts: 65
- Joined: Wed Jun 21, 2017 7:51 pm
Re: GTuner.functions()
event_ like functions are not available in .py , you have to implement them yourself.
same as when working with keyboard or mouse, there as also no event_ functions available directly via gtuner.
You can pass values back and forth in different ways, they ways I know:
.py -> .gpc : gcv_read()
.gpc -> .py : via set_val using some GPC designator of your choice and using gtuner.get_val to read it
.gpc -> .py : gpc:printf("GCMD:ComputerVision.PY:......) and py:gtuner.gpc_string()
see https://github.com/J2Kbr/GtunerIV/issues/406
same as when working with keyboard or mouse, there as also no event_ functions available directly via gtuner.
You can pass values back and forth in different ways, they ways I know:
.py -> .gpc : gcv_read()
.gpc -> .py : via set_val using some GPC designator of your choice and using gtuner.get_val to read it
.gpc -> .py : gpc:printf("GCMD:ComputerVision.PY:......) and py:gtuner.gpc_string()
see https://github.com/J2Kbr/GtunerIV/issues/406
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: GTuner.functions()
Exactly what I was looking for! Thanks a lot mate!
-
eom85 - First Sergeant
- Posts: 65
- Joined: Wed Jun 21, 2017 7:51 pm
Re: GTuner.functions()
Hello - I am looking for a more robust list of Gtuner functions that i can use inside of the python script.
I am looking to use teh gtuner to write modules
but I want the python script to fire off the modules based on various things.
Also It would be nice to not have to use the console output or reading of buttons as I send a lot of data from the gtuner to the python to do calculations. If i use the console output on the gtuner and read it in the python script it either grabs the wrong value or duplicates it when I try to read multiple variables.
Any help on this would be nice.
Actual documentation on what all i can call using gtuner() in the python script would be a godensd.
Thank you for all the hard work you do!
I am looking to use teh gtuner to write modules
but I want the python script to fire off the modules based on various things.
Also It would be nice to not have to use the console output or reading of buttons as I send a lot of data from the gtuner to the python to do calculations. If i use the console output on the gtuner and read it in the python script it either grabs the wrong value or duplicates it when I try to read multiple variables.
Any help on this would be nice.
Actual documentation on what all i can call using gtuner() in the python script would be a godensd.
Thank you for all the hard work you do!
-
brianomatic - Private First Class
- Posts: 3
- Joined: Mon Jul 12, 2021 12:38 pm
Re: GTuner.functions()
brianomatic wrote:I send a lot of data from the gtuner to the python to do calculations. If i use the console output on the gtuner and read it in the python script it either grabs the wrong value or duplicates it when I try to read multiple variables.
Send all the variables at once and split the string.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
5 posts
• Page 1 of 1
Return to Gtuner Computer Vision
Who is online
Users browsing this forum: No registered users and 28 guests