mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
removed typo
This commit is contained in:
parent
1e855503da
commit
94ef8a91ff
@ -54,7 +54,7 @@ static struct Location get_cmd_with_index(int i)
|
||||
//temp.alt += home.alt;
|
||||
//}
|
||||
|
||||
if(temp.options & MASK_OPTIONS_RELATIVE_ALT){
|
||||
if(temp.options & WP_OPTION_RELATIVE){
|
||||
// If were relative, just offset from home
|
||||
temp.lat += home.lat;
|
||||
temp.lng += home.lng;
|
||||
@ -67,6 +67,7 @@ static struct Location get_cmd_with_index(int i)
|
||||
// -------
|
||||
static void set_cmd_with_index(struct Location temp, int i)
|
||||
{
|
||||
|
||||
i = constrain(i, 0, g.command_total.get());
|
||||
//Serial.printf("set_command: %d with id: %d\n", i, temp.id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user