-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
263 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,78 @@ | ||
Multirotor Flight Controller for the Robotics Cape | ||
# Documentation | ||
[Documentation for rc_pilot](http://www-personal.umich.edu/~ghaggin/rc_pilot/) | ||
|
||
Please don't use this and expect it to work the way you want it to!!!!! | ||
I wrote this purely for my own use. NOT FOR PUBLIC USE!!!! | ||
It comes with no warranty, no manual, and I won't answer questions about | ||
how it works. If it breaks something, you get to keep both pieces. | ||
# Setup | ||
## Install dependencies on Beaglebone: | ||
|
||
However, enough people have asked me for it so here it is. | ||
```shell | ||
$ sudo apt install libjson-c-dev libjson-c3 | ||
``` | ||
|
||
## Install librobotcontrol on Beaglebone: | ||
|
||
Note: depends on libjson-c-dev & libjson-c3 | ||
sudo apt install libjson-c-dev libjson-c3 | ||
The repo for the library is located on the [Strawson Design](https://github.com/StrawsonDesign/librobotcontrol) GitHub page. There is a bug in the 1.0.4 release version (```rc_duplicate_filter``` fails for initialized filter) so [install librobotcontrol from source](http://strawsondesign.com/docs/librobotcontrol/installation.html). | ||
|
||
also libroboticscape >v0.4.0 | ||
|
||
## Transfer rc_pilot source to Beaglebone: | ||
In the scripts folder there are some convenient scripts for moving files to and from the vehicle. These scripts were build and tested on Ubuntu 19.04 but have not been tested on any other system. They should work on any system with bash and rsync. To transfer the files to the vehicle run: | ||
|
||
```shell | ||
$ ./scripts/transfer_rcpilot [usb|wifi] | ||
``` | ||
|
||
## Build on Beaglebone (from project directory): | ||
|
||
```shell | ||
$ make | ||
``` | ||
|
||
## Run RC_pilot: | ||
|
||
```shell | ||
$ cd bin | ||
$ sudo ./rc_pilot -s ../settings/quad_settings.json | ||
``` | ||
|
||
# Miscellaneous | ||
## Building docs: | ||
|
||
Make sure that doxygen is installed on your system and run | ||
|
||
``` shell | ||
$ make docs | ||
``` | ||
|
||
Open the docs with the web browser of your choice | ||
|
||
```shell | ||
$ firefox docs/html/index.html | ||
$ google-chrome docs/html/index.html | ||
``` | ||
|
||
## (COMING SOON) Testing: | ||
Test cases are written using the [Boost 1.66](https://www.boost.org/users/history/version_1_66_0.html) testing suite. Look at make target test for system install location. This suite is not written with portability in mind so it may take some tweaking to get it to work right now. Typically, installing boost with the option ```--prefix=/usr/local``` should put the libraries and headers in the correct location but don't count on it. | ||
|
||
Run the test suit with the make target: | ||
```shell | ||
$ make test | ||
``` | ||
|
||
### Adding Test Modules | ||
|
||
To add a test modules, create a new file <module_name>_test.cpp and format it as follows: | ||
|
||
```c++ | ||
#include <boost/test/unit_test.hpp> | ||
|
||
BOOST_AUTO_TEST_SUIT(Test_<module_name>) | ||
|
||
BOOST_AUTO_TEST_CASE(test1){...} | ||
|
||
BOOST_AUTO_TEST_CASE(test2){...} | ||
|
||
... | ||
|
||
BOOST_AUTO_TEST_CASE_END() | ||
``` | ||
The make target will compile each test module into a single executable and run all test cases simultaneously. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.