updated example files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user