Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/IO/TestingInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/IO/TestingInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions unitTesting/IO/gpio/Gpio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions working/cross-compile-paths.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export RPI_TOOLS=~/projects/rocket-code-2020/working/tools
export BOOST_DIRECTORY=~/projects/rocket-code-2020/boost_1_76_0