Thread
:
Conditional Command Group?
View Single Post
#
10
11-02-2015, 11:33
Pault
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Re: Conditional Command Group?
I'm not sure how much you know about inheritance (maybe your mentor can help you), but you could create a class that extends Cmd2 and overrides the isFinished method to stop immediately if the conditions are met.
Pault
View Public Profile
Find all posts by Pault
Find CD-Media Photos by Pault
Find CD-Media Papers by Pault