Go to Post Welcome to the imperfect world of design! - Joe Johnson [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #1   Spotlight this post!  
Unread 27-01-2017, 19:19
thecoopster20 thecoopster20 is offline
4th Year Programmer - Java
FRC #3602 (Robomos)
Team Role: Programmer
 
Join Date: Mar 2016
Rookie Year: 2014
Location: Escanaba, MI
Posts: 27
thecoopster20 is an unknown quantity at this point
Multiple Sensor PID Loops

I'm relatively new to programming robots in Java and am looking for some pointers on how to accomplish the following.

Our team wants to be able to do a few PID controlled tasks, mostly with the drive system. We are using a command based structure for our code. Essentially we want to be able to use a few different sensors for a few different tasks, they are as follows:

-Average encoders to drive straight and drive for a certain distance
-Use two ultrasonic sensors to turn the robot until its relatively parallel to a surface as well as drive until we are a certain distance away from a surface
-Utilize vision to turn towards a target

Now, the solutions I've seen so far here on CD are varied. One idea I saw was to create multiple PID loops within the drive subsystem. Another idea was to create separate dummy subsystems specifically for each PID task. I'm not quite sure what the best way to approach this problem is.
Reply With Quote
 


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 04:05.

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