firmwareSandsara
main.cpp File Reference
#include <Arduino.h>
#include "SdFiles.h"
#include "Motors.h"
#include "Bluetooth.h"
#include <Adafruit_NeoPixel.h>
#include <FastLED.h>
#include "WorkingArea.h"
#include "Testing.h"
#include "esp_int_wdt.h"
#include "esp_task_wdt.h"
#include "SPI.h"
#include "SdFat.h"
#include <math.h>
#include <EEPROM.h>
#include <leds.h>
Include dependency graph for main.cpp:

Macros

#define FASTLED_ESP32_I2S   true
 
#define LED_PIN   32
 
#define BRIGHTNESS   255
 
#define LED_TYPE   WS2812B
 
#define COLOR_ORDER   GRB
 

Functions

bool sdExists (String)
 esta funcion sirve para poder utilizar la funcion miembro "exists" de la libreria SdFat pero con un String como argumento. More...
 
bool sdRemove (String)
 esta funcion sirve para poder utilizar la funcion miembro "remove" de la libreria SdFat pero con un String como argumento. More...
 
int programming (String)
 Intenta actualizar el firmware. More...
 
void rebootWithMessage (String)
 Reinicia el Esp32 pero antes escribe un mensaje por Serial. More...
 
int stringToArray (String, uint8_t *, int)
 Convierte un string en un array un string de la forma x1,x2,...,xn se convierte en un array [0]=x1, [1]=x1, ...,[n-1]=xn. More...
 
int moveInterpolateTo (double x, double y, double distance)
 this function is used to go from one point to another in a straight line path formed by equidistant points of 1 mm. More...
 
void executeCode (int)
 
void Neo_Pixel (int)
 
uint32_t rainbow ()
 
void FillLEDsFromPaletteColors (uint8_t)
 
void changePalette (int pallet)
 Change the pallette of leds. More...
 
void SetupTotallyRandomPalette ()
 
void SetupBlackAndWhiteStripedPalette ()
 
void SetupPurpleAndGreenPalette ()
 
void ledsFunc (void *pvParameters)
 ledsFunc es una tarea que se corre en paralelo y que se encarga de encender los leds. More...
 
int run_sandsara (String playList, int orderMode)
 
int movePolarTo (double component_1, double component_2, double couplingAngle, bool littleMovement)
 Interpola los puntos necesarios entre el punto actual y el siguiente con el objetivo que se mueva en coordenadas polares como lo hace sisyphus. More...
 
int romSetPlaylist (String str)
 actualiza el valor, en la ROM/FLASH, el nombre de la lista de reproducción. More...
 
String romGetPlaylist ()
 recupera el nombre de la playlist guardada en ROM More...
 
int romSetOrderMode (int orderMode)
 guarda el tipo de orden de reporduccion en la memoria ROM More...
 
int romGetOrderMode ()
 recupera el valor correspondiente al tipo de reporduccion guardado en la memoria ROM. More...
 
int romSetPallete (int pallete)
 guarda la paleta de colores en rom More...
 
int romGetPallete ()
 recupera, de la ROM, la ultima palleta de colores guardada. More...
 
int romSetSpeedMotor (int speed)
 guarda la velocidad de Sandsara en la ROM More...
 
int romGetSpeedMotor ()
 recupera, de la ROM, la velocidad de Sandsara. More...
 
int romSetPeriodLed (int periodLed)
 guarda el tiempo de refresco de los leds en ROM. More...
 
int romGetPeriodLed ()
 recupera, de la ROM, el tiempo de refresco de los leds. More...
 
int romSetCustomPallete (uint8_t *positions,uint8_t *red, uint8_t *green, uint8_t *blue, int numberOfColors)
 guarda una custom pallete en la memoria ROM. More...
 
int romGetCustomPallete (CRGBPalette256 &pallete)
 recupera una paleta de colores personalizada de la memoria ROM. More...
 
int romSetBluetoothName (String str)
 guarda el nombre del dispositivo bluetooth. More...
 
String romGetBluetoothName ()
 recupera el nombre del bluetooth guardado en ROM More...
 
int romSetIntermediateCalibration (bool state)
 save the variable IntermediateCalibration in ROM. More...
 
bool romGetIntermediateCalibration ()
 get the variable IntermediateCalibration from ROM. More...
 
int romSetPositionList (int pList)
 This function save the current playlist position in ROM. More...
 
int romGetPositionList ()
 restore the current position in the playlist in ROM. More...
 
int romSetIncrementIndexPallete (bool incrementIndex)
 guarda la variable incrementIndexPallete. More...
 
bool romGetIncrementIndexPallete ()
 recupera la variable incrementIndexPallete. More...
 
int romSetLedsDirection (bool direction)
 stored the direction of leds in ROM. More...
 
bool romGetLedsDirection ()
 restored the direction of leds saved in ROM. More...
 
int romSetBrightness (uint8_t brightness)
 stored the brightness of the led strip in ROM. More...
 
int romGetBrightness ()
 to get the brightness of the led strip from ROM. More...
 
void findUpdate ()
 this function find if there is a file update in SD, and if there is one the firmware is updated. More...
 
int orderRandom (String dirFile, int numberLines)
 reordena las lineas del archivo dirFile de forma random en un archivo llamado RANDOM.playlist y borrar el archivo dirFile More...
 
void setFrom1 (int list[], int elements)
 inicializa los valores del vector en orden ascendente empezando en 1. More...
 
void removeIndex (int list[], int index, int elements)
 elimina el elemento en la posicion index del array list More...
 
int runFile (String fileName)
 execute a path More...
 
void goHomeSpiral ()
 returns to home (0,0) on a spiral path. More...
 
void bluetoothThread (void *)
 
double linspace (double init, double stop, int amount, int index)
 realiza una interpolacion lineal entre el valor init y stop dividio en tantas partes como lo indica la variable amount. More...
 
int rgb2Interpolation (CRGBPalette256 &pallete, uint8_t *matrix)
 performs an interpolation with the method of RGB^2 More...
 
void goCenterSpiral (bool stop)
 returns to home (0,0) on a spiral path. More...
 
void goEdgeSpiral (bool stop)
 returns to the outer end (SdFiles::DISTANCIA_MAX,0) on a spiral path. More...
 
void spiralGoTo (float module, float angle)
 move to a certain position in spiral path. More...
 
void moveSteps (void *pvParameters)
 mueve los motores 1 y 2. More...
 
void goPolar (double module, double angle)
 
void setup ()
 
void loop ()
 
void FillLEDsFromPaletteColors (CRGBPalette256 palette, uint8_t colorIndex)
 

Variables

SdFat SD
 
bool readingSDFile = false
 
char dataS []
 
TMC2209Stepper tmcMotorA
 
TMC2209Stepper tmcMotorB
 
bool incrementGlobal
 
double times []
 
int pointerGlobal
 
int EVERY_MILIMITERS = String(String(dataS[24]) + String(dataS[25])).toFloat()
 Parametros de ida al centro en espiral cada EVERY_MILIMITERS en modulo de recorrido dara una vuelta. More...
 
int SPEED_TO_CENTER = String(String(dataS[27]) + String(dataS[28]) + String(dataS[29])).toFloat()
 
int MAX_CHARS_PLAYLIST = String(String(dataS[31]) + String(dataS[32])).toFloat()
 Restricciones. More...
 
int LEDS_OF_HALO = String(String(dataS[68]) + String(dataS[69])).toFloat()
 
int LEDS_OF_STELLE = String(String(dataS[71]) + String(dataS[72])).toFloat()
 
int NORMAL_CURRENT = String(String(dataS[94]) + String(dataS[95]) + String(dataS[96])).toFloat()
 
int CURRENT_IN_CALIBRATION = String(String(dataS[98]) + String(dataS[99]) + String(dataS[100])).toFloat()
 
String playListGlobal
 
String bluetoothNameGlobal
 
int orderModeGlobal
 
int speedMotorGlobal
 
int ledModeGlobal
 
int periodLedsGlobal
 
bool ceroZoneGlobal
 
bool ledsOffGlobal = false
 
bool rewindPlaylist = false
 
bool incrementIndexGlobal = true
 
String currentProgramGlobal
 
String nextProgramGlobal
 
String currentPlaylistGlobal
 
int currentPositionListGlobal
 
int delayLeds
 
int pListFileGlobal
 
bool changePositionList
 
bool changeProgram
 
bool stopProgramChangeGlobal = true
 
bool stop_boton
 
bool intermediateCalibration = false
 
bool firstExecution
 
bool availableDeceleration = false
 
bool turnOnLeds = false
 
bool ledsDirection
 
bool pauseModeGlobal = false
 
bool suspensionModeGlobal = false
 
bool startMovement = false
 
long q1StepsGlobal
 
long q2StepsGlobal
 
double distanceGlobal
 
bool speedChangedMain = false
 
String changedProgram
 
int changedPosition
 
bool lastPoint = false
 
int tracksPlayed = 0
 
CRGBPalette16 NO_SD_PALLETE
 
CRGBPalette16 UPTADATING_PALLETE
 
CRGBPalette16 CALIBRATING_PALLETE
 
CRGBPalette16 SDEMPTY_PALLETE
 
CRGBPalette256 customPallete
 
CRGBPalette256 pallette1
 
CRGBPalette256 pallette2
 
CRGBPalette256 pallette3
 
CRGBPalette256 pallette4
 
CRGBPalette256 pallette5
 
CRGBPalette256 pallette6
 
CRGBPalette256 pallette7
 
CRGBPalette256 pallette8
 
CRGBPalette256 pallette9
 
CRGBPalette256 pallette10
 
CRGBPalette256 pallette11
 
CRGBPalette256 pallette12
 
CRGBPalette256 pallette13
 
CRGBPalette256 pallette14
 
CRGBPalette256 pallette15
 
Motors Sandsara
 
Bluetooth BluetoothSand
 
int errorCode
 
int NUM_LEDS
 
CRGB leds [MAX_NUMBERLEDS]
 
unsigned long timeLeds
 
uint8_t startIndex = 0
 
bool productType
 
TaskHandle_t Task1
 
TaskHandle_t Task2
 
TaskHandle_t motorsTask
 
WorkingArea haloCalib
 
Testing haloTest
 
bool readingBrightness = false
 
double maxPathSpeedGlobal
 
long maxStepsGlobal
 

Macro Definition Documentation

◆ BRIGHTNESS

#define BRIGHTNESS   255

◆ COLOR_ORDER

#define COLOR_ORDER   GRB

◆ FASTLED_ESP32_I2S

#define FASTLED_ESP32_I2S   true

◆ LED_PIN

#define LED_PIN   32

◆ LED_TYPE

#define LED_TYPE   WS2812B

Function Documentation

◆ bluetoothThread()

void bluetoothThread ( void *  )

◆ changePalette()

void changePalette ( int  pallet)

Change the pallette of leds.

Parameters
palletindicates the index pallete to be choosed.

◆ executeCode()

void executeCode ( int  )

◆ FillLEDsFromPaletteColors() [1/2]

void FillLEDsFromPaletteColors ( uint8_t  )

◆ FillLEDsFromPaletteColors() [2/2]

void FillLEDsFromPaletteColors ( CRGBPalette256  palette,
uint8_t  colorIndex 
)

◆ findUpdate()

void findUpdate ( )

this function find if there is a file update in SD, and if there is one the firmware is updated.

◆ goCenterSpiral()

void goCenterSpiral ( bool  stop)

returns to home (0,0) on a spiral path.

◆ goEdgeSpiral()

void goEdgeSpiral ( bool  stop)

returns to the outer end (SdFiles::DISTANCIA_MAX,0) on a spiral path.

◆ goHomeSpiral()

void goHomeSpiral ( )

returns to home (0,0) on a spiral path.

◆ goPolar()

void goPolar ( double  module,
double  angle 
)

◆ ledsFunc()

void ledsFunc ( void *  pvParameters)

ledsFunc es una tarea que se corre en paralelo y que se encarga de encender los leds.

◆ linspace()

double linspace ( double  init,
double  stop,
int  amount,
int  index 
)

realiza una interpolacion lineal entre el valor init y stop dividio en tantas partes como lo indica la variable amount.

Parameters
inites el valor inicial de la interpolacion.
stopes el valor final de la interpolacion.
amountes la cantidad de divisiones que va a tener la linea.
indexes la posicion correspondiente a cada division en la linea, el index 0 representa el valor init.
Returns
el valor en la posicion index de la linea.

◆ loop()

void loop ( )

◆ moveInterpolateTo()

int moveInterpolateTo ( double  x,
double  y,
double  distance 
)

this function is used to go from one point to another in a straight line path formed by equidistant points of 1 mm.

Parameters
xX axis coordinate of the target point, measured in milimeters.
yY axis coordinate of the target point, measured in milimeters.
distanceis the distance between the current point and the target point.
Returns
an error code relating to bluetooth, this could be. 1, playlist has changed. 2, orderMode has changed. 0, finished.

◆ movePolarTo()

int movePolarTo ( double  component_1,
double  component_2,
double  couplingAngle,
bool  littleMovement 
)

Interpola los puntos necesarios entre el punto actual y el siguiente con el objetivo que se mueva en coordenadas polares como lo hace sisyphus.

Parameters
component_1valor en el eje z polar, medido en milimetros.
component_2valor en el eje theta polar, medido en radianes.
couplingAnglees el angulo que se va a rotar el punto con coordenadas polares component_1, component_2 (modulo y angulo, respectivamente).
Note
es muy importante que se hayan definido las variables zCurrent y thetaCurrent antes. de llamar a esta funcion porque es apartir de estas variables que se calcula cuanto se debe mover.
Returns
un codigo de error: 0, no se recibio nada por bluetooth 1, se cambio la playlist 2, se cambio el orderMode

====comprobar si se desea cambiar de archivo o suspender o cambiar playlist u orden====

◆ moveSteps()

void moveSteps ( void *  pvParameters)

mueve los motores 1 y 2.

La velocidad de los motores se ajusta dependiendo de la distancia a recorrer del punto inicial al final, con la intencion de que la velocidad a la que viaje la esfera sea una velocidad constante. Si la velocidad de los motores es constante, la velocidad a la que se mueve la esfera no lo va a ser debido a la geometria del mecanismo. Cada vez que se mueve la posicion a la que se movio se guarda como la posicion actual del robot.

Parameters
q1_stepses el numero de pasos que va a girar el motor correspondiente al angulo q1.
q2_stepses el numero de pasos que va a girar el motor correspondiente al angulo q2.
distancees la distancia que va a recorrer entre el punto actual y el punto despues del movimiento.
Note
La distancia se mide en milimetros

◆ Neo_Pixel()

void Neo_Pixel ( int  )

◆ orderRandom()

int orderRandom ( String  dirFile,
int  numberLines 
)

reordena las lineas del archivo dirFile de forma random en un archivo llamado RANDOM.playlist y borrar el archivo dirFile

Parameters
dirFilees la direccion del archivo a ordenar ej. "/lista.txt"
numberLineses el numero de lineas que contiene el archivo
Returns
1 si se ordeno de forma correcta -1, no se pudo crear el archivo auxiliar. -2, hubo problemas al leer el archivo dirFile.

◆ programming()

int programming ( String  name)

Intenta actualizar el firmware.

Returns
Un codigo para saber si ocurre un error a la hora de realizar la actualizacion.

◆ rainbow()

uint32_t rainbow ( )

◆ rebootWithMessage()

void rebootWithMessage ( String  reason)

Reinicia el Esp32 pero antes escribe un mensaje por Serial.

Returns
Un codigo para saber si ocurre un error a la hora de realizar la actualizacion.

◆ removeIndex()

void removeIndex ( int  list[],
int  index,
int  elements 
)

elimina el elemento en la posicion index del array list

Parameters
listes el array que se va a modificar.
indexla posicion del elemento que se desea quitar.
Note
ejemplo un array con los elementos 1,2,3,4,5,6,7,8,9 se le quita su elemento en la posicion 5 quedaria 1,2,3,4,5,7,8,9

◆ rgb2Interpolation()

int rgb2Interpolation ( CRGBPalette256 &  pallete,
uint8_t *  matrix 
)

performs an interpolation with the method of RGB^2

Returns
an error code. -1 means the first value of matrix is not 0 what is not allowed. 0 means everything is ok.

◆ romGetBluetoothName()

String romGetBluetoothName ( )

recupera el nombre del bluetooth guardado en ROM

Returns
el nombre del bluetooth guardado en ROM.
Note
si no encuentra un nombre guardado, devuelve el nombre "Sandsara".

◆ romGetBrightness()

int romGetBrightness ( )

to get the brightness of the led strip from ROM.

Returns
the brightness of the led strip.

◆ romGetCustomPallete()

int romGetCustomPallete ( CRGBPalette256 &  pallete)

recupera una paleta de colores personalizada de la memoria ROM.

Parameters
palletees la paleta que se recupera de la rom.

◆ romGetIncrementIndexPallete()

bool romGetIncrementIndexPallete ( )

recupera la variable incrementIndexPallete.

Returns
true o false dependiendo lo que haya guardado en la memoria.

◆ romGetIntermediateCalibration()

bool romGetIntermediateCalibration ( )

get the variable IntermediateCalibration from ROM.

Returns
true or false depending on what is stored in ROM.
Note
if the stored value in ROM is greater than 0 false will be returned if it's not, true will be returned instead.

◆ romGetLedsDirection()

bool romGetLedsDirection ( )

restored the direction of leds saved in ROM.

Returns
true or false depending on the stored value.

◆ romGetOrderMode()

int romGetOrderMode ( )

recupera el valor correspondiente al tipo de reporduccion guardado en la memoria ROM.

Returns
el valor correspondiente al tipo de orden de reporduccion guardado en la ROM.

◆ romGetPallete()

int romGetPallete ( )

recupera, de la ROM, la ultima palleta de colores guardada.

Returns
un numero entero que indaca una paleta de colores.

◆ romGetPeriodLed()

int romGetPeriodLed ( )

recupera, de la ROM, el tiempo de refresco de los leds.

Returns
el tiempo de refresco de los leds.

◆ romGetPlaylist()

String romGetPlaylist ( )

recupera el nombre de la playlist guardada en ROM

Returns
la direccion del archivo, ejemplo "/animales.playlist"
Note
regresa siempre un nombre con terminacion ".playlist"

◆ romGetPositionList()

int romGetPositionList ( )

restore the current position in the playlist in ROM.

Returns
the postion list saved in ROM.

◆ romGetSpeedMotor()

int romGetSpeedMotor ( )

recupera, de la ROM, la velocidad de Sandsara.

Returns
un numero entero que indaca la velocidad de Sandsara, medida en milimetros por segundo.

◆ romSetBluetoothName()

int romSetBluetoothName ( String  str)

guarda el nombre del dispositivo bluetooth.

Parameters
strcorresponde al nombre del bluetooth.

◆ romSetBrightness()

int romSetBrightness ( uint8_t  brightness)

stored the brightness of the led strip in ROM.

Parameters
brightnessis the value to be stored.
Returns
an error code.

◆ romSetCustomPallete()

int romSetCustomPallete ( uint8_t *  positions,
uint8_t *  red,
uint8_t *  green,
uint8_t *  blue,
int  numberOfColors 
)

guarda una custom pallete en la memoria ROM.

Parameters
positionses la posicion del color en la paleta de colores va de 0 a 255.
redes un array que contiene los valores de Red de las posiciones en la paleta de colores.
greenes un array que contiene los valores de green de las posiciones en la paleta de colores.
bluees un array que contiene los valores de blue de las posiciones en la paleta de colores.
Returns
un codigo de error que puede siginificar lo siguiente 0, guardo la nueva pallete correctamente -1, el numero de colores no es correcto.

◆ romSetIncrementIndexPallete()

int romSetIncrementIndexPallete ( bool  incrementIndex)

guarda la variable incrementIndexPallete.

Parameters
incrementIndexes el valor que se va a guardar.
Returns
0.

◆ romSetIntermediateCalibration()

int romSetIntermediateCalibration ( bool  state)

save the variable IntermediateCalibration in ROM.

Parameters
stateis the value to be saved in ROM.
Returns
a code of error.
Note
if state is true 0 will be saved in ROM and if it's false 255 will be saved instead.

◆ romSetLedsDirection()

int romSetLedsDirection ( bool  direction)

stored the direction of leds in ROM.

Parameters
directionis the value to be stored.
Returns
an error code.

◆ romSetOrderMode()

int romSetOrderMode ( int  orderMode)

guarda el tipo de orden de reporduccion en la memoria ROM

Parameters
orderModeel valor que corresponde al orden de reproduccion que va a ser almacenado en ROM.
Returns
0

◆ romSetPallete()

int romSetPallete ( int  pallete)

guarda la paleta de colores en rom

Parameters
palletees un numero entero que indica la paleta de colres actual
Returns
0

◆ romSetPeriodLed()

int romSetPeriodLed ( int  periodLed)

guarda el tiempo de refresco de los leds en ROM.

Parameters
periodLedes el tiempo de refresco de los leds, medido en milisegundos.
Returns
0

◆ romSetPlaylist()

int romSetPlaylist ( String  str)

actualiza el valor, en la ROM/FLASH, el nombre de la lista de reproducción.

Parameters
stres la dirección en la SD de la lista de reproducción, ejemplo "/animales.playlist".
Note
únicamente guarda el nombre, ignorando '/' y ".playlist", por ejemplo, si str es "/animales.playlist" solo guarda "animales". pero la funcion romGetPlaylist() la devuelve como "/animales.playList" .

◆ romSetPositionList()

int romSetPositionList ( int  pList)

This function save the current playlist position in ROM.

Parameters
pListis the currente position to be saved.
Returns
0

◆ romSetSpeedMotor()

int romSetSpeedMotor ( int  speed)

guarda la velocidad de Sandsara en la ROM

Parameters
speedes la velocidad en milimetros por segundo de Sandsara.
Returns
0

◆ run_sandsara()

int run_sandsara ( String  playList,
int  orderMode 
)
Parameters
playlistthe name of playlist to be executed, e.g. "/animales.playlist"
orderModethe orden that files will be executed 1, files will be reproduced in descending order according to playlist. 2, All files in SD will be reproduced in a determined order.
Returns
an error code that could be one below. 1, playlist or orderMode were changed. 0, ends without error. -1, playlist was not found. -2, playlist is a directory. -3, an attempt to choose an incorrect position in playlist was performed. -4, number of files in playlist or SD are zero. -10, SD was not found.

◆ runFile()

int runFile ( String  fileName)

execute a path

Parameters
dirFile,pathdirection in SD.
Returns
an errorCode -70, instruction continue has to be performed. -71, instruction break has to be performed. 1, orderMode or playlist have been changed. 10, the function finished without errors. 20, an instruction for changing path by postion was recieved. 30, an instruction for changing path by name was recieved. 40, an instruction for suspention was recieved.

◆ sdExists()

bool sdExists ( String  )

esta funcion sirve para poder utilizar la funcion miembro "exists" de la libreria SdFat pero con un String como argumento.

◆ sdRemove()

bool sdRemove ( String  )

esta funcion sirve para poder utilizar la funcion miembro "remove" de la libreria SdFat pero con un String como argumento.

◆ setFrom1()

void setFrom1 ( int  list[],
int  elements 
)

inicializa los valores del vector en orden ascendente empezando en 1.

Parameters
listes el array que se desea inicializar.
elementses la cantidad de elementos que va a contener el array.
Note
ejemplo, el array resultante sera de forma general como este list[0] = 1, list[1] = 2, list[2] = 3... list[elements - 1] = elements.

◆ setup()

void setup ( )

◆ SetupBlackAndWhiteStripedPalette()

void SetupBlackAndWhiteStripedPalette ( )

◆ SetupPurpleAndGreenPalette()

void SetupPurpleAndGreenPalette ( )

◆ SetupTotallyRandomPalette()

void SetupTotallyRandomPalette ( )

◆ spiralGoTo()

void spiralGoTo ( float  module,
float  angle 
)

move to a certain position in spiral path.

◆ stringToArray()

int stringToArray ( String  str,
uint8_t *  array,
int  n 
)

Convierte un string en un array un string de la forma x1,x2,...,xn se convierte en un array [0]=x1, [1]=x1, ...,[n-1]=xn.

Parameters
strEs el string que se desea convertir.
arrayEs el array donde se van a guardar los valores del string
nEs el numero de elementos que tiene el string
Returns
Uno de los siguientes numeros 0, Todo salio normal. -1, No hay n elementos en el string

Variable Documentation

◆ availableDeceleration

bool availableDeceleration = false

◆ bluetoothNameGlobal

String bluetoothNameGlobal

◆ BluetoothSand

Bluetooth BluetoothSand

◆ CALIBRATING_PALLETE

CRGBPalette16 CALIBRATING_PALLETE

◆ ceroZoneGlobal

bool ceroZoneGlobal

◆ changedPosition

int changedPosition

◆ changedProgram

String changedProgram

◆ changePositionList

bool changePositionList

◆ changeProgram

bool changeProgram

◆ CURRENT_IN_CALIBRATION

int CURRENT_IN_CALIBRATION = String(String(dataS[98]) + String(dataS[99]) + String(dataS[100])).toFloat()

◆ currentPlaylistGlobal

String currentPlaylistGlobal

◆ currentPositionListGlobal

int currentPositionListGlobal

◆ currentProgramGlobal

String currentProgramGlobal

◆ customPallete

CRGBPalette256 customPallete

◆ dataS

char dataS[]
Initial value:
= {
0x00, 0x31, 0x36, 0x2c, 0x37, 0x36, 0x2c, 0x37, 0x36, 0x2c, 0x31, 0x33, 0x34,
0x2c, 0x33, 0x32, 0x37, 0x36, 0x38, 0x2c, 0x34, 0x2c, 0x32, 0x2c, 0x32,
0x30, 0x2c, 0x31, 0x35, 0x30, 0x2c, 0x34, 0x30, 0x2c, 0x31, 0x32, 0x30,
0x2c, 0x31, 0x2c, 0x35, 0x30, 0x30, 0x2c, 0x31, 0x30, 0x2c, 0x31, 0x36,
0x2c, 0x30, 0x2c, 0x33, 0x30, 0x2c, 0x31, 0x2c, 0x32, 0x2c, 0x31, 0x30,
0x30, 0x30, 0x2c, 0x31, 0x30, 0x30, 0x2c, 0x36, 0x30, 0x2c, 0x37, 0x32,
0x2c, 0x31, 0x35, 0x30, 0x2c, 0x31, 0x30, 0x30, 0x30, 0x2c, 0x32, 0x30,
0x30, 0x30, 0x30, 0x2c, 0x31, 0x30, 0x30, 0x30, 0x2c, 0x36, 0x30, 0x30,
0x2c, 0x36, 0x30, 0x30, 0x0a
}

◆ delayLeds

int delayLeds

◆ distanceGlobal

double distanceGlobal

◆ errorCode

int errorCode

◆ EVERY_MILIMITERS

int EVERY_MILIMITERS = String(String(dataS[24]) + String(dataS[25])).toFloat()

Parametros de ida al centro en espiral cada EVERY_MILIMITERS en modulo de recorrido dara una vuelta.

◆ firstExecution

bool firstExecution

◆ haloCalib

WorkingArea haloCalib

◆ haloTest

Testing haloTest

◆ incrementGlobal

bool incrementGlobal

◆ incrementIndexGlobal

bool incrementIndexGlobal = true

◆ intermediateCalibration

bool intermediateCalibration = false

◆ lastPoint

bool lastPoint = false

◆ ledModeGlobal

int ledModeGlobal

◆ leds

CRGB leds[MAX_NUMBERLEDS]

◆ LEDS_OF_HALO

int LEDS_OF_HALO = String(String(dataS[68]) + String(dataS[69])).toFloat()

◆ LEDS_OF_STELLE

int LEDS_OF_STELLE = String(String(dataS[71]) + String(dataS[72])).toFloat()

◆ ledsDirection

bool ledsDirection

◆ ledsOffGlobal

bool ledsOffGlobal = false

◆ MAX_CHARS_PLAYLIST

int MAX_CHARS_PLAYLIST = String(String(dataS[31]) + String(dataS[32])).toFloat()

Restricciones.

◆ maxPathSpeedGlobal

double maxPathSpeedGlobal

◆ maxStepsGlobal

long maxStepsGlobal

◆ motorsTask

TaskHandle_t motorsTask

◆ nextProgramGlobal

String nextProgramGlobal

◆ NO_SD_PALLETE

CRGBPalette16 NO_SD_PALLETE

◆ NORMAL_CURRENT

int NORMAL_CURRENT = String(String(dataS[94]) + String(dataS[95]) + String(dataS[96])).toFloat()

◆ NUM_LEDS

int NUM_LEDS

◆ orderModeGlobal

int orderModeGlobal

◆ pallette1

CRGBPalette256 pallette1

◆ pallette10

CRGBPalette256 pallette10

◆ pallette11

CRGBPalette256 pallette11

◆ pallette12

CRGBPalette256 pallette12

◆ pallette13

CRGBPalette256 pallette13

◆ pallette14

CRGBPalette256 pallette14

◆ pallette15

CRGBPalette256 pallette15

◆ pallette2

CRGBPalette256 pallette2

◆ pallette3

CRGBPalette256 pallette3

◆ pallette4

CRGBPalette256 pallette4

◆ pallette5

CRGBPalette256 pallette5

◆ pallette6

CRGBPalette256 pallette6

◆ pallette7

CRGBPalette256 pallette7

◆ pallette8

CRGBPalette256 pallette8

◆ pallette9

CRGBPalette256 pallette9

◆ pauseModeGlobal

bool pauseModeGlobal = false

◆ periodLedsGlobal

int periodLedsGlobal

◆ playListGlobal

String playListGlobal

◆ pListFileGlobal

int pListFileGlobal

◆ pointerGlobal

int pointerGlobal

◆ productType

bool productType

◆ q1StepsGlobal

long q1StepsGlobal

◆ q2StepsGlobal

long q2StepsGlobal

◆ readingBrightness

bool readingBrightness = false

◆ readingSDFile

bool readingSDFile = false

◆ rewindPlaylist

bool rewindPlaylist = false

◆ Sandsara

Motors Sandsara

◆ SD

SdFat SD

◆ SDEMPTY_PALLETE

CRGBPalette16 SDEMPTY_PALLETE

◆ SPEED_TO_CENTER

int SPEED_TO_CENTER = String(String(dataS[27]) + String(dataS[28]) + String(dataS[29])).toFloat()

◆ speedChangedMain

bool speedChangedMain = false

◆ speedMotorGlobal

int speedMotorGlobal

◆ startIndex

uint8_t startIndex = 0

◆ startMovement

bool startMovement = false

◆ stop_boton

bool stop_boton

◆ stopProgramChangeGlobal

bool stopProgramChangeGlobal = true

◆ suspensionModeGlobal

bool suspensionModeGlobal = false

◆ Task1

TaskHandle_t Task1

◆ Task2

TaskHandle_t Task2

◆ timeLeds

unsigned long timeLeds

◆ times

double times[]

◆ tmcMotorA

TMC2209Stepper tmcMotorA

◆ tmcMotorB

TMC2209Stepper tmcMotorB

◆ tracksPlayed

int tracksPlayed = 0

◆ turnOnLeds

bool turnOnLeds = false

◆ UPTADATING_PALLETE

CRGBPalette16 UPTADATING_PALLETE