Domanda

Attualmente tenta di ottenere un po 'di codice per compilare usando Lejos per il mattone LEGO NXT. Il comando che ho eseguito è nxjc Nxt_code.java E ottengo un errore di non trovare il simbolo. Il tachopilota è stato importato. Ecco l'output dalla 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

Qualche suggerimento su come risolvere questo problema?

Nessuna soluzione corretta

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top