Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   What is the purpose of RobotMap.java in CommandBased? (http://www.chiefdelphi.com/forums/showthread.php?t=134493)

GeeTwo 14-02-2015 01:19

Re: What is the purpose of RobotMap.java in CommandBased?
 
Quote:

Originally Posted by MrRoboSteve (Post 1443330)
3081 commonly creates a special SensorSubsystem that is the owner of nearly all of the sensors on the robot. SensorSubsystem has methods on it that allow other subsystems and commands to read sensor values.

If that works for you, fine, but it's not O-O. The sensors and actuators that work together should be part of the same subsystem. In particular, limit switches, encoders, and potentiometers whose purpose is to provide feedback on a particular actuator should be in the same subsystem with that actuator.


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

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