Skip to content

Commit

Permalink
fix: addressed issues with PR #43
Browse files Browse the repository at this point in the history
  • Loading branch information
charliekush committed May 29, 2024
1 parent a3cf21e commit ed4e634
Show file tree
Hide file tree
Showing 21 changed files with 211 additions and 3,287 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,5 @@ target/
nul
out/docs/application/Service Diagram.png
out/docs/fw_flow/Firmware Flowchart.png
tests/outputs/
tests/outputs/
build/**
40 changes: 37 additions & 3 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,48 @@
{
"configurations":
[
"configurations": [
{
"name": "Particle",
"includePath": [
"${workspaceFolder}\\src",
"~/.particle/toolchains/deviceOS/5.3.0/user/inc"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22000.0",
"compilerPath": "~\\.particle\\toolchains\\gcc-arm\\10.2.1\\bin\\arm-none-eabi-gcc.exe",
"intelliSenseMode": "windows-gcc-arm",
"cStandard": "c11",
"cppStandard": "c++11",
"configurationProvider": "particle.particle-vscode-core",
"mergeConfigurations": true,
"browse": {
"limitSymbolsToIncludedHeaders": true,
"path": [
"${default}",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\user\\inc",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\hal\\inc",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\hal\\shared",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\hal\\src\\gcc",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\hal\\src\\nRF52840\\posix",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\services\\inc",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\system",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\wiring",
"~\\.particle\\toolchains\\deviceOS\\5.3.0\\third_party\\nrf5_sdk\\nrf5_sdk\\modules\\nrfx\\mdk",
"${workspaceFolder}\\src"
]
}
},
{
"name": "Particle_nix",
"includePath":
[
"${workspaceFolder}/src",
"~/.particle/toolchains/deviceOS/5.3.0/user/inc",
"/usr/include/"

],
"defines":
[
Expand Down
49 changes: 0 additions & 49 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,6 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch Scheduler Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tests/test.o",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},
{
"name": "(gdb) Launch Scheduler Google Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/gtests/test_scheduler",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},

{
"name": "Semantic Release",
"type": "debugpy",
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,5 @@
"C_Cpp.vcFormat.newLine.beforeOpenBrace.block": "newLine",
"C_Cpp.vcFormat.indent.preserveWithinParentheses": true,
"C_Cpp.vcFormat.indent.preprocessor": "oneLeft",
"C_Cpp.errorSquiggles": "enabled",
"C_Cpp.vcFormat.wrap.preserveBlocks": "never",
"C_Cpp.vcFormat.newLine.beforeOpenBrace.function": "newLine",

}
14 changes: 0 additions & 14 deletions .vscode/tasks.json

This file was deleted.

66 changes: 0 additions & 66 deletions docs/RideTask.puml

This file was deleted.

64 changes: 0 additions & 64 deletions docs/scheduler_gantt.py

This file was deleted.

18 changes: 11 additions & 7 deletions gtests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ project(TestScheduler)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_definitions(-DTEST_VERSION=1 -DGTESTING=1)
include_directories($ENV{HOME}/local/include)
link_directories($ENV{HOME}/local/lib)
add_compile_definitions(TEST_VERSION=1 GTESTING=1)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../external/googletest ${CMAKE_CURRENT_BINARY_DIR}/googletest)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../external/googletest/include)

set(SOURCE_FILES
../tests/scheduler_test_system.cpp
../src/scheduler.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../tests/scheduler_test_system.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../src/scheduler.cpp
${CMAKE_CURRENT_SOURCE_DIR}/scheduler_functions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/gtest.cpp)

add_executable(test_scheduler.o ${SOURCE_FILES})
target_link_libraries(test_scheduler.o gtest gtest_main pthread)

add_executable(test_scheduler ${SOURCE_FILES})


target_link_libraries(test_scheduler gtest gtest_main pthread)
1 change: 0 additions & 1 deletion gtests/gtest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "../tests/scheduler_test_system.hpp"
#include "scheduler_functions.hpp"
class SchedulerTest : public ::testing::Test
Expand Down
Binary file removed latex/delayed.png
Binary file not shown.
Binary file removed latex/intended.png
Binary file not shown.
24 changes: 0 additions & 24 deletions latex/main.tex

This file was deleted.

Binary file removed latex/sf.pdf
Binary file not shown.
6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

Loading

0 comments on commit ed4e634

Please sign in to comment.