I’m trying to use command-based to program our codes. We only use robot.file before, so we meet some problems and don’t know how to slove even if we look at wpilib. Could anyone can help us?
Your Drivetrain class (in Drivetrain.Java) doesn’t define an arcadeDrive method. You need to write one, probably just a one-line method that passes the arguments to m_drive.arcadeDrive().
Implementation looks fine. My only comment would be on the names of the parameters: the m_ prefix is used to indicate that a variable is a member variable of a class, so it shouldn’t be used on function parameters.
m_ is used in class member variables to indicate that they’re, well, member variables. Usually this is only used for private member variables, as public member variables usually use straight naming or title case.