Comments (13)
Change that line to match your GoPro model
Change the Mac address splitting two by two
from goprocontrol.
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.
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.
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.
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.
Try to compile the example fromt he library, it works for me, the problem may be on your side
from goprocontrol.
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
from goprocontrol.
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.
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.
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.
from goprocontrol.
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.
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.
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)
- GoPro8 connection failed HOT 1
- can't connect second times. HOT 1
- Suggestion that could solve some problems HOT 5
- Nothing is showing on serial monitor by using wemos d1mini HOT 2
- Connection failed: New GoPro Firmware ? HOT 1
- MultiCam issue with 2x GoPro HERO7 Black HOT 6
- stringSearch and stringCut HOT 2
- getstatus and getmedialist gopro Hero3 HOT 5
- Having trouble with GoPro Hero7 and ESP8266 HOT 1
- HERO8 usage with ESP8266 HOT 1
- Unable to connect after reset ESP8266 HOT 1
- Issue with connecting/shooting photos after 1st time ESP8266 & Hero 7 HOT 5
- add command to download images HOT 2
- Adding GoPro zoom function HOT 1
- Getting "Connection lost" quite a lot HOT 5
- Problems trying to connect to MAX... HOT 3
- Compilation error: 'HERO3' was not declared in this scope HOT 6
- Format needed for Secrets.h HOT 4
- Stuck on line 10 with a HERO8 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goprocontrol.