|
Re: c++ motor control
Quote:
Originally Posted by Cody Trey
RollerMotor.Set( m_rollerstick.GetY() ); //sets joystick 3 y-axis to controll the roller motor
the red section of code gives the error:
error: request for member `Set' in `((RobotDemo*)this)->RobotDemo::RollerMotor', which
is of non-class type `Jaguar*'
|
This is a shot in the dark from a die-hard C programmer who simply can't understand why people use C++.
Can you try this instead?
float foo = m_rollerstick.GetY();
RollerMotor.Set(foo); //sets joystick 3 y-axis to controll the roller motor
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
|