Skip to content

Commit

Permalink
work on documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
olzhas committed Oct 13, 2016
1 parent 6d84361 commit c8d590e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -march=native -mtune=native -
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} ${CMAKE_THREAD_LIBS_INIT} m )

FILE(GLOB_RECURSE LibFiles "*.hpp" "*.h")
add_custom_target(headers SRC_LIST ${LibFiles})
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ int main(int argc, char *argv[]) {
std::function<double(void)> readFn;
// these two function should be bindings to the actual read from sensor
// and write to command the actuator

pid->assignRWFunc(readFn, writeFn);

// pid->setSamplingTime(std::chrono::nanoseconds(1e6));
// pid->setSaturation(10);

pid->setReference(0);
std::this_thread::sleep_for(std::chrono::seconds(10));

Expand Down

0 comments on commit c8d590e

Please sign in to comment.