Das sollte kompilieren:
Code:
#ifndef KATZE_H_
#define KATZE_H_
#include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Motor.h>
#include <SonarSRF08.h>
#define CompI2CADDR 0x30
#define CompTakeMeasure 0x01
#define CompSet 0x02
#define CompReset 0x04
class katze {
public:
katze(int ml1, int ml2, int mr1, int mr2, int md1, int md2);
void us_tm();
int us1_r();
int us2_r();
double comp_r();
void comp_tm();
void comp_reset();
void comp_calib();
void ml_speed(int v, int d);
void mr_speed(int v, int d);
void md_speed(int v, int d);
private:
int mlp1, mlp2, mrp1, mrp2, mdp1, mdp2;
int x_min, x_max, y_min, y_max;
int i;
byte MsbX,LsbX,MsbY,LsbY;
int x,y;
};
#endif /*KATZE_H_*/
mfg
Lesezeichen