Code Monkey home page Code Monkey logo

Comments (13)

aster94 avatar aster94 commented on June 12, 2024

Change that line to match your GoPro model
Change the Mac address splitting two by two

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

Thats what I have done, but I get the same error
Screenshot here: https://postimg.cc/Mndb0J1v

"Compilation error: 'HERO4' was not declared in this scope"

#define LDRSensorPIN 33 //was 26 but now working??
#define BUZZER_PIN 0
#define BUZZER_CHANNEL 0

#define CAMERA HERO4 // Change here for your camera
//from my Hero 4: d4 d9 19 c9 1f aa
byte remote_MAC_ADD[] = { 0xd4, 0xd9, 0x19, 0xc9, 0x1f, 0xaa };
const char* board = "RTLapseCAM"; //ESP Board Name

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

I get the same error if I try to compile your example sketch
"Compilation error: 'HERO3' was not declared in this scope"
Screenshot here: https://postimg.cc/rRw87HfZ

I am probably just missing something stupid that is my fault and I am sorry. I'm new to the arduino coding thing.
I would just really like to be able to do timelapse of my prints and I already had this gopro laying around for years doing nothing so I ordered the M5stick and photo sensors

One last edit and addition:
I went to a computer that has never had arduino ide installed on.
Clean new install, installed the necessary librarys and board.
Tried to compile the script again and got the exact same error

Been fighting with this for hours now.....time for some sleep

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

I tried asking chatgpt to troubleshoot the sketch. After giving it just the sketch it said the syntax looked fine. I then tried telling it the error I get when compiling. It suggested adding quotation marks around HERO3 so I tried "HERO3". When trying to compile that it started giving a bunch of new errors.

I did notice, after I try to compile it without any modification and I hover over
GoProControl gp(GOPRO_SSID, GOPRO_PASS, CAMERA);
I get
variable gp
Type: class GoProControl

GoProControl gp("xxxxxxxxx", "xxxxxxx", <recovery - expr>())

network name and password are correct from secret.h
is the <recovery - expr> what is suppose to be there?

If I take chat GPT's suggestion and add quotes around HERO3 then instead of <recovery - expr>() It does say HERO3 there but as I said, then I get a bunch of other errors.

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

One more note.
I emailed the person that wrote RTLapse yesterday.
He just responded and said
"Odd. I tried to compile my last version and got the same error for my HERO7 - which was working fine months ago. I'm as baffled as you are. It should work, "

He then suggested I ask here........

So apparently it isn't just me.

I have also run back through all the available versions of goprocontrol inside arduino IDE and get the same error with every version except 0.9.3 which just fails as soon as it starts trying to compile.
I have also tried going back to a previous version of Arduino IDE (1.8.18) that I still had on my PC. It gives the same error.
At a total loss here and don't know what else to try or who to ask.

from goprocontrol.

aster94 avatar aster94 commented on June 12, 2024

Try to compile the example fromt he library, it works for me, the problem may be on your side

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

I have tried the example goprocontrol.ino
The person from plastibots is getting the same error
5 different people from discord have all tried it and gotten the same error
The web developer that works for my wife at the university gets the same error
I have found zero people that can get the sketch to compile
Screenshot 2023-02-23 110408

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

OMG I found the issue!!!!!!!!!!!
Its the M5stack library!!!!
I saw you had a fix for compile issues on some other board so I figured I had tried everything else, I'll try rolling back the M5stack library.
Newest version is 2.0.6 which fails, as does the previous version
Rolling M5Stack board library back to 2.0.4 WORKS!!!!!
Compiled and installed!!!!!

from goprocontrol.

PlastiBots avatar PlastiBots commented on June 12, 2024

Hmm.. That's odd. You said library. Did you mean the M5 boards? Oddly, I am not even using an M5 device and also have M5 boards v2.0.4 installed, yet it still fails to compile. That said, glad it works for you! :-)

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

yeah sorry, not library, in my excitement after days of frustration I wrote that wrong.
But yes rolling back the M5stack board to V 2.0.4 is what finally worked for me.
I am on:
V 1.3.1 of the goprocontrol library
V 2.0.4 of the M5stack board

Compiled and installed.
Connect to my gopro first try and is taking pics as it should when manually blocking and exposing the photoresistor
Now to mount it and run a print!!!!
Will be building pigtails/photoresistors for all 5 printers so I can just unplug from one and move to another as needed.

20230223_115405 (1)

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

Huge thanks to Dave at PlastiBots and to Aster/goprocontrol
Sorry for all the endless comments, was just trying to document everything I tried.
goprocontrol v1.3.1 (library)
M5stack v2.0.4 (board manager)
Seems to be the solution.....at least for me

from goprocontrol.

aster94 avatar aster94 commented on June 12, 2024

I am happy it worked but honestly I don't understand why you got that error 🤷🏻‍♂️
Anyway I tried to compile with a mega board, and also the 1.3.2 should work

from goprocontrol.

Halcath avatar Halcath commented on June 12, 2024

Can confirm
Goprocontrol 1.3.2 does work.

There is something in the latest two versions of M5stack that cause the error which would explain why you were not getting the error when compiling for other boards.
Which is weird because it errors on a portion (camera enumeration) that is handled by goprocontrol.
But rolling back to 2.0.4 seems to solve the issue.
Again, thank you very much!

from goprocontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.