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

virtual sensor to to get the time from start main.py More...

Inheritance diagram for Timer:
Capteur

Public Member Functions

def __init__ (self, Name, Module=None, Voie=None)
 init the sensor More...
 
def Read (self)
 renvoie le temps courant depuis la dernière mise à 0 par Write(0) More...
 
def Write (self, Val)
 set the 0 time More...
 
- Public Member Functions inherited from Capteur
def Compens (self, a=1, b=0)
 entre une valeur de compensation (à supprimer) More...
 
def Switch (self)
 forcement booleen, pas de parametre (à supprimer) More...
 

Public Attributes

 TpsInital
 
- Public Attributes inherited from Capteur
 Module
 
 Name
 
 Voie
 

Detailed Description

virtual sensor to to get the time from start main.py

Date
a long time ago
14/12/2018 : Modification : suppression appel Capteur.__init__()
2021-04 : change return format from hh:mm:ss to second only

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  Name,
  Module = None,
  Voie = None 
)

init the sensor

Parameters
Name: name of the sensor
Module(default None) : must be None for this sensor
Voie(default None) : must be None for this sensor

Reimplemented from Capteur.

Member Function Documentation

◆ Read()

def Read (   self)

renvoie le temps courant depuis la dernière mise à 0 par Write(0)

Reimplemented from Capteur.

◆ Write()

def Write (   self,
  Val 
)

set the 0 time

Parameters
Val: must be 0
Date
  • long long time : creation

Reimplemented from Capteur.

Member Data Documentation

◆ TpsInital

TpsInital

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