Skip to content

Commit 25a21fd

Browse files
authored
Merge pull request #28 from ev3dev-lang-java/feature/#26
Feature/#26
2 parents ef01561 + 4caece8 commit 25a21fd

File tree

6 files changed

+5
-64
lines changed

6 files changed

+5
-64
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ This project tries to save time in this process.
1111

1212
The installer will install the following libraries by default:
1313

14-
+ Java OpenJDK 10 (Java Runtime Image) for EV3 Brick
15-
+ Java JDK 8 (Only for BrickPi/PiStorms) (It is necessary to upgrade to OpenJDK 10)
14+
+ Java OpenJDK 11 (Java Runtime Image) for all bricks
1615

17-
If you like, you can install a utility to monitor the battery. (Recommended)
18-
19-
+ [BatteryMonitor](https://github.com/ev3dev-lang-java/batteryMonitor) (A Java utility to monitor the Battery)
20-
21-
But it is possible to install the following libraries if your project requires them.
16+
It is possible to install the following libraries if your project requires them.
2217

2318
+ [OpenCV](http://docs.opencv.org/2.4/doc/tutorials/introduction/desktop_java/java_dev_intro.html)
2419
+ [RXTX](https://github.com/rxtx/rxtx) (Serial port library used on [RPLIDAR4J](https://github.com/ev3dev-lang-java/RPLidar4J))

installer.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ elif [ "$1" == "copy-installer" ]; then
5858
CREDENTIAL="$2"
5959
run_module copy-installer
6060

61-
elif [ "$1" == "batteryMonitor" ]; then
62-
run_module java
63-
run_module battery-monitor
64-
6561
elif [ "$1" == "extended" ]; then
6662
run_module java
6763
run_module native-libraries

modules/battery-monitor.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

modules/help.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
echo "Installer options:"
44
echo "sudo ./installer.sh java [Execute modules: platform, java]"
5-
echo "sudo ./installer.sh batteryMonitor [Install batteryMonitor]"
6-
echo "sudo ./installer.sh extended [Execute modules: platform, java, batteryMonitor & native-libraries]"
5+
echo "sudo ./installer.sh extended [Execute modules: platform, java & native-libraries]"
76
echo "sudo ./installer.sh copy-installer [email protected] [Copy the installer to a remote brick]"
87
echo
98
exit

modules/native-libraries.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,10 @@ if [ "$PLATFORM" == "ev3" ] ||
88
[ "$PLATFORM" == "pistorms" ]; then
99

1010
apt-get update
11-
12-
if [ "$(isInstalled libopencv2.4-java)" == "no" ]; then
13-
apt-get install --yes --no-install-recommends libopencv2.4-java
14-
fi
15-
16-
if [ "$(isInstalled librxtx-java)" == "no" ]; then
17-
apt-get install --yes --no-install-recommends librxtx-java
18-
fi
11+
apt-get install --yes --no-install-recommends libopencv2.4-java librxtx-java
1912

2013
else
21-
echo "This platform: $PLATFORM is not suitable for Battery Monitor."
14+
echo "This platform: $PLATFORM is not suitable for native libraries."
2215
echo
2316
fi
2417

modules/vars.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,3 @@ BATT_PISTORMS="/sys/class/power_supply/pistorms-battery"
3737
# installer copy
3838
INSTALLER_DIR="/home/robot/installer"
3939
INSTALLER_EXE="/home/robot/installer/installer.sh"
40-
41-
# battery monitor
42-
BATTMON_URL="https://github.com/ev3dev-lang-java/batteryMonitor/raw/release/v0.2.0-RELEASE/releases/batteryMonitor-0.2.0-RELEASE.zip"
43-
BATTMON_FILE="/home/robot/batterymonitor.zip"
44-
BATTMON_ZIPBASE="/home/robot/batteryMonitor-0.2.0-RELEASE"
45-
BATTMON_BASE="/home/robot/batteryMonitor"

0 commit comments

Comments
 (0)