Skip to content

Commit

Permalink
Fix black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Jan 30, 2022
1 parent 3595f42 commit 52b3d7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyfrc/physics/tankmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
_kitbot_width = _kitbot_wheelbase + _bumper_length * 2
_kitbot_length = 30.0 * units.inch + _bumper_length * 2

_inertia_units = (units.foot ** 2) * units.pound
_inertia_units = (units.foot**2) * units.pound
_bm_units = units.foot * units.pound


Expand Down Expand Up @@ -256,7 +256,7 @@ def theory(
logger.info(
"- Theoretical: vmax=%.3f ft/s, amax=%.3f ft/s^2, kv=%.3f, ka=%.3f",
max_velocity.m_as(units.foot / units.second),
max_acceleration.m_as(units.foot / units.second ** 2),
max_acceleration.m_as(units.foot / units.second**2),
kv.m,
ka.m,
)
Expand Down Expand Up @@ -335,7 +335,7 @@ def __init__(
self._lmotor = MotorModel(motor_config, l_kv, l_ka, l_vi)
self._rmotor = MotorModel(motor_config, r_kv, r_ka, r_vi)

self.inertia = (1 / 12.0) * robot_mass * (robot_length ** 2 + robot_width ** 2)
self.inertia = (1 / 12.0) * robot_mass * (robot_length**2 + robot_width**2)

# This is used to compute the rotational velocity
self._bm = _bm_units.m_from((x_wheelbase / 2.0) * robot_mass)
Expand Down

0 comments on commit 52b3d7c

Please sign in to comment.