Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Programming Autonomous (http://www.chiefdelphi.com/forums/showthread.php?t=103441)

Team 1824 20-02-2012 21:01

Programming Autonomous
 
I have never really worked in autonomous but I was able to look up some of the basics online. I am using a simple flat sequence structure with timers in between the motor functions. for example I want the robot to drive forward for 5 seconds so I set the (Wait for) for 5000 milliseconds. When I deploy this to the cRio and run it the robot just jerks forward for about .6 seconds. I might be doing something wrong but if anyone can help that would be great.

Thanks,
Team 1824

Greg McKaskle 20-02-2012 21:11

Re: Programming Autonomous
 
The Safety Config sounds like it is enabled, so after 100ms the motors are disabled. The options are to disable the Config go to the RobotDrive palette and then the Advanced palette.

The other option is to change the autonomous VI to loop setting the speed every 50ms or so to the same value and exiting to move to the next sequence frame.

Greg McKaskle

Team 1824 21-02-2012 06:47

Re: Programming Autonomous
 
I will try that when I get back to the robot.

Thanks for your quick reply,
Team 1824

Team 1824 24-02-2012 16:22

Re: Programming Autonomous
 
Do you disable the safety config in begin.vi or autonomous.vi?

Mark McLeod 24-02-2012 16:58

Re: Programming Autonomous
 
Since you just need this in Autonomous, keep it in there.

Disable the Safety Config before entering the sequence and re-enable it at the end of the sequence when you turn your drive motors off.

Team 1824 24-02-2012 17:28

Re: Programming Autonomous
 
Alright, I will try that. Thank you.


All times are GMT -5. The time now is 11:14.

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