-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from ethanlefebv/doc
Merge new doc into main
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# _main_ folder | ||
This folder contains all the C++ code that runs on the OpenCR. The purpose of the different files is [described here](#files) and a diagram of the [program structure](#program-structure) is also shown. | ||
|
||
## Files | ||
- __actuators.cpp__ : This file contains all the functions to control the robot's movements (motors and solenoids). | ||
- __comm_functions.cpp__ : This file contains all the functions required for the communication with the Raspberry Pi over the Serial port. | ||
- __inverse_kinematics.cpp__ : This file contains the math functions to convert a 2D coordinate to motor angles. | ||
- __nut.h__ : This file contains the definition of the Nut type. | ||
- __main.ino__ : This is the main sketch file (main program for the OpenCR). | ||
|
||
## Program structure | ||
The following image shows the main structure of the program running on the Raspberry Pi and the progam running on the OpenCR. | ||
|
||
![image](program_structure.png "Image") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.