Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. Flight Core
  4. Get custom module to autorun

Get custom module to autorun

Scheduled Pinned Locked Moved Flight Core
3 Posts 2 Posters 843 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Andrew KeefeA Offline
    Andrew KeefeA Offline
    Andrew Keefe
    wrote on last edited by
    #1

    I have a custom module that reads data off a UART and publishes through a custom message. The message is being logged and everything is working fine.

    I can run the module through the command line just fine.

    How do I get it to run automatically at boot up? I tried creating a /fs/microsd/etc/extras.txt file to run the module, but the extras.txt file doesn't seem to be executed. When I changed from +e to -x in the rcS file it seems to stop at the buzzer and not even get to the code for executing the extras.txt file.

    Can anyone else who is building from source change rcS from +e to -x and still boot properly? Is there maybe an issue with the file? It closely matches the PX4 code.

    1 Reply Last reply
    0
    • modaltbM Offline
      modaltbM Offline
      modaltb
      ModalAI Team
      wrote on last edited by
      #2

      Hi @Andrew-Keefe ,

      Sounds like you are modifying source code ya?

      If that's the case then you can start up the module by adding it here:
      https://github.com/PX4/PX4-Autopilot/blob/master/boards/modalai/fc-v1/init/rc.board_sensors

      1 Reply Last reply
      0
      • Andrew KeefeA Offline
        Andrew KeefeA Offline
        Andrew Keefe
        wrote on last edited by
        #3

        Thanks @modaltb , that worked! I had to set it to run as a background function using the &. It's running perfectly now.

        I probably want to rewrite it as a task, but that example code looked tough to follow. I wish the PX4 developer manual included more step by step tutorials, like the ROS tutorials.

        1 Reply Last reply
        1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        ModalAI
        Categories Recent Tags ModalAI.com Docs
        © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups