Skip to content

Commit

Permalink
Added get angle but did not implement it yet. Will do so after meetin…
Browse files Browse the repository at this point in the history
…g with jess.
  • Loading branch information
HakopZ committed Jan 6, 2025
1 parent ce368f7 commit a4dc9a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/EZ-Template/drive/drive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,10 @@ class Drive {
*/
void drive_imu_display_loading(int iter);

/**
* Get angle of the robot, depending on focused sensor
*/
double get_angle();
/**
* Practice mode for driver practice that shuts off the drive if you go max speed.
*
Expand Down
4 changes: 4 additions & 0 deletions src/EZ-Template/drive/drive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ void Drive::drive_defaults_set() {
as::limit_switch_lcd_initialize(nullptr, nullptr);
}

double Drive::get_angle()
{
return 0;
}
double Drive::drive_tick_per_inch() {
if (is_tracker == ODOM_TRACKER)
return odom_tracker_right->ticks_per_inch();
Expand Down

0 comments on commit a4dc9a7

Please sign in to comment.