I have created 2 mechanisms called wrist and elbow, which I am implementing into a subsystem called arm.
Just to be clear, I am not using CommandBased, so when I say subsystem, I am not referring to a WPILib subsystem.
I am wondering if the way I am referencing the two mechanisms in my arm class will create a copy of the wrist and elbow objects, or reference them directly. Here are the relevant snippets of code.
in robotInit()
elbow = new Elbow(CAN.kElbow);
wrist = new Wrist(CAN.kWrist);
arm = new Arm(elbow, wrist);
in Arm.java
private Elbow elbow;
private Wrist wrist;
public Arm(Elbow elbow, Wrist wrist) {
this.elbow = elbow;
this.wrist = wrist;
}