Skip to content

Commit 7fad2a5

Browse files
committed
Renamed to match convention of Executive Main Loop
1 parent b103fea commit 7fad2a5

9 files changed

+25
-25
lines changed

CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ endif()
1212

1313
# Include paths
1414
include_directories(
15-
${PROJECT_SOURCE_DIR}/lib
15+
${PROJECT_SOURCE_DIR}/src
1616
${PROJECT_SOURCE_DIR}/testing
1717
)
1818

@@ -30,26 +30,26 @@ enable_testing()
3030
# Define test target
3131
add_executable(propulsion_test
3232
testing/Command_Interpreter_Testing.cpp
33-
lib/Command.h
34-
lib/Command_Interpreter.cpp
35-
lib/Command_Interpreter.h
36-
lib/Wiring.cpp
37-
lib/Wiring.h
38-
lib/Serial.cpp
39-
lib/Serial.h
33+
src/Command.hpp
34+
src/Command_Interpreter.cpp
35+
src/Command_Interpreter.hpp
36+
src/Wiring.cpp
37+
src/Wiring.hpp
38+
src/Serial.cpp
39+
src/Serial.hpp
4040
)
4141

4242
# Always link GTest
4343
target_link_libraries(propulsion_test GTest::gtest_main)
4444

4545
add_library(PropulsionFunctions
46-
lib/Command.h
47-
lib/Command_Interpreter.cpp
48-
lib/Command_Interpreter.h
49-
lib/Wiring.cpp
50-
lib/Wiring.h
51-
lib/Serial.cpp
52-
lib/Serial.h
46+
src/Command.hpp
47+
src/Command_Interpreter.cpp
48+
src/Command_Interpreter.hpp
49+
src/Wiring.cpp
50+
src/Wiring.hpp
51+
src/Serial.cpp
52+
src/Serial.hpp
5353
)
5454
include(GoogleTest)
5555

File renamed without changes.

lib/Command_Interpreter.cpp renamed to src/Command_Interpreter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#include <fstream>
44
#include <ctime>
55
#include <utility>
6-
#include "Serial.h"
7-
#include "Command_Interpreter.h"
8-
#include "Wiring.h"
6+
#include "Serial.hpp"
7+
#include "Command_Interpreter.hpp"
8+
#include "Wiring.hpp"
99

1010
void DigitalPin::initialize(WiringControl &wiringControl) {
1111
switch (enableType) {

lib/Command_Interpreter.h renamed to src/Command_Interpreter.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// William Barber
22
#pragma once
33

4-
#include "Command.h"
5-
#include "Wiring.h"
4+
#include "Command.hpp"
5+
#include "Wiring.hpp"
66
#include <vector>
77
#include <fstream>
88

lib/Serial.cpp renamed to src/Serial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef MOCK_RPI
22

3-
#include "Serial.h"
3+
#include "Serial.hpp"
44

55

66
int serialOpen(const char *device, const int baud) { //from WiringPi
File renamed without changes.

lib/Wiring.cpp renamed to src/Wiring.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// William Barber
22

3-
#include "Wiring.h"
3+
#include "Wiring.hpp"
44

55
#include <iostream>
66
#include <string>
@@ -20,7 +20,7 @@ void WiringControl::printToSerial(const std::string& message) {
2020

2121
#else
2222

23-
#include "Serial.h"
23+
#include "Serial.hpp"
2424

2525
bool WiringControl::initializeSerial() {
2626
if ((serial = serialOpen("/dev/serial/by-id/usb-MicroPython_Board_in_FS_mode_e66130100f198434-if00", 115200)) < 0) {
File renamed without changes.

testing/Command_Interpreter_Testing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#include "Command_Interpreter.h"
1+
#include "Command_Interpreter.hpp"
22
#include <gtest/gtest.h>
33

44
#ifndef MOCK_RPI
55

6-
#include "Serial.h"
6+
#include "Serial.hpp"
77

88
#else
99

0 commit comments

Comments
 (0)