We are trying to read a sensor that is in a different subsystem and we are having problems, basically, we need the intake to stop once the feeder sensor detects a ball && the intake sensor detects a ball.
Should we have a global variable that is updated when there is a ball in the feeder so we don’t need to require the same subsystem in the parallel command twice? We also found this, but we are not sure what we should do:
Additionally, requirements are enforced within all three types of parallel groups - a parallel group may not contain multiple commands that require the same subsystem.
Some advanced users may find this overly-restrictive - for said users, the library offers a
ScheduleCommandclass that can be used to independently “branch off” from command groups to provide finer granularity in requirement management.
By the way, when we remove the m_feeder.sense_ball() from the IntakeBall.java it works, but the intake stops once it intakes the first ball.
Thanks in advance1