I placed myFocuserPro2libraries in
C:\Users\Astra_1\Documents\Arduino\libraries
However I still have compilation error.
I even tried to place it in the sketch subfolder, same result.
Please help.
Thanks in advance and best regards,
Bojan
Thank you for the reply :-)
I think I followed that instruction- on the screen dump it is visible that I have myQueue folder in C:\Users\Astra_1\Documents\Arduino\libraries folder, but I still have the same error, even after restarting windows.
What i am doing wrong?
In that folder, the screencapture c_211.jpg
In that myQueue folder, there should be a single file called myQueue.h
Check that the file is there.
If it is
Start Arduino IDE,
On the menu bar at the top,
File
Preferences
In this pop up preferences window
Under Sketchbook Location
It will show the location where the myFocuserPro2 libraries should be copied to
Mine says
D:\Documents\Arduino
Because I relocated my user Documents folder to be on a HDD and not C: drive
So i have
D:\Documents\Arduino\Libraries
and in that Libraries folder are all the myFocuserPro libraries
in your case it should be
C:\Users\Astra_1\Documents\Arduino
as the sketchbook location under preferences
Last edit: brownrb 2021-07-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, in Menu>File>Preferencies>Settings>Sketchbook location I have :
C:\Users\Astra_1\Documents\Arduino\libraries
and in this folder there are other subfolders (libraries), including myQueue where I have myQueue.h.
But for some reason my Arduino IDE still can't find that header file..
I will try to move everything on my H drive and see what happens..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes..
I had that originally, but for some reason, I was placing myFocurer libraries in exactly that folder (C:\Users\Astra_1\Documents\Arduino) which was wrong.
Then I tried other things, run out of patience.. and bothered half the world with my problems.. my apologies for that.
Anyway, it works now.
Thanks again :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also tried something totally desperate this morning:
I replaced #include <myqueue.h>
with the content of myQueue.h file
Now the problem is with myEEPROM.h, as expected (next #include statement.. by the way, I had to un-comment it to proceed with compilation from previous point? why was it commented?).</myqueue.h>
It seems I may be able to overcome the library problems by replacing #include statements with required libraries contents, but I never had to this in the past...
Is it possible my copy of Arduino simply doesn't recognize myLibraries... possibly everything else in that folder? Not likely because library update works OK (when I specify some other empty folder, it wants to install all the libraries, but now it doesn't so that's why I think the folder is OK)
myFP2_ULN2003_312:93:1: error: 'Queue' does not name a type
Queue<string> queue(QUEUELENGTH); // receive serial queue of commands</string>
^~~~~
In file included from F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino:111:0:
sketch\serialcomms.h: In function 'void ser_comms()':
serialcomms.h:95:8: error: 'queue' was not declared in this scope
In file included from F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino:111:0:
sketch\serialcomms.h: In function 'void serialEvent()':
serialcomms.h:615:11: error: 'queue' was not declared in this scope
F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino: In function 'void writeEEPROMNow()':
myFP2_ULN2003_312:139:3: error: 'EEPROM_writeAnything' was not declared in this scope
EEPROM_writeAnything(currentaddr, myfocuser);
^~~~~~~~~~~~~~~~~~~~
F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino: In function 'void setup()':
myFP2_ULN2003_312:393:5: error: 'EEPROM_readAnything' was not declared in this scope
F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino: In function 'void loop()':
myFP2_ULN2003_312:523:8: error: 'queue' was not declared in this scope
if ( queue.count() >= 1 ) // check for serial command
You are still getting errors on these files because Arduino is not configured properly.
It is sill not correct
You said
C:\Users\Astra_1\Documents\Arduino\libraries
but the screencap clearly shows it as
F:\Data_disk\Arduino_Libraries\
It looks like things got horibbly jumbled. My best advice is to delete it all and start over with a clean install of Arduino
What I would recommend is
1. Remove Arduino IDE completely
2. Delete the F:\Data_disk\Arduino_Libraries folder (or copy it somewhere else for safe keeping)
3. Delete the C:\Users\Astra_1\Documents\Arduino folder
4. Go into C:\Program Files (x86)\Arduino and delete any files or folders in that folder
5. Go into C:\Users\rob\AppData\Local\Arduino15 and delete all the folders and files there
In your case it will probably be
C:\Users\Astra_1\AppData\Local\Arduino15
reboot
Install Arduino IDE 1.6.13 (everything including drivers)
Once the install is complete
Start Aeduino IDE
Open File-Preferences to find the sketchbook location
write it down
It should be something like C:\Users\Astra_1\Documents\Arduino
Close Arduino IDE
Delete any other firmware files you downloaded and folders for that
Robert,
Thanks.. Yeah.. I am afraid I will have to do just as you suggested.
I will let you know how it went.
However, it is interesting that I haven't had such troubles with Arduino before, and was compiling couple of projects before, including OnStep (MEGA, STM32...), some applications using LCD 1602 display and the same path library was used..
Anyway, doesn't matter - I must have been doing something wrong because everybody else succeeded :-)
Thanks again,
Bojan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Robert,
I tried on laptop, the same...
So now I am cleaning my deskto.
You mentioned:
1. Install Arduino IDE 1.6.13 (everything including drivers)
2.
Did you mean 1.6.13 or 1.8.13?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I downloaded Arduino 1.8.15, installed it clean, followed the procedure to the letter and the result is the same:
myFP2_ULN2003_312:47:10: fatal error: myQueue.h: No such file or directory
include <myqueue.h> // By Steven de Salas
^~~~~~~~~~~
compilation terminated.
exit status 1
myQueue.h: No such file or directory</myqueue.h>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Robert,
Now I have a question:
I can see from code that pushbuttons are implemented as analogue input.
Is there a particular reason for this (apart from saving 1 pin)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Forum,
I placed myFocuserPro2libraries in
C:\Users\Astra_1\Documents\Arduino\libraries
However I still have compilation error.
I even tried to place it in the sketch subfolder, same result.
Please help.
Thanks in advance and best regards,
Bojan
Arduino: 1.8.13 (Windows 7), Board: "Arduino Nano, ATmega328P"
myFP2_ULN2003_312:47:10: fatal error: myQueue.h: No such file or directory
include <myqueue.h> // By Steven de Salas</myqueue.h>
compilation terminated.
exit status 1
myQueue.h: No such file or directory
Last edit: Bojan Stajcar 2021-07-23
I am still trying, but no luck.
Is this myQueue.h OK?
Still no joy..
What I am doing wrong?
Last edit: Bojan Stajcar 2021-07-24
Unzip the firmware file. It will make a number of folders.
Locate the folder myFocuserPro2libraries, and in that folder
There should be SIXTEEN folders
Bounce2
LCD5110_Basic
myAFMotor
myDallasTemperature
myDHT21
myEEPROM
myHalfStepper
myI2cKeypad
myIRRemote
myOLED
myQueue
myRotaryEncoder
myTFTv2
myUTFT
newliquidCrystal
OneWire
Copy these folders to Documents\Arduino\libraries folder (for windows). Replace any existing folders or files.
DO NOT COPY THESE TO THE C:\Program Files(x86)\Arduino
Do not edit or replace any of these files. They have been edited and modified to use with the myFocuserPro firmware.
Thank you for the reply :-)
I think I followed that instruction- on the screen dump it is visible that I have myQueue folder in C:\Users\Astra_1\Documents\Arduino\libraries folder, but I still have the same error, even after restarting windows.
What i am doing wrong?
In that folder, the screencapture c_211.jpg
In that myQueue folder, there should be a single file called myQueue.h
Check that the file is there.
If it is
Start Arduino IDE,
On the menu bar at the top,
File
Preferences
In this pop up preferences window
Under Sketchbook Location
It will show the location where the myFocuserPro2 libraries should be copied to
Mine says
D:\Documents\Arduino
Because I relocated my user Documents folder to be on a HDD and not C: drive
So i have
D:\Documents\Arduino\Libraries
and in that Libraries folder are all the myFocuserPro libraries
in your case it should be
C:\Users\Astra_1\Documents\Arduino
as the sketchbook location under preferences
Last edit: brownrb 2021-07-24
Hi Robert,
Thank you for the reply...
Yes, in Menu>File>Preferencies>Settings>Sketchbook location I have :
C:\Users\Astra_1\Documents\Arduino\libraries
and in this folder there are other subfolders (libraries), including myQueue where I have myQueue.h.
But for some reason my Arduino IDE still can't find that header file..
I will try to move everything on my H drive and see what happens..
C:\Users\Astra_1\Documents\Arduino\libraries
as I have said before this is wrong
You have to change it to
C:\Users\Astra_1\Documents\Arduino
Yes..
I had that originally, but for some reason, I was placing myFocurer libraries in exactly that folder (C:\Users\Astra_1\Documents\Arduino) which was wrong.
Then I tried other things, run out of patience.. and bothered half the world with my problems.. my apologies for that.
Anyway, it works now.
Thanks again :-)
I moved everything to my F drive, problem is still there..
Last edit: Bojan Stajcar 2021-07-24
I also tried something totally desperate this morning:
I replaced #include <myqueue.h>
with the content of myQueue.h file
Now the problem is with myEEPROM.h, as expected (next #include statement.. by the way, I had to un-comment it to proceed with compilation from previous point? why was it commented?).</myqueue.h>
It seems I may be able to overcome the library problems by replacing #include statements with required libraries contents, but I never had to this in the past...
Is it possible my copy of Arduino simply doesn't recognize myLibraries... possibly everything else in that folder? Not likely because library update works OK (when I specify some other empty folder, it wants to install all the libraries, but now it doesn't so that's why I think the folder is OK)
Last edit: Bojan Stajcar 2021-07-24
Another desperate attempt:
I placed required (?) header files in project folder.
Now I have different problem:
Arduino: 1.8.13 (Windows 7), Board: "Arduino Nano, ATmega328P"
myFP2_ULN2003_312:93:1: error: 'Queue' does not name a type
Queue<string> queue(QUEUELENGTH); // receive serial queue of commands</string>
^~~~~
In file included from F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino:111:0:
sketch\serialcomms.h: In function 'void ser_comms()':
serialcomms.h:95:8: error: 'queue' was not declared in this scope
if ( queue.count() == 0 )
sketch\serialcomms.h:95:8: note: suggested alternative: 'square'
if ( queue.count() == 0 )
serialcomms.h:97:28: error: 'queue' was not declared in this scope
receiveString = (String) queue.pop();
sketch\serialcomms.h:97:28: note: suggested alternative: 'square'
receiveString = (String) queue.pop();
In file included from F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino:111:0:
sketch\serialcomms.h: In function 'void serialEvent()':
serialcomms.h:615:11: error: 'queue' was not declared in this scope
sketch\serialcomms.h:615:11: note: suggested alternative: 'square'
F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino: In function 'void writeEEPROMNow()':
myFP2_ULN2003_312:139:3: error: 'EEPROM_writeAnything' was not declared in this scope
EEPROM_writeAnything(currentaddr, myfocuser);
^~~~~~~~~~~~~~~~~~~~
F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino: In function 'void setup()':
myFP2_ULN2003_312:393:5: error: 'EEPROM_readAnything' was not declared in this scope
myFP2_ULN2003_312:410:5: error: 'EEPROM_readAnything' was not declared in this scope
F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino: In function 'void loop()':
myFP2_ULN2003_312:523:8: error: 'queue' was not declared in this scope
if ( queue.count() >= 1 ) // check for serial command
F:\Data_disk\PROJ\Astro\Equipment\Telescope\focuser\Focus\Arduino_focuser\Arduino ASCOM Focuser Pro2 DIY\myFP2-Firmware-312\myFP2_ULN2003_312\myFP2_ULN2003_312.ino:523:8: note: suggested alternative: 'square'
if ( queue.count() >= 1 ) // check for serial command
exit status 1
'Queue' does not name a type
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
You are still getting errors on these files because Arduino is not configured properly.
It is sill not correct
You said
C:\Users\Astra_1\Documents\Arduino\libraries
but the screencap clearly shows it as
F:\Data_disk\Arduino_Libraries\
It looks like things got horibbly jumbled. My best advice is to delete it all and start over with a clean install of Arduino
What I would recommend is
1. Remove Arduino IDE completely
2. Delete the F:\Data_disk\Arduino_Libraries folder (or copy it somewhere else for safe keeping)
3. Delete the C:\Users\Astra_1\Documents\Arduino folder
4. Go into C:\Program Files (x86)\Arduino and delete any files or folders in that folder
5. Go into C:\Users\rob\AppData\Local\Arduino15 and delete all the folders and files there
In your case it will probably be
C:\Users\Astra_1\AppData\Local\Arduino15
reboot
Cheers
Robert
Robert,
Thanks.. Yeah.. I am afraid I will have to do just as you suggested.
I will let you know how it went.
However, it is interesting that I haven't had such troubles with Arduino before, and was compiling couple of projects before, including OnStep (MEGA, STM32...), some applications using LCD 1602 display and the same path library was used..
Anyway, doesn't matter - I must have been doing something wrong because everybody else succeeded :-)
Thanks again,
Bojan
Robert,
I tried on laptop, the same...
So now I am cleaning my deskto.
You mentioned:
1. Install Arduino IDE 1.6.13 (everything including drivers)
2.
Did you mean 1.6.13 or 1.8.13?
I downloaded Arduino 1.8.15, installed it clean, followed the procedure to the letter and the result is the same:
myFP2_ULN2003_312:47:10: fatal error: myQueue.h: No such file or directory
include <myqueue.h> // By Steven de Salas
^~~~~~~~~~~
compilation terminated.
exit status 1
myQueue.h: No such file or directory</myqueue.h>
OK..
I really feel stupid now.
I placed content of myFocuserPro2libraries into F:\Data_disk\Arduino_libraries and it works.
I am sure I did exactly that earlier, but without success.. so re-installation must have helped.
Thank you!
Robert,
Now I have a question:
I can see from code that pushbuttons are implemented as analogue input.
Is there a particular reason for this (apart from saving 1 pin)?
With a wide range of options, the Arduino Nano does not have unlimited pins to use for different things.