mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Removed extra waypoint loading.
This commit is contained in:
parent
105df731af
commit
f83fb23d7a
@ -62,9 +62,7 @@ public:
|
||||
void setCurrentIndex(uint8_t val) {
|
||||
_cmdIndex.set_and_save(val);
|
||||
_command = AP_MavlinkCommand(getCurrentIndex());
|
||||
_command.load();
|
||||
_previousCommand = AP_MavlinkCommand(getPreviousIndex());
|
||||
_previousCommand.load();
|
||||
//_hal->gcs->sendMessage(MAVLINK_MSG_ID_WAYPOINT_CURRENT);
|
||||
}
|
||||
|
||||
@ -286,9 +284,9 @@ public:
|
||||
}
|
||||
|
||||
_cmdIndex = getNextIndex();
|
||||
Serial.print("cmd : "); Serial.println(int(_cmdIndex));
|
||||
Serial.print("cmd prev : "); Serial.println(int(getPreviousIndex()));
|
||||
Serial.print("cmd num : "); Serial.println(int(getNumberOfCommands()));
|
||||
//Serial.print("cmd : "); Serial.println(int(_cmdIndex));
|
||||
//Serial.print("cmd prev : "); Serial.println(int(getPreviousIndex()));
|
||||
//Serial.print("cmd num : "); Serial.println(int(getNumberOfCommands()));
|
||||
_command = AP_MavlinkCommand(getCurrentIndex());
|
||||
_previousCommand = AP_MavlinkCommand(getPreviousIndex());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user