Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aishen

Pages: 1 2 [3]
31
Core Development / Re: How to translate blocks ?
« on: 2016-December-13 11:52:20 pm »
Fine... Thanks

32
Core Development / How to translate blocks ?
« on: 2016-December-13 10:42:19 pm »
I would like to translate blocks in french. How does it works ?
I work on ubuntu and I translated the interface, meanwhile I can't yet get it in french so I rename my file en-GB just for me to see how it's well translated.
Now I would like to translate blocks. Is it possible without compilation, because I can't compile it on ubuntu qt5 serial doesn't work et qt4 serial can't compile.

33
General Discussion / New to visualino
« on: 2016-December-12 11:50:34 am »
Hi,
I recently discovered visualino, thank you for this excellent tool. I am french and I would like to know if it's translated or not, eventually I might try to do it after a longer experience. To begin I am doing an Elego Robot car vers 0.2 conversion. I started a LCD telemeter and I found one variable I don't know how to set it, here is the arduino program :

(variable I don't know how to set ? unsigned int distance = duree*(VITESSE/1000.0); //on multiplie par la vitesse, d=t*v and #define VITESSE at the moment)

#include <LiquidCrystal.h>
#define VITESSE 340
const int USTrig = 2; // Déclencheur sur la broche 8
const int USEcho = 3; // Réception sur la broche 9
LiquidCrystal lcd(7,8,9,10,11,12);
void setup() {
    lcd.begin(2, 16);
    pinMode(USTrig, OUTPUT);
    pinMode(USEcho, INPUT);
    lcd.print("Telemetre");
   
}
void loop()
{
   digitalWrite(USTrig, HIGH);
   delayMicroseconds(10);
   digitalWrite(USTrig, LOW);
   unsigned long duree = pulseIn(USEcho, HIGH);
  if(duree > 30000)
   {
      //si la durée est supérieure à 30ms, l'onde est perdue
      lcd.clear();
      lcd.home(); // Replace le curseur en haut à gauche
      lcd.print("Onde perdue :(");
      lcd.setCursor(0,1);
      lcd.print("Mesure echouee !");
   }
   else
   {
      // 4. On divise cette durée par deux pour n'avoir qu'un trajet
      duree = duree/2;

      // 5. On calcul la distance avec la formule d=v*t
      unsigned int distance = duree*(VITESSE/1000.0); //on multiplie par la vitesse, d=t*v

      // 6. On affiche !
      lcd.clear();
      lcd.home(); // Replace le curseur en haut à gauche
      char message[16] = "";
      sprintf(message, " Dist : %4d mm", distance);
      lcd.print(message);
      sprintf(message, "Temps : %4d us", duree);
      lcd.setCursor(0,1);
      lcd.print(message);
   }
   delay(250); // Petite pause
}

Any help,
Thank you
(I can read spanish as I used to know it , I use ubuntu.)

Pages: 1 2 [3]