I need help....trying to stop my rover when it reaches a target. This is what I Have ....
wait until (( [nav |Position|] |dist| (convert [[nav |TargetPosition|] to position)) < 10 )
Set brake to .1
It's not working.
What am I doing wrong?

Tags
Vizzy

8 Comments

  • Log in to leave a comment
  • Profile image
    1,467 RikHar

    thanks everyone for the help. Got it figured out.

    +1 4.4 years ago
  • Profile image
    1,467 RikHar

    @Hannah1212 thanks for your help. Much appreciated.

    4.4 years ago
  • Profile image
    1,467 RikHar

    @LofiTurtle thank you . I will try them today and let you know. I appreciate the help a lot as i am new to the vizzy thing.

    4.4 years ago
  • Profile image
    7,504 Hannah1212

    Yep I agree. You beat me to it @LofiTurtle

    4.4 years ago
  • Profile image
    2,966 LofiTurtle
    4.4 years ago
  • Profile image
    2,966 LofiTurtle

    I checked the craft, and the issue was you were doing the less than 30 operation inside of the distance block. Make sure you have the distance between 2 vectors first, then put the entire thing into the boolean expression. Also you should use an if() instead. wait until() will stop the loop while it evaluates to false, instead of continuing on.

    4.4 years ago
  • Profile image
    1,467 RikHar

    @Hannah1212 It been uploaded as "p rover". Not to familiar with vizzy yet. any help would be appreciated. thankx

    4.4 years ago
  • Profile image
    7,504 Hannah1212

    Maybe set brake to 1 and throttle to 0? I could try to fix it if you upload the craft.

    4.4 years ago

No Upvotes

Log in in to upvote this post.