Ordinateur de bord pour voiture de collection  6.3
Public Member Functions | Static Public Attributes | List of all members
Igniter Class Reference

Igniter and RPM monitoring. More...

Inheritance diagram for Igniter:
Capteur

Public Member Functions

def __init__ (self, Name, Module, Voie=0, NmbStrokeByTurn=1, TpsInibSpark=10, DegresOffset=0, TimeCTP0=110)
 
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...
 
- Public Member Functions inherited from Capteur
def __init__ (self, Name, Module, Voie)
 The constructor. More...
 
def Compens (self, a=1, b=0)
 entre une valeur de compensation (à supprimer) 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...
 

Static Public Attributes

int RPMCHANEL = 1
 
int SPARKCHANEL = 0
 

Additional Inherited Members

- Public Attributes inherited from Capteur
 Module
 
 Name
 
 Voie
 

Detailed Description

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
  • 22/09/2016 7.0 Création

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  Name,
  Module,
  Voie = 0,
  NmbStrokeByTurn = 1,
  TpsInibSpark = 10,
  DegresOffset = 0,
  TimeCTP0 = 110 
)

Member Function Documentation

◆ GetIgnitionTiming()

def GetIgnitionTiming (   self,
arg 
)

Return the Ignition Timing from last acquisition with Read()

Returns
Ignition Timing (floating, -180 to 180°)

◆ GetMissingSpark()

def GetMissingSpark (   self,
arg 
)

detect if there was missing spark betwin 2 acquisition

Returns
True is there is missing spark.

◆ GetRPM()

def GetRPM (   self,
arg 
)

return the engine speed

Returns
rpm in turns per minute

◆ Read()

def Read (   self)

retourne la valeur lue du capteur

Reimplemented from Capteur.

Member Data Documentation

◆ RPMCHANEL

int RPMCHANEL = 1
static

◆ SPARKCHANEL

int SPARKCHANEL = 0
static

The documentation for this class was generated from the following file: