|
Ordinateur de bord pour voiture de collection 7.1
|
Mother class for all sensors
It define the minimal function, properties and init function.
More...
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 | |
Mother class for all sensors
It define the minimal function, properties and init function.
| def __init__ | ( | self, | |
| Name, | |||
| Module, | |||
| Voie | |||
| ) |
The constructor.
| 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. |
Reimplemented in GPSbetian, ServoMoteur, LM35, Compteur, IANA, PWMOut, TOR, PontDiv, Segments, Igniter, InclinometreLIS3DH, DS18B20, Timer, GPIOOUT, and GPIOIN.
| def Compens | ( | self, | |
a = 1, |
|||
b = 0 |
|||
| ) |
entre une valeur de compensation (à supprimer)
| def Read | ( | self | ) |
| def Switch | ( | self | ) |
forcement booleen, pas de parametre (à supprimer)
| def Write | ( | self, | |
| Val | |||
| ) |
|
static |
| Name |
| Voie |