Skip to content

Commit

Permalink
Moved Hub to its own library in utils #18
Browse files Browse the repository at this point in the history
  • Loading branch information
TJonesy committed Feb 13, 2018
1 parent df30f12 commit 2303400
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 1 deletion.
9 changes: 8 additions & 1 deletion poseidon/arduino/platformio.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
[common_env_data]
src_filter = +<../main.cpp> +<*> -<.git/> -<svn/> -<example/> -<examples/> -<test/> -<tests/> -<*.spec.*> -<**/*.spec.*>
lib_extra_dirs = ../../utils/arduino
lib_deps = Hub

[env:uno]
platform = atmelavr
board = uno
framework = arduino
src_filter = ${common_env_data.src_filter}
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
lib_deps = ${common_env_data.lib_deps}

[env:due]
platform = atmelsam
board = due
framework = arduino
src_filter = ${common_env_data.src_filter}
lib_deps = 883
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
lib_deps = ${common_env_data.lib_deps}, 883

[env:teensy31]
platform = teensy
board = teensy31
framework = arduino
src_filter = ${common_env_data.src_filter}
build_flags = -DTEENSY
lib_extra_dirs = ${common_env_data.lib_extra_dirs}
lib_deps = ${common_env_data.lib_deps}
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions utils/arduino/Hub/library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Hub",
"description": "Hub and controllers for listening on serial.",
"repository": {
"type": "git",
"url":"https://github.com/USU-Robosub/submarine.git"
},
"version": "0.1",
"include":
[
"include/*"
],
"frameworks": "*",
"platforms": "*",
"build": {
"srcFilter": "+<../main.cpp> +<*> -<.git/> -<svn/> -<example/> -<examples/> -<test/> -<tests/> -<*.spec.*> -<**/*.spec.*> -<**/**/*.spec.*>"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ void Hub::poll()
this->state = MessageState::CHECK;
}
break;
case MessageState::ALIGNING:
//Not sure what should be done here but it is complaining that it is not implemented
break;
}
}
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 2303400

Please sign in to comment.