deerhunter

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Position.Get(Z) returns a large range of values #5322
    deerhunter
    Participant

      Thank you Prasanna for your quick response, I also saw in the manual – API Reference V2.1.2 that this variation of 50cm is mentioned.
      I was trying to set a desired position and encountered that it is unable to maintain the height as I expected and I thought a simple code

      —————————————
      Command.arm();
      DesiredPosition.set(Z, 100);
      FlightMode.set(ATLTITUDEHOLD);
      —————————————

      where as I see in an example code on github https://github.com/DronaAviation/PlutoX-Sample-Codes/blob/master/PlutoX-ClapSensor/PlutoPilot.cpp
      it uses Althold.setRelativeAltholdHeight(200); and “Althold.h”, Is this a different library or do you think using the block above should also work fine?

      Thank you

    Viewing 1 post (of 1 total)