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

Mother class for all sensors
It define the minimal function, properties and init function. More...

Inheritance diagram for Capteur:
GPIOIN GPIOOUT DS18B20 GPSbetian InclinometreLIS3DH Compteur IANA Igniter LM35 PWMOut PontDiv Segments TOR Timer

Public Member Functions

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...
 

Public Attributes

 Name
 
 Voie
 

Static Public Attributes

 Module = None
 

Detailed Description

Mother class for all sensors
It define the minimal function, properties and init function.

Date
2.0

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  Name,
  Module,
  Voie 
)

The constructor.

Parameters
Name(string) : the name to call it. If the name is the same that using ClVar, the link is automatic.
Module(CANModule) : must be an instance of Can Module CANModule.
Voie(int) : the num of the input or output. See the relativ Can Module input list.
Note
The application list all avaible Can Module input & output in the RPi terminal.

Reimplemented in GPSbetian, ServoMoteur, LM35, Compteur, IANA, PWMOut, TOR, PontDiv, Segments, Igniter, InclinometreLIS3DH, DS18B20, Timer, GPIOOUT, and GPIOIN.

Member Function Documentation

◆ Compens()

def Compens (   self,
  a = 1,
  b = 0 
)

entre une valeur de compensation (à supprimer)

◆ Read()

def Read (   self)

retourne la valeur lue du capteur

Reimplemented in Compteur, IANA, Igniter, LM35, Segments, PontDiv, PWMOut, TOR, ServoMoteur, GPIOIN, DS18B20, InclinometreLIS3DH, GPSbetian, and Timer.

◆ Switch()

def Switch (   self)

forcement booleen, pas de parametre (à supprimer)

◆ Write()

def Write (   self,
  Val 
)

ecrit sur une sortie (PWM ou Tout ou Rien)

Reimplemented in GPIOOUT, PWMOut, and Timer.

Member Data Documentation

◆ Module

Module = None
static

◆ Name

Name

◆ Voie

Voie

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