pour faire les valeurs du akmd_set.txt, il lance: <6>[ 82.271667] --> ECS_IOCTL_GET_CALI_DATA <6>[ 82.271942] --> ECS_IOCTL_GET_CALI_DATA #3 et à priori, le résultat du akmd_set.txt change pas entre les reboot (sans bouger le htc dream) quand on met tout sur une seule valeur, ça ne fait pas le fichier… headers? POUR CALCULER LES SENS: TTBL00_SENS.x=720 TTBL00_SENS.y=708 TTBL00_SENS.z=732 TTBL00_OFFSET.x=35 TTBL00_OFFSET.y=-128 TTBL00_OFFSET.z=-88 TTBL00_TEMPLEVEL=2050 TTBL01_GAINDAC.x=3978 TTBL01_GAINDAC.y=4097 TTBL01_GAINDAC.z=4231 TTBL01_SENS.x=617 TTBL01_SENS.y=607 TTBL01_SENS.z=628 TTBL00_SENS -> TTBL01_SENS : ============================ System: 732x + 1y = 628 712x + 1y = 611 Solution: x=17/20 y=29/5 TTBL01_SENS -> TTBL0*_SENS : ============================ seems OK Solution: x=1/1 y=289/17 = 17 on ajoute 17 (ou plutot 18) a chaque fois (x fois, dans TTBL_0x) pour TEMP: ========== pour passer de 0 à 1??? on ajoute 4096 a chaque fois GAINDAC ne change pas? ====================== OFFSET: ======= x: on ajoute 9 a chaque fois. y: on ajoute 82 a chaque fois z: on ajoute -18 a chaque fois. MAIS A QUOI SERVENT CES PARAMETRES ? ==================================== KSTE.x=666 KSTE.y=666 KSTE.z=666 (changé à 666 -> ne change rien) ASE_EE.x=732 ASE_EE.y=712 ASE_EE.z=712 (changé aux valeurs du dream dev -> ne change rien) TTBL00_GAINDAC.x=4100 TTBL00_GAINDAC.y=4104 TTBL00_GAINDAC.z=4234 changé tous les TTBL**_GAINDAC aux valeurs du dream de dev SEUL TTBL2_GAINDAC est pris en compte pour faire les write change: write {4, 238, 16, 16, 16} au lieu de {4, 238, 15, 16, 16} x -> write_data[2] y -> write_data[3] z -> write_data[4] 19 <- 5000 15 <- 3978 16 <- 4104 7 <- 2000 3 <- 1000 pour x,y,z fonction: y=0.0040535025 x - 1.0376854539 <- pas précis PRÉCIS: echo $(( (3840-(3840%256))/256 )) f(x)=(x-(x%256))/256 write {4, 235, 4, 6, 138 } au lieu de {4, 235, 138, 129, 135 } SEMBLE EVOLUER SELON D'AUTRES PARAMETRES x et z: f(x)=-0.024x+256 1000 -> 232 2000 -> 208 4000 -> 160 y: on ajoute 2 à x ou y f(x)=-0.024x+258 1000 -> 234 2000 -> 210 4000 -> 162 mais PAS le dernier write