Guys , I need hel please.
It is possible storage an amount data like this? I have issues to finisch my program beacause i need storage large data and many variables.
volatile int m1Dist_learn[3600];
int rpmL1_learn[3600];
int m1pwmMan_learn[3600];
volatile int m2Dist_learn[3600];
int rpmR1_learn[3600];
int m2pwmMan_learn[3600];
unsigned long Cont1segundo = 0;
int Limitecont1s;
volatile int m1Dist_2learn[3600];
int rpmL1_2learn[3600];
int m1pwmMan_2learn[3600];
volatile int m2Dist_2learn[3600];
int rpmR1_2learn[3600];
int m2pwmMan_2learn[3600];
int Limitecont2s;
volatile int emwDist_learn[3600];
int erwmL1_learn[3600];
int em1OnStwate_learn[3600];
volatile int em2Dwist_learn[3600];
int erpwmR1_learn[3600];
int em2OnStawte_learn[3600];
volatile int femwDist_learn[3600];
int ferwmL1_learn[3600];
int fem1OnStwate_learn[3600];
volatile int fem2Dwist_learn[3600];
int ferpwmR1_learn[3600];
int fem2OnStawte_learn[3600];
volatile int gfemwDist_learn[3600];
int gferwmL1_learn[3600];
int gfem1OnStwate_learn[3600];
volatile int gfem2Dwist_learn[3600];
int gferpwmR1_learn[3600];
int gfem2OnStawte_learn[3600];
volatile int hgfemwDist_learn[3600];
int hgferwmL1_learn[3600];
int hgfem1OnStwate_learn[3600];
volatile int hgfem2Dwist_learn[3600];
int hgferpwmR1_learn[3600];
int hgfem2OnStawte_learn[3600];
volatile int jhgfemwDist_learn[3600];
int jhgferwmL1_learn[3600];
int jhgfem1OnStwate_learn[3600];
volatile int jhgfem2Dwist_learn[3600];
int jhgferpwmR1_learn[3600];
int jhgfem2OnStawte_learn[3600];
volatile int qhgfemwDist_learn[3600];
int qhgferwmL1_learn[3600];
int qhgfem1OnStwate_learn[3600];
volatile int qhgfem2Dwist_learn[3600];
int qhgferpwmR1_learn[3600];
int qhgfem2OnStawte_learn[3600];
volatile int vqhgfemwDist_learn[3600];
int vqhgferwmL1_learn[3600];
int vqhgfem1OnStwate_learn[3600];
volatile int vqhgfem2Dwist_learn[3600];
int vqhgferpwmR1_learn[3600];
int vqhgfem2OnStawte_learn[3600];
volatile int fvqhgfemwDist_learn[3600];
int fvqhgferwmL1_learn[3600];
int fvqhgfem1OnStwate_learn[3600];
volatile int fvqhgfem2Dwist_learn[3600];
int fvqhgferpwmR1_learn[3600];
int fvqhgfem2OnStawte_learn[3600];
void setup() {
// put your setup code here, to run once:
}
void loop() {
m1Dist_learn[Cont1segundo] = 0;
rpmL1_learn[Cont1segundo] = 0;
m1pwmMan_learn[Cont1segundo] = 0;
m2Dist_learn[Cont1segundo] = 0;
rpmR1_learn[Cont1segundo] = 0;
m2pwmMan_learn[Cont1segundo] = 0;/**/
Limitecont1s = 0;
m1Dist_2learn[3600] = 0;
rpmL1_2learn[3600] = 0;
m1pwmMan_2learn[3600] = 0;
m2Dist_2learn[3600] = 0;
rpmR1_2learn[3600] = 0;
m2pwmMan_2learn[3600] = 0;
Limitecont2s = 0;;
emwDist_learn[3600] = 0;
erwmL1_learn[3600] = 0;
em1OnStwate_learn[3600] = 0;
em2Dwist_learn[3600] = 0;
erpwmR1_learn[3600] = 0;
em2OnStawte_learn[3600] = 0;
femwDist_learn[3600] = 0;
ferwmL1_learn[3600] = 0;
fem1OnStwate_learn[3600] = 0;
fem2Dwist_learn[3600] = 0;
ferpwmR1_learn[3600] = 0;
fem2OnStawte_learn[3600] = 0;
gfemwDist_learn[3600] = 0;
gferwmL1_learn[3600] = 0;
gfem1OnStwate_learn[3600] = 0;
gfem2Dwist_learn[3600] = 0;
gferpwmR1_learn[3600] = 0;
gfem2OnStawte_learn[3600] = 0;
hgfemwDist_learn[3600] = 0;
hgferwmL1_learn[3600] = 0;
hgfem1OnStwate_learn[3600] = 0;
hgfem2Dwist_learn[3600] = 0;
hgferpwmR1_learn[3600] = 0;
hgfem2OnStawte_learn[3600] = 0;
jhgfemwDist_learn[3600] = 0;
jhgferwmL1_learn[3600] = 0;
jhgfem1OnStwate_learn[3600] = 0;
jhgfem2Dwist_learn[3600] = 0;
jhgferpwmR1_learn[3600] = 0;
jhgfem2OnStawte_learn[3600] = 0;
qhgfemwDist_learn[3600] = 0;
qhgferwmL1_learn[3600] = 0;
qhgfem1OnStwate_learn[3600] = 0;
qhgfem2Dwist_learn[3600] = 0;
qhgferpwmR1_learn[3600] = 0;
qhgfem2OnStawte_learn[3600] = 0;
vqhgfemwDist_learn[3600] = 0;
vqhgferwmL1_learn[3600] = 0;
vqhgfem1OnStwate_learn[3600] = 0;
vqhgfem2Dwist_learn[3600] = 0;
vqhgferpwmR1_learn[3600] = 0;
vqhgfem2OnStawte_learn[3600] = 0;
fvqhgfemwDist_learn[3600] = 0;
fvqhgferwmL1_learn[3600] = 0;
fvqhgfem1OnStwate_learn[3600] = 0;
fvqhgfem2Dwist_learn[3600] = 0;
fvqhgferpwmR1_learn[3600] = 0;
fvqhgfem2OnStawte_learn[3600] = 0;
}
Do you need these variable’s to be int’s? int’s are 32 bit so can contain almost 25 days worth of milliseconds (or almost 50 days if unsigned). Perhaps you can get away with int8 or int16?
You could also try Minimizing RAM Usage