diff --git a/src/IO/TestingInterface.cpp b/src/IO/TestingInterface.cpp index 7eec6dac..04d1fef2 100644 --- a/src/IO/TestingInterface.cpp +++ b/src/IO/TestingInterface.cpp @@ -71,6 +71,11 @@ void TestingInterface::createNewGpioPwmOutput(std::string name, int pinNbr, int { return; // don't do anything for now } +void TestingInterface::createNewGpioDCMotorOutput(std::string name, int pinForward, int pinReverse, int motorPower, + int limitSwitchMinPin, int limitSwitchMaxPin, int potentiometerPin) +{ + return; // don't do anything for now +} #endif void TestingInterface::calibrateTelemetry() diff --git a/src/IO/TestingInterface.h b/src/IO/TestingInterface.h index 2c80cb89..775e600b 100644 --- a/src/IO/TestingInterface.h +++ b/src/IO/TestingInterface.h @@ -30,6 +30,8 @@ class TestingInterface : public Interface #if USE_GPIO == 1 void createNewGpioOutput(std::string name, int pinNbr) override; void createNewGpioPwmOutput(std::string name, int pinNbr, int safePosition, bool softpwm) override; + void createNewGpioDCMotorOutput(std::string name, int pinForward, int pinReverse, int motorPower, + int limitSwitchMinPin, int limitSwitchMaxPin, int potentiometerPin) override; #endif #if USE_LOGGER == 1 diff --git a/unitTesting/IO/gpio/Gpio.cpp b/unitTesting/IO/gpio/Gpio.cpp index 97a9096a..6964c9f8 100644 --- a/unitTesting/IO/gpio/Gpio.cpp +++ b/unitTesting/IO/gpio/Gpio.cpp @@ -17,8 +17,8 @@ class FakeGpio : public Gpio void createOutputs(Gpio *gpio) { - gpio->createNewGpioOutput(DIGITAL_1, 1); - gpio->createNewGpioOutput(DIGITAL_2, 2); + gpio->createNewGpioOutput(DIGITAL_1, 1, 0); + gpio->createNewGpioOutput(DIGITAL_2, 2, 0); gpio->createNewGpioPwmOutput(PWM_1, 3, 250, false); gpio->createNewGpioPwmOutput(PWM_2, 4, 0, false); diff --git a/working/cross-compile-paths.sh b/working/cross-compile-paths.sh new file mode 100644 index 00000000..c19f8bae --- /dev/null +++ b/working/cross-compile-paths.sh @@ -0,0 +1,2 @@ +export RPI_TOOLS=~/projects/rocket-code-2020/working/tools +export BOOST_DIRECTORY=~/projects/rocket-code-2020/boost_1_76_0