doppelhub / MuddersMIMA

Mudders Take on Manual IMA Control in the G1 Honda Insight
GNU General Public License v3.0
2 stars 4 forks source link

Pedal Controlled Proportional Assist #13

Open tttjm1 opened 3 months ago

tttjm1 commented 3 months ago

//Pedal Controlled Proportional Assist. //Provides assist by adding demand on top of the OEM IMA strategy //Uses the OEM regen strategy //Fully automatic operation (No joystick required)

requires @Hurricos PR3 to Measure vehicle speed using pin-change IRQ on VSS

Configured for: 48S FoMoCo / zero current hack / VOLTAGE_SPOOFING_LINEAR

Tested on a 2001 manual, consumes 82-15% SOC in ~60miles at approximately 145mpg(imp) / 120 mpg US

tttjm1 commented 3 months ago

There is an issue with RPM either in my copy of the firmware or with my Licontrol. The +12v feed on my licontrol has blown, possibly whilst implementing the RPM signal. Now: if the licontrol is powered by USB, the above code works as intended. If powered by a jumper from 12vkey to VPIN then the VSS signal is many times too high.

Update: key on, mph sometimes registers 126, 1960, 334, 286, or 252mph! etc If powered by usb, this soon corrects itself. If powered by vpin (with diode), it does not.

MAMODE1 goes from :Standby to :Line HI at key-off and requests CMDPWR:100% (see log below) note that TPS and MAP are also out of range (RPM is last know good value) This corrects itself when powered by USB, If powered by vpin (with diode), it doesn't.

MAMODE2:Reg/Idle, MAMODE1:Standby, CLUTCH:Released, BRAKE:Pressed, CMDPWR:50% TPS:9% MAP:18% RPM:793 MPH:1 MAMODE2:Reg/Idle, MAMODE1:Standby, CLUTCH:Released, BRAKE:Pressed, CMDPWR:50% TPS:9% MAP:18% RPM:784 MPH:1 MAMODE2:Reg/Idle, MAMODE1:Standby, CLUTCH:Released, BRAKE:Pressed, CMDPWR:50% TPS:9% MAP:19% RPM:783 MPH:1 MAMODE2:Reg/Idle, MAMODE1:Line HI, CLUTCH:Released, BRAKE:Pressed, CMDPWR:100% TPS:0% MAP:5% RPM:807 MPH:1 MAMODE2:Reg/Idle, MAMODE1:Line HI, CLUTCH:Released, BRAKE:Pressed, CMDPWR:100% TPS:0% MAP:0% RPM:807 MPH:1 MAMODE2:Reg/Idle, MAMODE1:Line HI, CLUTCH:Released, BRAKE:Pressed, CMDPWR:100% TPS:0% MAP:0% RPM:807 MPH:1

tttjm1 commented 3 months ago

Updated with better coding and refinements. Still need to identify why MAMODE1:Line HI and CMDPWR:100% is sometimes called at key-on/off (and why when powered by vpin this doesn't reset)

tttjm1 commented 2 months ago

Refined to provide better far better driveability.