Skip to content

Commit

Permalink
remove feedforward
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienMorey committed Mar 10, 2024
1 parent e887a88 commit e9b556d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions components/chassis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from phoenix6.hardware import TalonFX, CANcoder
from phoenix6.controls import VoltageOut, VelocityVoltage, PositionDutyCycle
from phoenix6.signals import InvertedValue, NeutralModeValue, StaticFeedforwardSignValue
from phoenix6.signals import InvertedValue, NeutralModeValue
from phoenix6.configs import (
ClosedLoopGeneralConfigs,
MotorOutputConfigs,
Expand Down Expand Up @@ -92,16 +92,7 @@ def __init__(
)

# configuration for motor pid
steer_pid = (
Slot0Configs()
.with_k_p(2.4206)
.with_k_i(0)
.with_k_d(0.060654)
.with_k_s(0.16784)
.with_static_feedforward_sign(
StaticFeedforwardSignValue.USE_CLOSED_LOOP_SIGN
)
)
steer_pid = Slot0Configs().with_k_p(2.4206).with_k_i(0).with_k_d(0.060654)
steer_closed_loop_config = ClosedLoopGeneralConfigs()
steer_closed_loop_config.continuous_wrap = True

Expand Down

0 comments on commit e9b556d

Please sign in to comment.