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

MissionRotation LUA - Load one of up to 10 mission files #28789

Closed
wants to merge 11 commits into from

Commits on Dec 1, 2024

  1. MissionRotation LUA - Load one of up to 10 mission files based on AUX…

    … switch state
    
    This LUA script is an evolution on the MissionSelector.LUA.
    Allows you to select up to 10 missions, either while arming or in the unarmed state.
    Requires that an RC_xFUNCTION be set to 24 (Mission Reset).
    The scripts should be installed in the SCRIPTS folder on the MicroSD, and the mission files in the root.
    The mission file called mission0.txt (the default mission) must exist and is loaded at boot, if the script does not find it it stops working.
    To load to the next mission file just bring AUX switch from low to high, each switch loads the next mission file in numerical order.
    If the next mission file numerically does not exist load the next one, at the end of the rotation it returns to load mission0.txt.
    Provides for sending messages under any condition, load or error.
    robustini authored Dec 1, 2024
    Configuration menu
    Copy the full SHA
    8095117 View commit details
    Browse the repository at this point in the history
  2. Update MissionRotation.md

    Fix typo
    robustini authored Dec 1, 2024
    Configuration menu
    Copy the full SHA
    fccb74d View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2024

  1. Update MissionRotation.lua

    Changed the operating logic:
    
    - always loads mission0.txt at startup, cycles missions to AUX high if held for less than 3 seconds
    - resets mission0.txt if AUX is high for more than 3 seconds
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    be00dad View commit details
    Browse the repository at this point in the history
  2. Update MissionRotation.lua

    Cosmetic
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    5a8817b View commit details
    Browse the repository at this point in the history
  3. Update MissionRotation.md

    Updated operating logic
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    75dc1e1 View commit details
    Browse the repository at this point in the history
  4. Update MissionRotation.lua

    - removal of last_sw_pos
    - removed all comments except the initial ones
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    468c730 View commit details
    Browse the repository at this point in the history
  5. Update MissionRotation.lua

    Inhibited the ability to change mission if flight mode is AUTO, with associated warning message
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    a5e5eef View commit details
    Browse the repository at this point in the history
  6. Update MissionRotation.lua

    If a mission switch is attempted in AUTO flight mode, a warning “Could not clear current mission” will be shown and no operation will be performed.
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    526f336 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4c108b1 View commit details
    Browse the repository at this point in the history
  8. Update MissionRotation.lua

    Fixed issue that sent duplicate mission change messages.
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    8186d84 View commit details
    Browse the repository at this point in the history
  9. Update MissionRotation.lua

    Second attempt: fixed duplicate message sending problem in mission loading.
    robustini authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    a96fa59 View commit details
    Browse the repository at this point in the history