Can't pass object into function

So I’m trying to make a program to provide a interface between a raspberry pi and a accelerometer/gyroscope. I need this function to update as often as possible and I want to set a timer for when it will run. And here is my code: void updateGyro(Gyro gyro) { gyro.update(); } int main() { if… Read More Can't pass object into function