Closed cal-pratt closed 7 years ago
edits Added a line to the startup command which enables remote debugging. This can be done through intellij or eclipse and let the user debug the pi remotely in their IDE.
I don't know why I only just added this... I've used this tool many times in the past.
Edits:
As the project has expanded the
io
package has become larger and larger. This PR attempts to re-package theio
classes to make more sense. New sub-packages have been created for this purpose.A generic
io.devices
package has been created to hold onto all of the interfaces implemented by theio
package. Further, theBarometer
andThermometer
classes have been refactored to usePressureValue
/TemperatureValue
interfaces instead ofInternalPressureValue
/TemperaturePressureValue
. This means that no new device interface had to be created to make the newBar30PressureSensor
(which reads pressure and temperature). Continuing this change, the same package has been created under test to hold onto the mock classes.During this cleanup I also removed a lot of the sensors that we don't use anymore such as the LM35, TMP36, and MPX4250AP.
The panel controllers (
EmergencyStopController
,MotionPowerStoreController
,SliderController
) have been moved to apanel
package and their dependency on the Arduino has been removed.Arduino
now implements theBoardIO
interface which is in thedevices
package.The
rpi
package was created to hold onto Raspberry Pi specific code. In the future it would be good to limit all the pi4j dependencies to this folder to help make more of the code readily testable.The
Bar30PressureSensor
depth sensor itself is now present under theio
package and implementsPressureValue
andTemperatureValue
. It follows a similar pattern to the IMU and is passed to theRov
as a generic value with multiple bounded type parameters.This still needs to be tested in hardware, but once that's done this should be good to go.