我是vxworks的新手,在将VxWorks映像从主机加载到目标计算机后遇到了问题。在目标机器上加载图像后(包括构建在符号表中),我在命令cd,ls等中遇到问题.cd命令正在成功但是在cd之后执行ls命令时它显示错误为value = -1 = 0xffffffff(打印错误代码为0x3d0004)。经过大量尝试构建VxWorks映像后,我无法解决问题。请求任何人在这方面取悦。我也不确定cd命令是否成功执行,因为我在执行CD或LS命令时无法在网络上看到任何FTP消息。
由于 Vaibhav的
答案 0 :(得分:2)
可以设置初始目录。在使用import java.text.DecimalFormat;
/* amazing.
*/
public class Cylinder {
/* amazing.
*/
private String label;
private double height; /* height of cylinder. */
private double radius; /* radius of cylinder. */
public static final double PI = Math.PI; /*constant Pi. */
private double diameter;
private double circumference;
private double area;
private double volume;
private DecimalFormat df = new DecimalFormat("#,##0.0##");
////////////////////////////////////////
public boolean setLabel(String labelIn){
if (label == null)
{
return false;
}
else
{
label = labelIn;
label = label.trim();
return true;
}
}
public String getLabel() {
return label;
}
public void setHeight(double heightIn) {
height = heightIn;
}
public double getHeight() {
return height;
}
public void setRadius(double radiusIn) {
radius = radiusIn;
}
public double getRadius() {
return radius;
}
public double diameter() {
return radius * 2;
}
public double circumference() {
return 2 * PI * getRadius();
}
public double area() {
return ((2 * PI * radius * height) + (2 * PI * Math.pow(radius, 2)));
}
public double volume() {
return PI * Math.pow(radius, 2) * height;
}
/////////////////////////////////////
/////////////////////////////////////
public String toString() {
return "\n" + "\"" + getLabel() + "\"" + " is a cylinder with radius = "
+ df.format(getRadius()) + " units and height = "
+ df.format(getHeight()) + ",\n"
+ " which as a diameter = "
+ df.format(diameter()) + " units, circumference = "
+ df.format(circumference()) + " units,\n"
+ " area = " + df.format(area()) + " square units, and volume = "
+ df.format(volume())
+ " cubic units.";
}
}
或类似命令之前,请尝试更改为计算机的其中一个驱动器(例如cd "/tffs0"
)。
要获取所有可用设备的列表,请键入ls
。