Open fanno opened 2 years ago
fined the reason why it did not compile
had to add this, (not sure what konsequence this has tho.) just so i can compile it. reason was missing "sbrk"
int freeMemory() {
return 1000000;
return 1000000; <<<<<<<
char top; return &top - reinterpret_cast<char*>(sbrk(0));
}
Started work on looking throw code to try and adde a different position system than GPS.
I only have a MEGA arduino atm so not sure if thats the fault or nor so i added a new "MEGA" definition i dont know the "real" defenition it should have. how throw this i "may" have founed some problems. pehaps there is a reason you dont use mega if så let me know and i will have to get a replacment.
in map.cpp / motor.cpp / robot.cpp
watchdogReset();
TO:
if defined(SAMD51)
watchdogReset();
endif
watchdogEnable(...)
if defined(SAMD51)
watchdogEnable(...)
endif
others: analogReadResolution() is not in mega bard so i understand this one comes up. again i can change it so it just dont call if "MEGA" but again i dont know the reson for this i am just starting out so something else me need to be done here
PINS_COUNT i am not enterly sure about this one but it is undefined ?
i am guessing it is similar to
I was also missing: SD.h not sure if it is this one. https://registry.platformio.org/libraries/arduino-libraries/SD/installation
i fixed a few other thinhs that may or may not be related. i have no more problems in the files on build when i try ot buid i get: did have to rename sunray.ino to sunray.cpp as i am using VSC (dont think thats the proble tho) Linking .pio\build\megaatmega2560\firmware.elf ... ... collect2.exe: error: ld returned 1 exit status *** [.pio\build\megaatmega2560\firmware.elf] Error 1
Not sure IF a mega version could be creted or not (eg if there is a reason why you are not using that.)
-Thanks Morten Hundevad
P.S. do you have a discoard or e-mail group i could join for things like this that "may or may NOT" be a "bug" fannojATgm@il.com