building a robot and i downloaded a linefollow program as the manual stated to do. im not very good at programming so forgive me if the solution is very simple. i am getting an error saying 'line_following was not declared in this scope'. attached below is the code
JimboZA:
I'm guessing you didn't install the library
#include <MakeItRobotics.h>//include library
Hmmm but when I install the library your code still won't compile.
So I compared your code with the example linefollow from the library folder and you're missing a line...
Look at the lines I marked with <<<<<<<<<<<<<<<<<<<<. One line is commented out in your code. Take the // away and it compiles, assuming you have the library installed.
You have:
/ You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// ********************************************************************************
#include <MakeItRobotics.h>//include library
//MakeItRobotics line_following;//declare object //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// **************************************************************************
// * Power Up Initial
// **************************************************************************
void setup()
{
Serial.begin(10420); //tell the Arduino to communicate with Make: it PCB
delay(500); //delay 500ms
line_following.line_following_setup(); //initialize the status of line following robot
li
They have:
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// ********************************************************************************
#include <MakeItRobotics.h>//include library
MakeItRobotics line_following;//declare object //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// **************************************************************************
// * Power Up Initial
// **************************************************************************
void setup()
{
ssnova23 - If you happen to check back here. Do a quick search for Make:It Robotics in this forum and find my related posts. In one I give a step-by-step guide. In others I give some troubleshooting tips once the dang program loads!