Ordinateur de bord pour voiture de collection 7.1
|
UART base class to get speed with GPS Beitian 220T. More...
Public Member Functions | |
def | __init__ (self, Name, baudrate=9600, timeout=0.5) |
The constructor. 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 | 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... | |
Additional Inherited Members | |
Public Attributes inherited from Capteur | |
Name | |
Voie | |
Static Public Attributes inherited from Capteur | |
Module = None | |
UART base class to get speed with GPS Beitian 220T.
Make sur a GPS is connected on the uart of the pi (google or contact me)
Name | (string) : the name of sensors |
baudrate | (int, default 9600) : the speed of uart (9600 for the GPS) |
timeout | (float, default 0.5) the time out before fail |
def __init__ | ( | self, | |
Name, | |||
Module = 9600 , |
|||
Voie = 0.5 |
|||
) |
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 from Capteur.
def Read | ( | self | ) |
retourne la valeur lue du capteur
Reimplemented from Capteur.