laurynas / volvo_crankshaft

Volvo V50 RTI Crankshaft project
MIT License
50 stars 6 forks source link

Arduino - class LinFrame 'pop_byte' error #8

Open cavewd opened 2 years ago

cavewd commented 2 years ago

Hi! i have been following your page to this project myself and it has been very helpful. I'm new to both raspberry and Arduino, but i have not been able to fix this error through using your write up. I'm really hoping you'll be able to help me

I'm running IDE version 1.8.19, i have tried restarting building the .ino file twice but keep getting to this error, i feel like i might be missing a .h file or another library as IDE is not colouring all the code like it is seen on github. sorry for making another issue, your work has been very helpful (i am absolutely a Linux/C noob!) but i cant get around this error thanks for your time

file 1 file 2 included lin class pop_byte error e

Lukasguy commented 2 years ago

Hi, not the creator of this project but maybe I can help.

In the pictures you posted I can't see the include for lin_frame.h: #include "src/lin_frame.h" This is very important, otherwise lin_frame class and it's functions can not be found.

I was also wondering why the SoftwareSerial.h file is in the same folder as the .ino file. If your arduino IDE can not find the software serial library then you should install it using the library manager from the IDE: https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

Perhaps you should start from the original .ino first and test if everything works. Then start modifying it to add whatever you need.

Good luck!

cavewd commented 2 years ago

Hi All. this was an error on my part for being new to github! i had copied the code in each file trying to replicate Laurynas work, when i should have downloaded it as a zip and then run the .ino file. There is no issue with the project. For people like me with no experience: Make sure to find the correct software for the pro micro board(Sparkfun pro micro) online and add to the arduino coding environment, you wont find the right board without it. Similarly, make sure the cable used will transfer data not just power else you'll never find the right port or upload to the board. If you're new to Linux, make sure to look up Linux file system hierarchy as its useful when navigating to the correct file area for crankshaft install, how to enter terminal on crankshaft (dev mode) and commands like: cd, ls (LS), gitclone, rasp config, chmod -x. Use a raspberry pi software loader to put crankshaft on your pi, loads of videos online for this. and a thank you to Lukasguy, your comment about the original .ino file meant i realised where i had gone very wrong :))