Go to Post When a team is composed completely of robot builders and technical people that team cannot exist just like a company cannot exist if it is only made up of engineers. - Garret [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Spotlight this post!  
Unread 21-01-2015, 23:07
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: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Python: button no attribute to wpilib ?

Quote:
Originally Posted by TimTheGreat View Post
So I ran your code and noticed that the error was wpilib.motorsafety... to fix this, under
Code:
self.robot_drive=wpilib.RobotDrive(self.motor1,self.motor2)
insert
Code:
self.robot_drive.setSafetyEnabled(False)
Also, no need for
Code:
self.teleopPeriodic()
. I think Peter Johnson mentioned this. Wpilib will call it on its own. And keep the while loop in teleop, and add
Code:
wpilib.Timer.delay(.01)
inside the loop.
So that would be why the Driver Station rejects the code? Thanks a bunch and I will try that tomorrow!!
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi