Lejos - 找不到符号 Tachopilot

发布于 2024-12-28 09:11:07 字数 1020 浏览 2 评论 0原文

目前正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盗琴音 2025-01-04 09:11:07

它不在 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文