目前正在尝试使用 Lejos 为 Lego NXT 积木编译一些代码。我运行的命令是nxjc Nxt_code.java
,我得到一个找不到符号错误。TachoPilot 已导入。这是控制台的输出:
`Nxt_code.java:14: cannot find symbol
symbol : class TachoPilot
location: package lejos.robotics.navigation
import lejos.robotics.navigation.TachoPilot;
^
Nxt_code.java:25: cannot find symbol
symbol : class TachoPilot
location: class NXT.Nxt_code
private TachoPilot pilot;
^
Nxt_code.java:313: cannot find symbol
symbol : class TachoPilot
location: class NXT.Nxt_code
public Nxt_code(TachoPilot pilot) {
^
Nxt_code.java:56: cannot find symbol
symbol : class TachoPilot
location: class NXT.Nxt_code
TachoPilot pilot = new TachoPilot(WHEEL_DIAMETER, TRACK_WIDTH, Motor.B,
^
Nxt_code.java:56: cannot find symbol
symbol : class TachoPilot
location: class NXT.Nxt_code
TachoPilot pilot = new TachoPilot(WHEEL_DIAMETER, TRACK_WIDTH, Motor.B,
^
5 errors
有关如何解决此问题的任何建议?