Lejos - 找不到符号 Tachopilot
目前正在尝试使用 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
关于如何解决此问题有什么建议吗?
Currently attempting to get some code to compile using Lejos for the Lego NXT brick. The command I run is nxjc Nxt_code.java
and I get a Cannot find symbol error. TachoPilot has been imported. Here is the output from the console:
`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
Any suggestions on how to resolve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它不在 0.9b 中;不确定 0.8.5,但它是 0.8。
我已经看到了一些 impls,或者从 0.8 复制它可能会起作用(需要任何调整)。
It's not in 0.9b; not sure about 0.8.5, but it's in 0.8.
I've seen a few impls, or copying it from 0.8 might work (with any tweaks necessary).