View Single Post
  #1   Spotlight this post!  
Unread 23-01-2015, 15:37
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 222
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Python: TypeError: unorderable types: complex() > float()?

Hi! We have a problem when trying to sqaure root our contoller's left and right axis for a nice speed curve. The error message is:
Code:
TypeError: unorderable types: complex() > float()
. I am doing
Code:
self.robot_drive.arcadeDrive(cmath.sqrt(self.joystick.getX()),cmath.sqrt(self.joystick.getX()))
Any help will be greatly appreciated!