FSIO output methods

It's all about the code!
Post Reply
NBytevenom
Posts: 110
Joined: Mon Jul 24, 2017 8:23 pm

FSIO output methods

Post by NBytevenom »

I believe it would be helpful to add in methods as available outputs for FSIO.
I was looking at the two FSIO files, and am having trouble figuring out exactly where the "output" end is.
I was planning on adding in a separate class for handling the FSIO functions. Example, spark cut, fuel cut...

Also, how is the TS interface generated? I've seen the java tools, but am unsure how to use them.

I know this might sound a bit noob-ish, I'm just trying my best to orient myself here.
User avatar
AndreyB
Site Admin
Posts: 14332
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: FSIO output methods

Post by AndreyB »

Not exactly sure what exactly are you asking but this could be related to useFSIO16ForTimingAdjustment - I guess one of the approaches could be to expand this with useFSIO15ForFuelCut and useFSIO15ForSparkCut etc

Also just added a tiny comment into rusefi.ini header see https://github.com/rusefi/rusefi/commit/4f235e67bcf8fdc991519d94bdd0a36742693afe
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
NBytevenom
Posts: 110
Joined: Mon Jul 24, 2017 8:23 pm

Re: FSIO output methods

Post by NBytevenom »

But then we'd end up with having to add a new FSIO for every function. I can't think of much else other than revlimit functions right now.

Do you mind giving a brief explanation on how you added the Fsio16? I'd like to try my luck at adding it myself.
User avatar
AndreyB
Site Admin
Posts: 14332
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: FSIO output methods

Post by AndreyB »

NBytevenom wrote:Do you mind giving a brief explanation on how you added the Fsio16? I'd like to try my luck at adding it myself.
Here are the commits which would hopefully explain it:

https://github.com/rusefi/rusefi/commit/a3ac4547bd12477bb9d1c8c6f0ea7f826d857d8b
https://github.com/rusefi/rusefi/commit/e78a11d16c460f858274bb2d2f1a02a5f4871f72
https://github.com/rusefi/rusefi/commit/7fd158f547b687db1478ac255f455b216097eb28
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
NBytevenom
Posts: 110
Joined: Mon Jul 24, 2017 8:23 pm

Re: FSIO output methods

Post by NBytevenom »

Okay, I could be missing some things really, really stupid here. I can't run gen config because it won't see the paths to my rusefi_config.txt and rusef.input files.

Code: Select all

set config=C:\Users\Schni\Documents\GitHub\rusefi\firmware\integration\rusefi_config.txt
set input=C:\Users\Schni\Documents\GitHub\rusefi\firmware\tunerstudio\rusefi.input
set console=C:\Users\Schni\Documents\GitHub\rusefi\java_console
java -jar C:\Users\Schni\Documents\GitHub\rusefi\java_tools\ConfigDefinition.jar %config% %input% %console%
PAUSE
I keep on getting an error in console that the jar cannot find any files/paths.
User avatar
AndreyB
Site Admin
Posts: 14332
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: FSIO output methods

Post by AndreyB »

Does the original gen_config.bat work for you?

Do not see the error message. Why do you need your own script?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
NBytevenom
Posts: 110
Joined: Mon Jul 24, 2017 8:23 pm

Re: FSIO output methods

Post by NBytevenom »

russian wrote:Does the original gen_config.bat work for you?

Do not see the error message. Why do you need your own script?
Nvm.......Now the original seemed to work. No idea why.
Post Reply