MRoboSub / mrobosub

MRoboSub main software repository
3 stars 0 forks source link

Look into using state instances instead of state types #29

Open RCoder01 opened 2 months ago

RCoder01 commented 2 months ago

@BhavyeMathur - tagging since we were discussing this

Instead of using TransitionMap = Dict[Type[NamedTuple], Type[State]], look into TransitionMap = Dict[Type[NamedTuple], State]. We can create a copy of the State when the state machine enters. This ensures that when a state is run, its default params aren't overridden.