updated example files

This commit is contained in:
shrkey
2016-10-10 22:44:20 +01:00
parent 9f4dffe704
commit c2a0c483a1
4 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ DW = ../../darkwater
INCLUDES = -I ../.. INCLUDES = -I ../..
all: all:
$(CC) $(INCLUDES) Motor.cpp $(DW)/DW640.cpp $(DW)/PCA9685.cpp $(DW)/I2Cdev.cpp $(DW)/gpio.cpp $(DW)/Util.cpp -o Motor $(CC) $(INCLUDES) Motor.cpp $(DW)/DWESCAPE.cpp $(DW)/PCA9685.cpp $(DW)/I2Cdev.cpp $(DW)/gpio.cpp $(DW)/Util.cpp -o Motor
clean: clean:
rm Motor rm Motor

View File

@@ -13,7 +13,7 @@ make
./AccelGyroMag ./AccelGyroMag
*/ */
#include "darkwater/DW640.h" #include "darkwater/DWESCAPE.h"
#include "darkwater/Util.h" #include "darkwater/Util.h"
#include <stdlib.h> #include <stdlib.h>
//============================================================================= //=============================================================================
@@ -24,7 +24,7 @@ int main()
return 1; return 1;
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
DW640 dw; DWESCAPE dw;
dw.initialize(); dw.initialize();
DW_Motor *dw1 = dw.getMotor(1); DW_Motor *dw1 = dw.getMotor(1);

View File

@@ -3,7 +3,7 @@ DW = ../../darkwater
INCLUDES = -I ../.. INCLUDES = -I ../..
all: all:
$(CC) $(INCLUDES) Servo.cpp $(DW)/DW640.cpp $(DW)/PCA9685.cpp $(DW)/I2Cdev.cpp $(DW)/gpio.cpp $(DW)/Util.cpp -o Servo $(CC) $(INCLUDES) Servo.cpp $(DW)/DWESCAPE.cpp $(DW)/PCA9685.cpp $(DW)/I2Cdev.cpp $(DW)/gpio.cpp $(DW)/Util.cpp -o Servo
clean: clean:
rm Servo rm Servo

View File

@@ -1,7 +1,7 @@
#define SERVO_MIN 1.250 /*mS*/ #define SERVO_MIN 1.250 /*mS*/
#define SERVO_MAX 1.750 /*mS*/ #define SERVO_MAX 1.750 /*mS*/
#include "darkwater/DW640.h" #include "darkwater/DWESCAPE.h"
#include "darkwater/Util.h" #include "darkwater/Util.h"
#include <stdlib.h> #include <stdlib.h>
@@ -14,7 +14,7 @@ int main()
return 1; return 1;
} }
DW640 dw; DWESCAPE dw;
dw.initialize(); dw.initialize();
dw.setFrequency(50); dw.setFrequency(50);