View Single Post
  #1   Spotlight this post!  
Unread 02-20-2016, 03:13 PM
XaoS XaoS is offline
Registered User
FRC #4590
 
Join Date: Jan 2014
Location: Israel
Posts: 3
XaoS is an unknown quantity at this point
GetRawAxis() crashes robot code

As part of the tests for our robots, we encountered a problem with the OI.

Every time we tried to get a value of axis of a joystick, using GetRawAxis(), GetAxis() or GetY(), our robot code just crashed (robot disabled and robot has no code for a second).

part of our OI.cpp file:
Code:
OI::OI()
{
	this->st = new Joystick(0);
}
// mainStick functions
float OI::GetMainLeftY(){
	return this->st->GetY();
}
What could be the problem?
Is there any solution?

Thanks,
#4590.
Reply With Quote