Yep, tuning is difficult. Each engine is different.
There's no way the G-Tech can tell power from ignition. However, the MS can gauge HP from fuel based on BSFC.
BSFC = fuel_flow/HP or HP = fuel_flow * BSFC
See this thread to add the Torque and HP gauges to MegaTune:
http://www.msefi.com/viewtopic.php?t=17 ... +hp+gauges
Obviously, AFR is a factor. Dumping fuel isn't going to increase HP. The gauges take AFR into account but also assumes a .45 BSFC that can be adjusted in the custom.ini file.
Copy this and save it as custom.ini:
;###############################################################################
;## DO NOT edit this file in the MegaTune release directory, edit the copy ##
;## in your car-specific directory. That would be ##
;## ##
;## C:/Program Files/MegaSquirt/car1/mtCfg/custom.ini ##
;## ##
;## in the standard installation. ##
;###############################################################################
[MegaTune]
MTversion = 2.25
; This "defaultVersion" is only used for off-line editing, once you
; connect to MS, this is discarded.
defaultVersion = 2.00 ; Controller code
[Defaults]
engineDisplacement = 350 ; Cubic inches
injectorFlow = 42 ; lb/hr
[Units]
TPS = "%" ; Either "%" or "raw" are valid.
#if CELSIUS
#log "Celsius enabled."
temperature = "C" ; Either F (Fahrenheit) or C (Celsius) are valid.
#else
#log "Fahrenheit enabled."
temperature = "F"
#endif
;-------------------------------------------------------------------------------
; Add your customizations here, they will be read at the end of the
; standard megatune.ini processing and override any settings there.
;-------------------------------------------------------------------------------
#unset AUTOMARK_LOGGING_FEATURES
#if AUTOMARK_LOGGING_FEATURES
[OutputChannels]
; Make up some variable names...
highLoad = { rpm >= 3500 && throttle >= 50 }
enable = { rpm >= 2000 }
[Datalog]
enableWrite = enable ; Log entries are only written when the variable
; "enable" is true, see it's definition above.
markOnTrue = highLoad ; A datalog marker is written when "highLoad"
; transitions from false to true. The marker
; looks like "MARK 001 highLoad" to distinguish
; it from the manual markers.
#endif
;-------------------------------------------------------------------------------
; Uncomment this section if you wish to change the defaults. The commPort
; used for burst mode is normally the same as used for MS, but if you have
; your Palm hooked to a different port, then change it here.
#unset I_WANT_ALTERNATE_BURST_MODE_SETTINGS
#if I_WANT_ALTERNATE_BURST_MODE_SETTINGS
[BurstMode]
commPort = 1
commRate = 115200
getCommand = "A"
#endif
[OutputChannels]
totalFuel = { 206.5 }
BSFC = { 0.45 }
#include "bhptorqueGauge.ini"
; [FrontPage]
; gauge8 = bhpGauge
; gauge4 = torqueGauge
;-------------------------------------------------------------------------------
Copy this and save it as bhptorqueGauge.ini
[MegaTune]
MTversion = 2.25
[OutputChannels]
; At max power, BSFC is usually between 0.42 and 0.58 lbs
; (Supercharged:0.55, an efficient N/A:0.45)
maxpower = {afr > 13.0 ? 0.0 : afr < 12.0 ? 0.0 : accDecEnrich > 100 ? 0.0:accDecEnrich < 100 ? 0.0: 1.0 }
; So at max power + no accenrich, BHP roughly=(dutyCycle1 / 100.0) *
; (lbs/hr of all your injectors / BSFC)
bhp = {maxpower < 1.0 ? 0.0 : (dutyCycle1 / 100.0) * ( totalFuel / BSFC ) }
torque = {rpm < 1.0 ? 0.0 : maxpower < 1.0 ? 0.0 : 5252 * bhp / rpm}
[GaugeConfigurations]
; Name Var Title Units Lo Hi LoD LoW HiW HiD vd ld
bhpGauge = bhp, "Engine Power", "BHP", 0, 400, -1, -1, 350, 400, 1, 1
torqueGauge = torque, "Engine Torque", "ft/lbs" 0, 400, -1, -1, 350,400, 1, 1
;
Then add the following line to megatune.ini
#include "custom.ini"
That will give you the gauges in MT to measure Torque and BHP within MT based on fuel consumption. You might want to play with BSFC to say .40.
The calculation is simply injector rate, elasped time and PW.
Do a power run (which it won't datalog without some custom programming in the megatune config files). Watch the telltale in MT for the max setting. Use the tuning screen (preferably with a ride-along assistant) to adjust the VE table to max power and AFR.
HTH
-Peter
The true joy of an Alfa Romeo is behind the wheel.