Quote:
Originally Posted by droswell
When I try to add the method to the execute() section of our DriveWithJoystick command, I get the error "No known conversion for argument 1 from 'Joystick*' to 'Joystick'.
From the command DriveWithJoystick
Code:
void DriveWithJoystick::Execute()
{
Robot::driveSubsystem->takeJoystickInputs(Robot::io->getJoystick1() );
}
|
What type does
getJoystick1() return? The error suggests that you're trying to give
takeJoystickInputs() a pointer to a Joystick object, but the function expects an actual Joystick rather than a pointer to one.
Did you mean to call
getJoystick(1)?