This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
#define Port_Tactile IN_1 | |
#define Port_Telemetre IN_2 | |
#define Port_Microphone IN_3 | |
//*/ | |
void setup() | |
{ | |
SetSensorTouch(IN_1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// let's try to go infinity... | |
int ratio1 = -25; | |
int ratio2 = 25; | |
task main() { | |
RotateMotorEx(OUT_BC, 100, 540*11,ratio1, true, false); | |
RotateMotor(OUT_BC, 50, 360); | |
RotateMotorEx(OUT_BC, 100, 540*11,ratio2, true, false); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define Touch IN_1 | |
#define Tele IN_4 | |
#define Motors OUT_BC | |
#define PAS 7 | |
int vitesse = 50; | |
void setup() { | |
SetSensorTouch(Touch); | |
SetSensorLowspeed(Tele); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On reprend le prgm de Léopard. Objectif : on reste à dix centimètres environs de la cible, qui avance et recule. | |
#define Touch IN_1 | |
#define Devant IN_4 | |
#define Motors OUT_BC | |
#define PAS 5 | |
#define PAS_RECUL 5 | |
int vitesse = 50; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define gauche IN_4 | |
#define devant IN_2 | |
#define droite IN_1 | |
#define paslibre_g (SensorUS(gauche) < 15) | |
#define paslibre_d (SensorUS(droite) < 15) | |
#define motors OUT_BC | |
#define VITESSE_ROT 75 | |
void setup(){ | |
SetSensorTouch(devant); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void carre(int dist) { | |
int i; | |
for(i=0;i<4;i++){ | |
RotateMotor(OUT_BC, 75 ,360*dist); // fait avancer le shmilblick en faisant rotater les deux bousins | |
RotateMotorEx(OUT_BC,75,540,-100, true, false); // fait tourner le bousin | |
} | |
} | |
task main() { | |
carre(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
!========================================================================================! | |
! Programme de Mathieu GABORIT et Lucas BOURNEUF ! | |
! pour le projet FANGIO (séquence 3) ! | |
! Licence : WTFPL ! | |
! Etat : Terminal ! | |
!========================================================================================! | |
//*/ | |
// Problème de fluidité important sur le robot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On cherche à qualifier la précision du télémètre. | |
// Des marques bleues sont disposées sur la piste à intervale régulier. | |
// Le robot mesure la distance entre son point de départ et chacune des marques bleues rencontrées. | |
#define Telemetre IN_3 | |
#define Couleur IN_2 | |
#define Touch IN_4 | |
#define motors OUT_BC | |
int distance = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Projet Knossos | |
* Résolution de labyrinthe | |
* | |
* Lucas Bourneuf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
######################### | |
# UPDATER # | |
######################### | |
######################### | |
# IMPORTS # | |
######################### | |
import sqlite3 |
OlderNewer