Skip to content

DKPY2: Arming motors message even when not arming #323

Closed

Description

@hamishwillee

I've updated simple_goto.py (see branch tmp_getting_started_dkpy2 which will be merged in #320).

If I re-run the script when the vehicle is airborne the system still reports ">>> ☺ARMING MOTORS" etc. Yes, the script does set vehicle.armed = True but it is already armed and flying and the vehicle will ignore this command. So ideally in this case the message should not be shown.

Arming motors
Taking off!
 Altitude:  20.0100002289
Reached target altitude
Going to first point...
>>> ☺ARMING MOTORS
>>> ☺Initialising APM...

Note, I appreciate that perhaps this should just be ignored. I'm just raising the issue so we make a decision and I can document the behaviour. Ditto with Initialising APM. Other alternatives

  • change the message so that it is clear that we're sending a command only
  • remove all auto-generated messages - let the script author define their own messages if needed.

I lean towards the last point, though if we were actually triggering off an arming message back from the autopilot , I might reconsider

Activity

  1. modified the milestone: v2.0.0 on Oct 14, 2015
  2. tcr3dr commented on Nov 7, 2015

    @tcr3dr
    Contributor

    Since we can't change the message coming from APM, I would propose that we instead check if we are armed already. If we are, we do not set the arming command, thus preventing an excessive message from being sent.

  3. hamishwillee commented on Nov 7, 2015

    @hamishwillee
    ContributorAuthor

    @tcr3dr Good idea.

  4. modified the milestone: v2.0.0 on Nov 10, 2015
  5. tcr3dr commented on Nov 11, 2015

    @tcr3dr
    Contributor

    Fixed in #444.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions