This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
85 changed files
with
9,080 additions
and
9,990 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
BasedOnStyle: LLVM | ||
IndentWidth: 4 | ||
BasedOnStyle: LLVM | ||
ColumnLimit: 120 |
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,25 +1,32 @@ | ||
#pragma once | ||
#include "../core/include/utils/controls/pid.h" | ||
#include "../core/include/utils/controls/feedback_base.h" | ||
#include "../core/include/utils/controls/pid.h" | ||
|
||
/** | ||
* Main robot characterization struct. | ||
* This will be passed to all the major subsystems | ||
* This will be passed to all the major subsystems | ||
* that require info about the robot. | ||
* All distance measurements are in inches. | ||
*/ | ||
typedef struct | ||
{ | ||
double robot_radius; ///< if you were to draw a circle with this radius, the robot would be entirely contained within it | ||
typedef struct { | ||
double robot_radius; ///< if you were to draw a circle with this radius, the | ||
///< robot would be entirely contained within it | ||
|
||
double odom_wheel_diam; ///< the diameter of the wheels used for | ||
double odom_gear_ratio; ///< the ratio of the odometry wheel to the encoder reading odometry data | ||
double dist_between_wheels; ///< the distance between centers of the central drive wheels | ||
double odom_wheel_diam; ///< the diameter of the wheels used for | ||
double odom_gear_ratio; ///< the ratio of the odometry wheel to the encoder | ||
///< reading odometry data | ||
double dist_between_wheels; ///< the distance between centers of the central | ||
///< drive wheels | ||
|
||
double drive_correction_cutoff; ///< the distance at which to stop trying to turn towards the target. If we are less than this value, we can continue driving forward to minimize our distance but will not try to spin around to point directly at the target | ||
double drive_correction_cutoff; ///< the distance at which to stop trying to turn | ||
///< towards the target. If we are less than this | ||
///< value, we can continue driving forward to | ||
///< minimize our distance but will not try to | ||
///< spin around to point directly at the target | ||
|
||
Feedback *drive_feedback; ///< the default feedback for autonomous driving | ||
Feedback *turn_feedback; ///< the defualt feedback for autonomous turning | ||
PID::pid_config_t correction_pid; ///< the pid controller to keep the robot driving in as straight a line as possible | ||
Feedback *drive_feedback; ///< the default feedback for autonomous driving | ||
Feedback *turn_feedback; ///< the defualt feedback for autonomous turning | ||
PID::pid_config_t correction_pid; ///< the pid controller to keep the robot driving in as | ||
///< straight a line as possible | ||
|
||
} robot_specs_t; |
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.