title: Variable or field '...' declared void Error on Ardunio Compiler
body: <p>I am trying to code a flight computer.</p>
  <p>The odd think about this error is:</p>
  <p>This code block works flawlessly:</p>
  <pre><code>class PlaneStatus {
   public:
      PlaneStatus(double y, double p, double r, double t) {
        yaw = y;
        pitch = p;
        roll = r;
        throttle = t;
      }// Access specifier
      double yaw, pitch, roll, throttle;        // Attribute (int variable)     
  };
  
  void manuer(PlaneStatus ms){
    ms.pitch;
  }
  
  void setup(){}
  void loop(){}
  </code></pre>
  <p>But when I add another function completely irrelevant to that object, an error about the PlaneStatus object occurs.</p>
  <pre><code>#include &lt;Servo.h&gt;
  #include &lt;Wire.h&gt;
  
  void driveServo(Servo servo, int trin ,int arg){
    servo.write(trin+ arg);
  }
  
  class PlaneStatus {
   public:
      PlaneStatus(double y, double p, double r, double t) {
        yaw = y;
        pitch = p;
        roll = r;
        throttle = t;
      }// Access specifier
      double yaw, pitch, roll, throttle;        // Attribute (int variable)     
  };
  
  void manuer(PlaneStatus ms){
    ms.pitch;
  }
  
  void setup(){}
  
  void loop(){}
  </code></pre>
  <p>And this is the error message</p>
  <pre><code>sketch_jul01a:67:13: error: variable or field 'manuer' declared void
  
   void manuer(PlaneStatus ms){
  
               ^~~~~~~~~~~
  
  sketch_jul01a:67:13: error: 'PlaneStatus' was not declared in this scope
  
  C:\Users\isatu\AppData\Local\Temp\arduino_modified_sketch_56794\sketch_jul01a.ino:67:13: note: suggested alternative: 'mpuIntStatus'
  
   void manuer(PlaneStatus ms){
  
               ^~~~~~~~~~~
  </code></pre>
  <p>Can you guys help me figure out why is this?</p>
  <p>Thank you and all input is appreciated</p>
  <p>Note: Those codes are reproducible, you can just copy-paste.</p>