|
Ordinateur de bord pour voiture de collection 7.1
|
ClVariable based class to manage the Inclinometer datas (pitche and roll) More...
Public Member Functions | |
| def | Action (self) |
| rewrite of Action() to set the zero of LIS3DH ici l'action est la remise à 0 il faut comprendre quel est l'axe vertical et l'axe horizontal, puis prendre l'angle à plat de chaque variable. More... | |
| def | BValue (self, Val=None) |
| not used More... | |
| def | calc_angle (self, x, y) |
| def | CValue (self, Val=None) |
| like then Format() for this class More... | |
| def | DValue (self) |
| return last calculated pitche and roll. More... | |
| def | Format (self) |
| return the % of road, or pitche and roll. More... | |
| def | Read (self) |
| calculate and return the pitche and roll More... | |
| def | ReadPref (self, pref) |
| lit et écrit la préférence (format string <—> format type(Value)) More... | |
| def | WritePref (self) |
| utilisé par historic.PrefWrite() More... | |
Public Member Functions inherited from ClVariable | |
| def | __init__ (self, Name, FMasque=15, FNumber=None, CapteurIn=None, Value=0, NAquis=0, Unit="%s", CmpBin=None, SeuilMax=None, SeuilMin=None, CmpDelay=0, FuncCal=None, FuncCalParam=None, FuncAction=None, FuncEvent=None) |
| The constructor. More... | |
| def | Action (self) |
| Defini l'action lors de l'appui sur le bouton ou à l'appel lors de l'ouverture en fonction de self.Value. More... | |
| def | AdCapteur (self, Capteur) |
| add a physical or virtual sensor More... | |
| def | Addition (self, ValToAdd) |
| add passed value to current value More... | |
| def | BValue (self) |
| return the binary value. More... | |
| def | CValue (self) |
| idem (créé pour les asservissements, voir plus bas) More... | |
| def | Format (self) |
| retourne le resultat de Read() formaté avec la chaine définie self.Unit More... | |
| def | Moyenne (self, VLue) |
| calculation of average value More... | |
| def | Read (self) |
| fonction de lecture de la variable More... | |
| def | ReadPref (self, pref) |
| lit et écrit la préférence (format string <—> format type(Value)) More... | |
| def | ReturnBinForValue (self, val) |
| def | RValue (self) |
| retourne la valeur réelle (si la variable est une valeur réelle) More... | |
| def | set (self, newVal) |
| Set new Value. More... | |
| def | stop (self) |
| def | WritePref (self) |
| utilisé par historic.PrefWrite() More... | |
Public Attributes | |
| axe_H | |
| axe_T | |
| axe_V | |
| offset_roulis | |
| offset_tangage | |
| roulis | |
| tangage | |
| Value | |
Public Attributes inherited from ClVariable | |
| Aquis | |
| BinCmpTimer | |
| CmpBin | |
| CmpDelay | |
| FMasque | |
| FNumber | |
| FuncAction | |
| FuncCal | |
| FuncEvent | |
| FuncParam | |
| MoyenneIter | |
| MoyenneSomme | |
| NAquis | |
| SeuilMax | |
| SeuilMin | |
Static Public Attributes | |
| int | axe_H = 2 |
| int | axe_T = 1 |
| int | axe_V = 0 |
| int | offset_roulis = 86 |
| int | offset_tangage = 68 |
| int | roulis = 0 |
| int | tangage = 0 |
| list | Value = [] |
Static Public Attributes inherited from ClVariable | |
| int | BinCmpTimer = 0 |
| Capteur = None | |
| list | ListAff = [] |
| ListeActions = None | |
| list | ListVnt = [] |
| int | MoyenneIter = 0 |
| nombre d'itération pour un calcul complet (50) More... | |
| int | MoyenneSomme = 0 |
| somme destinée au calcule de la moyenne des acquisition, sur NAquis acquisitions. More... | |
| Name = None | |
| Unit = None | |
| Value = None | |
ClVariable based class to manage the Inclinometer datas (pitche and roll)
| def Action | ( | self | ) |
rewrite of Action() to set the zero of LIS3DH ici l'action est la remise à 0 il faut comprendre quel est l'axe vertical et l'axe horizontal, puis prendre l'angle à plat de chaque variable.
Reimplemented from ClVariable.
| def BValue | ( | self, | |
Val = None |
|||
| ) |
not used
Reimplemented from ClVariable.
| def calc_angle | ( | self, | |
| x, | |||
| y | |||
| ) |
| def CValue | ( | self, | |
Val = None |
|||
| ) |
like then Format() for this class
Reimplemented from ClVariable.
| def DValue | ( | self | ) |
return last calculated pitche and roll.
Don't calculate it !
| def Format | ( | self | ) |
return the % of road, or pitche and roll.
It's in % for less than "10" for each the string is like "8 %" or "15° ; 25°"
Reimplemented from ClVariable.
| def Read | ( | self | ) |
calculate and return the pitche and roll
Reimplemented from ClVariable.
| def ReadPref | ( | self, | |
| pref | |||
| ) |
lit et écrit la préférence (format string <—> format type(Value))
| pref | the value to load the current ClVar |
Reimplemented from ClVariable.
| def WritePref | ( | self | ) |
utilisé par historic.PrefWrite()
Reimplemented from ClVariable.
|
static |
| axe_H |
|
static |
| axe_T |
|
static |
| axe_V |
|
static |
| offset_roulis |
|
static |
| offset_tangage |
|
static |
| roulis |
|
static |
| tangage |
|
static |
| Value |