Open Dopp-IO opened 5 months ago
replace parameters to tick functions with structs
e.g. torque_controller_mux.tick(a billion parameters) --> torque_controller_mux.tick(tcmux_intake_struct)
torque_controller_mux.tick(a billion parameters)
torque_controller_mux.tick(tcmux_intake_struct)
tcmux_intake_struct can be anonymously declared in the tick call. The advantage here is that parameters are given names.
tcmux_intake_struct
e.g. torque_controller_mux.tick({.tick = tick, .dialMode = dashboardInterface.getDialMode(), ...})
torque_controller_mux.tick({.tick = tick, .dialMode = dashboardInterface.getDialMode(), ...})
replace parameters to tick functions with structs
e.g.
torque_controller_mux.tick(a billion parameters)
-->torque_controller_mux.tick(tcmux_intake_struct)
tcmux_intake_struct
can be anonymously declared in the tick call. The advantage here is that parameters are given names.e.g.
torque_controller_mux.tick({.tick = tick, .dialMode = dashboardInterface.getDialMode(), ...})