|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
Professwrx
|
Post subject: AntiLag, FlexFuel, DriveMode, Killswitch dev Posted: Wed Sep 24, 2014 2:41 pm |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
https://github.com/kerchakone/MerpModPlease consider donating. I have put a ton of time and effort into this and to keep me developing for other ROMs especially YOUR Rom, please Donate. Include your ROM and Screenname! Testing Request Thread:viewtopic.php?f=37&t=11593Video Thread:viewtopic.php?f=37&t=11635ROM Patch Releases and FAQ:viewtopic.php?f=37&t=11910&p=112810#p112810For Ethanol Content Analyzer:http://flexconverter.comFlex Fuel via http://flexconverter.com ECA and future Virtual Flex Fuel Sensor:This is fully implemented to alter Merp's MapBlend ratio as a switch. Initially powered by the ECA and directly changes mapblend. On hold for now but will continue to develop virtual sensor afterward. AntiLag: Fuel Cut Rotational Idle and Fuel Cut AntiLag. Working on spark cut ALS. AntiLag RamTuningALS SPECIFIC - Polf/Timing Ram Tuning in build switch. AVCS possibly in future. Valet: My version has it's own throttle Map which effectively only allows so much throttle and revs. Also works off of the first mapswitch which I have setup to be an economy mode which also tones it down. No boost other than WG spring pressure allows also in Econ. Shiftlight: I built into CELFlash. It pulls the current DriveMode and gear to decide RPM to flash. This way it can flash at a Valet to be one more reminder to keep it slow, it can tell you when optimal upshifts are for mileage on normal mode and can act as an actual shift light in the performance modes. It still works off the CEL flash and I have little desire of furthering it, thinking about running a load algorithm for optimal mileage. For now and probably forever it is what it is as far as I'm concerned. Killswitch: Set up as fuel cut. It also flashes CEL to tell the driver of the Killswitch activation. (Activation explained in Drivemode below) CEL Dash Readout:On hold. A button combination to have CEL/cruise Light flash a number of times to tell you the current CEL number. SSMHacks:Hack unused SSM locations to use Merpmod or other variables that don't have an SSM spot. Also hacking OBD2 locations for ELM327 style devices. MPG hacks5th+ gear specific AVCS pulls from table 1i ONLY. 5th+ gear specific Closed Loop Target (via sensor scaling) Above to be replaced by simple targeted afr instead of scaling. Displacement on Demand - In testing. Don't know if it will work or if the loss of a cylinder would even benefit. ECU ResetHard Reset ECM on the fly. Hold Clutch in, Defogger On, Hold Cruise Set/Coast, Press and Release Brake 5 times. (2 Times will Kill Fuel Injectors) Then Power Cycle ECM. (turn key off) Direct WidebandIn Ideation. Direct ECU implementation of Wideband Input for safety checks and logging. Algorithmic OEM Wideband.In Ideation. ECU algorithm correction for OEM wideband WOT use. DriveMode:Makes SIDrive version for nonSIDrive cars... and goes a bit further. Fully integrated as a switch for Merp's Mapswitch. 4 Modes: 1 - Valet (and KillSwitch) 2 - Normal (Economy) 3 - Performance 4 - High Performance (Antilag) ModeSwitch Lights CEL. Flash count matches Mode number. Can Cycle up through modes back to a user defined default. Can Cycle down through modes all the way to 0. Does NOT cycle back to top. Cycle up = Hold Cruise On/Off Button and Cruise Resume. Cycle Down = Hold Cruise On/Off Button and Cruise Set. Valet Mode = Cycle Down to 1 mode OR... Press Clutch, Defogger ON, Cruise Set, Press Brake.... Release and press brake again = KillSwitch. Recall Current Mode = Hold Cruise Master On/Off Button for 2 seconds. To turnoff Killswitch = Cycle up a mode. Mode stays constant after car is turned off. Current tables working Merpmod Mapswitch: OL Fueling per Mapswitch. Timing per Mapswitch. First and Second gear Timing Compensations. Target Boost per Gear, per mapswitch. WGDC per Gear, per mapswitch. AVCS per MapSwitch/Blend/cruise Open loop lock. Target Idle (only 0 MPH for now) per Mode. (Target Idle A and B tables from OEM are used FOR NOW. Plan on implementing new table(s) probably) Requested Torque per Mode. Please consider donating. I have put a ton of time and effort into this and to keep me developing for other ROMs especially YOUR Rom, please Donate. Include your ROM and Screenname!
Last edited by Professwrx on Thu Jul 09, 2015 6:08 am, edited 43 times in total.
|
|
| Top |
|
 |
|
rbimdxe
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag dev Posted: Wed Sep 24, 2014 3:31 pm |
|
 |
| Experienced |
Joined: Fri Jan 22, 2010 2:42 pm Posts: 192
|
Some very interesting ideas here. I wish I knew more with regard to the coding of it all to help/look into it some more. I havent been able to get IDA set up and running properly to really get into the guts of it all, but with all the developments of late it makes me want to try again. Very eager to see how this progresses. 
_________________ Had: MY07 ADM STI (A8DK100V) ~300kw atw on e-flex, self tuned.
Now: MY09 Foz XTP (AZ1G101M) ~250kw atw on E70 (TD06SL2-18G), self tuned.
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag dev Posted: Sat Oct 18, 2014 3:19 pm |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
|
I just wrote an algorithm that should mimic the GM version of a virtual flex fuel sensor. I haven't seen their logic, but I have a good idea of what it must do.
I need to look into the CCP logic but as soon as I get that sorted I can test some delay functions and the write the code for flex fuel without the need for a sensor.
Haven't tested a lot of what I've done lately, but I hope to get it done this week to be able to start this project shortly.
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Fri Oct 24, 2014 6:23 pm |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
|
Build from Today tests a few new functions including the Cycle Down of Modes which allows for all 4 modes to work, Killswitch and Soft Reset. This build also has a timer test function I wrote to the Virtual Flex Fuel setup.
Don't know when I'll get my tables transferred to be able to load it to my car to test but maybe tomorrow.
|
|
| Top |
|
 |
|
crippsdr
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Sat Oct 25, 2014 6:08 am |
|
 |
| Experienced |
Joined: Tue May 17, 2011 11:52 am Posts: 221 Location: Tasmania
|
|
Virtual flex sensor sounds interesting.
_________________ A8DH100M Ej257 short block, CP Pistons, Ported EJ255 Heads, Kelford 264 cams, Blouch 1.5XTR, ID1000s, FMIC, Custom 3" Dump, DW300, Equal Length headers
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Wed Oct 29, 2014 10:53 pm |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
|
"Sensor" code is written. Need to work on fueling, emissions, logging variables, setting timing of execution.
Maybe have something worthy of ethanol testing next month. Maybe not. I'm too busy.
Still haven't tested new build. I altered the timer function slightly so I need to redo it.
|
|
| Top |
|
 |
|
td-d
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Thu Oct 30, 2014 8:03 am |
|
 |
| Moderator |
Joined: Thu May 20, 2010 8:01 am Posts: 3117 Location: Johannesburg, South Africa
|
|
Quite keen to dig through this - can you post a link to the repository, I'm getting 404 errors cross linking from Merp's.
_________________ He who dies with the most gadgets wins.
Please do not PM me - use the email option.
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Fri Oct 31, 2014 3:25 am |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
|
I will get it back on github soon. I pulled it due to github and my computer not liking each other.
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Fri Oct 31, 2014 8:35 pm |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
|
Timer Function works perfectly. Next step is to complicate it with a countdown version and more.
CPU Cycles about 15.5 times per second (with my build) if anybody ever had wondered but didn't look into it.
KillSwitch doesn't work as I knew it wouldn't. I had to try though. Need to rewrite it to check only the bit. Then I'll redo the switch to work off a different combo altogether. A much more user friendly and closer to an OEM setup. Though obviously not.
Found and fixed a bug. CEL flashed when < instead of > for Killswitch count.
Unfortunately that's all the time I've got today.
|
|
| Top |
|
 |
|
Merp
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Sat Nov 01, 2014 3:35 am |
|
 |
| Experienced |
 |
Joined: Thu Jul 23, 2009 5:46 pm Posts: 863
|
|
please please please PLEASE get msysgit set up and start committing!
_________________ Please do not send me support questions via PM, use the forum instead!
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Mon Nov 03, 2014 1:19 am |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
Merp wrote: please please please PLEASE get msysgit set up and start committing! Drivemode code is up. Other things aren't fully hashed out so I haven't put them up yet. Also need to go through your code fully again and implement my changes into the new versions of the files. That's what will take the longest.
|
|
| Top |
|
 |
|
Merp
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Mon Nov 03, 2014 2:41 am |
|
 |
| Experienced |
 |
Joined: Thu Jul 23, 2009 5:46 pm Posts: 863
|
Professwrx wrote: Merp wrote: please please please PLEASE get msysgit set up and start committing! Drivemode code is up. Awesome, will check it out. Quote: Other things aren't fully hashed out so I haven't put them up yet. Also need to go through your code fully again and implement my changes into the new versions of the files. That's what will take the longest. git rebase! If you're not up to it, push what you have into a branch and I'll have a crack at it.
_________________ Please do not send me support questions via PM, use the forum instead!
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Mon Nov 03, 2014 5:50 pm |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
|
I think I have found two bugs that should allow KillSwitch to work. Going to test out hopefully today. And... Commit!
Edit: Countdown Timer works flawlessly. Kill Mode has an issue I may have solved after another fix.
Starting to log fuel level and some emissions to work on Flex Fuel Learning. Going ahead with the code for refueling. Just need to doublecheck in HEW. But I'm pretty confident it will work with maybe a couple tweaks in timers if needed and log variables.
Next step from that is to link it to the ethanol learning code and fill with e85.
|
|
| Top |
|
 |
|
Professwrx
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Tue Nov 04, 2014 10:13 pm |
|
 |
| Experienced |
Joined: Thu Jan 09, 2014 10:17 pm Posts: 394
|
KillMode counter works, but needs a more aggressive version. OEM code still limits minimum and max idle speed effectively disallowing a soft kill as it is written. Fuelup.c is having an issue jumping the gun after an incorrect calculation which I have not figured out yet. Timer is working perfectly in it's final version to hold off on code. FuelUp.c is on Git https://github.com/kerchakone/MerpMod
|
|
| Top |
|
 |
|
Merp
|
Post subject: Re: DriveMode, valet, killswitch, shiftlight, antilag, VFF d Posted: Wed Nov 05, 2014 1:32 am |
|
 |
| Experienced |
 |
Joined: Thu Jul 23, 2009 5:46 pm Posts: 863
|
Just checked some of the commits out, looks good  Comments/concerns: Seems like drivemode and mapswitch + valet mode are somewhat redundant and could be refactored into a single switch somehow. I'm thinking they should just be consolidated with valet mode as a new map set. This would clean up all the valet mode conditionals in the boosthacks code, but would result in more ROM use (full fuel + timing + boost tables required to use existing BlendAndSwitch functionality.) To immobilize, I would just hit the fuel cut flag rather than mess with idle/reqtq. In fact I would stay as far away from DWB as possible  AFAIK this cut is active while starting, so you won't have any partial starts/stalling. Rather than add more conditionals to MapBlendingInputModeUndefined in blendandswitch.c to enable VFF, better to add a new mode: MapBlendingInputModeVFF, etc. This allows driver to select manual mode in the event of problems with VFF.
_________________ Please do not send me support questions via PM, use the forum instead!
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 7 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|