|
def | __init__ (self, Name, Module, Voie=0, NmbStrokeByTurn=2, TpsInibSpark=10, DegresOffset=0, TimeCTP0=110) |
| The constructor. More...
|
|
def | GetIgnitionTiming (self, *arg) |
| Return the Ignition Timing from last acquisition with Read() More...
|
|
def | GetMissingSpark (self, *arg) |
| detect if there was missing spark betwin 2 acquisition More...
|
|
def | GetRPM (self, *arg) |
| return the engine speed More...
|
|
def | Read (self) |
| retourne la valeur lue du capteur More...
|
|
def | __init__ (self, Name, Module, Voie) |
| The constructor. More...
|
|
def | Compens (self, a=1, b=0) |
| entre une valeur de compensation (à supprimer) More...
|
|
def | Read (self) |
| retourne la valeur lue du capteur More...
|
|
def | Switch (self) |
| forcement booleen, pas de parametre (à supprimer) More...
|
|
def | Write (self, Val) |
| ecrit sur une sortie (PWM ou Tout ou Rien) More...
|
|
Igniter and RPM monitoring.
The sensor is a addition of RPM monitoring and spark monitoring. It measure the speed of engine, calculate the Ignition Timing and detect missing spark.
- Parameters
-
Name | (string) : le nom du compteur. |
Module | (CANModule) : instance of CANModule witche the sensor is plug. see CAN_Modules.py |
Voie | (int) : the chanel is 0 AND 1 for igniter, don't use it. |
NmbStrokeByTurn | : number of sparks in an engine turn. For a 4 cyclindres 4 strokes, it's 2 (default value is 2) |
TpsInibSpark | [0-255 in 10µs] : time before accepte new spark. Spark duration ≈ 5ms BUT : on V8 @5000 rpm --> there is a spark each 3ms ! and 4 cylindres @ 7000 rpm --> 4ms ! (Default value = 10 (= 100µs)) |
TimeOffset | : offset of sensor of top dead center TDC (PMH in french) in° A positive value for a sensor detection AFTER the TDC. |
- Note
- Inib time for rpm (engine) is not customizable, it's 5ms = 12000 rpm
-
Calculation of missing event : Missing if Number of spark < Engine Turns * NmbStrokeByTurn
- Date
-