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

UART base class to get speed with GPS Beitian 220T. More...

Inheritance diagram for GPSbetian:
Capteur

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
 

Detailed Description

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)

Parameters
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
Date
  • 7.1 januray 2022 : creation

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  Name,
  Module = 9600,
  Voie = 0.5 
)

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

Member Function Documentation

◆ Read()

def Read (   self)

retourne la valeur lue du capteur

Reimplemented from Capteur.


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