Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atcommander: force out of bootload mode, Python3 compatible #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Aug 5, 2015

  1. atcommander: able to force out of bootloader mode

    The radio occasionally gets stuck in bootloader mode. This patch replicates
    a solution from ardupilot (libraries/GCS_MAVLink/GCS_Common.cpp) to unstick
    the radio. The solution is incorporated into the --force option, making it
    more assertive than before.
    
    This patch also slightly adjusts some of the radio response timeouts.
    Mike Clement committed Aug 5, 2015
    Configuration menu
    Copy the full SHA
    3e48023 View commit details
    Browse the repository at this point in the history
  2. atcommander: now works with Python 2 and 3.

    mday299 authored and Mike Clement committed Aug 5, 2015
    Configuration menu
    Copy the full SHA
    61129df View commit details
    Browse the repository at this point in the history
  3. atcommander: fixed param text output for Python3

    Mike Clement committed Aug 5, 2015
    Configuration menu
    Copy the full SHA
    792750a View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2015

  1. atcommander: API/CLI consistency improvements

    This patch contains several changes to make both the API and CLI
    more consistent as well as minor code cleanup, including:
     - Added param 15 (MAX_WINDOW)
     - Moved CLI-only module imports into "if __name__ ..." section
     - Allow user-specified serial read timeout
     - Always enter command mode in "local" mode
     - Added "__" to class data members
     - Class methods now have consistent return values:
       - Methods that "do" things return True or False
       - Methods that return data either return that data or None
       - Exceptions should be handled within class methods
     - Int/float queries support negative numbers
     - Exact query supports re patterns and strips trailing newline
     - 1-second waits for entering command mode are properly set
     - Slightly more aggressive ATO and ATZ usage
     - get_radio_version() handles trailing non-numeric characters
       (hattip github user mw46d for fixing this a different way)
     - Consistent CLI exit codes that report all interesting errors
     - Shortened CLI arguments for list and set operations
     - Several CLI operations are implicitly retried
     - Radio parameters are listed using the same names used to set them
     - Indenting and trailing whitespace cleaned up
    Mike Clement committed Aug 7, 2015
    Configuration menu
    Copy the full SHA
    9084990 View commit details
    Browse the repository at this point in the history