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
/* | |
* Constructores para la clase AES. | |
* Para simplificar, estoy suponiendo que solo hay un arreglo | |
* miembro (la llave), en lugar de tres. | |
*/ | |
/* | |
* Constructor normal: recibe el tamaño de llave y reserva | |
* el espacio para el arreglo de la llave. | |
*/ |
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
/** | |
* Program for the motor block. | |
* T-bugs. | |
* ALIROB IPN. | |
*/ | |
#include "cubelet.h" | |
/** ID's of the rotator. */ | |
#define CONTROLER 816343 |
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
/** | |
* compiler.cpp | |
* Generator of programs for the head (rotator cube). | |
* CULET: a Turing machine with Cubelets and Lego. | |
* | |
* Dependencies: | |
* + jsoncpp: https://github.com/open-source-parsers/jsoncpp | |
*/ | |
#include <fstream> |
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
{ | |
"states": [ | |
"S_x0", | |
"S_01", | |
"S_11", | |
"S_L", | |
"T_x0", | |
"T_01", | |
"T_11" | |
], |
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
{ | |
"states": [ | |
"s1", | |
"s2", | |
"s3", | |
"s4", | |
"s5", | |
"s6" | |
], | |
"initial_state": "s1", |
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
#include "cubelet.h" | |
#define DOWN_SENSOR 83755 | |
#define UP_SENSOR 88467 | |
#define THRESHOLD_CERCANY 250 | |
#define DESCENT_TIME_ONE 1200 | |
#define DESCENT_TIME_CERO 700 | |
#define POWER_ROTATOR 76 | |
#define POWER_ROTATOR_RISE 75 |
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
#include "cubelet.h" | |
#define DOWN_SENSOR 83755 | |
#define UP_SENSOR 88467 | |
#define THRESHOLD_CERCANY 250 | |
#define DESCENT_TIME_ONE 1200 | |
#define DESCENT_TIME_CERO 700 | |
#define POWER_ROTATOR 76 | |
#define POWER_ROTATOR_RISE 75 |
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
/** | |
* motor.c | |
* Program for the two drive cubes. | |
* CULET: a Turing machine with Cubelets and Lego. | |
*/ | |
#include "cubelet.h" | |
#define CONTROLLER 85562 | |
#define MOTOR_POWER 80 |
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
/** | |
* led.c | |
* Program for the light cube. | |
* CULET: a Turing machine with Cubelets and Lego. | |
*/ | |
#include "cubelet.h" | |
#define CONTROLLER 85562 |
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
#include "cubelet.h" | |
void setup() { | |
block_value = 0; | |
} | |
void loop() { | |
block_value = maximum(); | |
} |
OlderNewer