Constructor undefined error

With this code “DifferentialDrive chassis=new DifferentialDrive(1,2);” i get this error “The constructor DifferentialDrive(int, int) is undefined”

See the documentation for DifferentialDrive. The two arguments are speed controllers, not numbers.

Got it, Tanks! First time in frc and watched old videos but this year the wplib changed.

I’ve got the same error with the code Button Button = new JoystickButton(0,2); does anyone know why?

See the documentation for JoystickButton. The first argument is a GenericHID (eg Joystick), not an int.