ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    SYS_AUTOSTART param missing, shown in QGC, after flashing the flight deck with voxl2_SDK_1.4.1

    Ask your questions right here!
    2
    11
    77
    Loading More Posts
    • 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.
    • Eric KatzfeyE
      Eric Katzfey ModalAI Team @will.huang.oksi
      last edited by

      @will-huang-oksi Don't worry about the missing parameter warning in QGC. VOXL 2 is slightly different in it's operation from standard microcontroller based boards and it doesn't use all of the same parameters which confuses QGC a bit.

      W 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @will.huang.oksi
        last edited by

        @will-huang-oksi Can you share a px4 flight log? How do you have the parameter SYS_HAS_GPS set?

        W 1 Reply Last reply Reply Quote 0
        • W
          will.huang.oksi @Eric Katzfey
          last edited by

          @Eric-Katzfey

          As shown below, many sections are in red.

          9f8df5d7-97cb-4a53-b825-b435e33d79e2-image.png

          Are they not related to the missing parameter?
          If not, how to resolve this issue after updating to voxl2_SDK_1.4.1?

          1 Reply Last reply Reply Quote 0
          • W
            will.huang.oksi @Eric Katzfey
            last edited by

            @Eric-Katzfey

            Because having the missing parameter issue and a lot of sections are in red,
            the VOXL flight deck is never armed and therefore there is no px4 log.

            Thank you for your precious time on this matter, and please let me know any other log/file will be helpful.

            Eric KatzfeyE 2 Replies Last reply Reply Quote 0
            • Eric KatzfeyE
              Eric Katzfey ModalAI Team @will.huang.oksi
              last edited by

              @will-huang-oksi You need to set some parameters, calibrate sensors, etc. to properly setup PX4 for flight. If that hasn't been done then QGC will show those tabs in red indicating that you need to address something. If you set SYS_AUTOSTART to 4001 does that make the Airframe tab change from red?

              1 Reply Last reply Reply Quote 0
              • Eric KatzfeyE
                Eric Katzfey ModalAI Team @will.huang.oksi
                last edited by

                @will-huang-oksi We have setup routines to do all of this on our drones. But if you are making your own drone then you have to know how to set those values up yourself.

                W 1 Reply Last reply Reply Quote 0
                • W
                  will.huang.oksi @Eric Katzfey
                  last edited by will.huang.oksi

                  @Eric-Katzfey

                  Thank you for the feedback.

                  Before your response, I added "-w" to re-flash the VOXL and resolved the SYS_AUTOSTART issue

                  ./install.sh -w

                  Now I can calibrate the VOXL 2 flight deck.

                  If you need the flashing process log, let me know since I don't have privilege to upload any file yet.

                  NOW the remaining issue I have is no GPS fix.
                  The output from voxl-inspect-gps is

                  dt(ms) |fix type|Sats|Latitude(deg)|Longitude(deg)| Alt(m) |Vel(m/s)|HorErr(m)|AltErr(m)|
                  124.9 | NO GPS | 0 | 0.0000000 | 0.0000000 | -17.0 | 0.00 | 4294967.295 | 3794659.840 |^C

                  In voxl-px4.conf
                  I tried GPS=AUTODETECT and GPS=MRO, but none of them works.
                  I connect Taoglas GPS "Classic" M9N w/IST8308 - M10034 to the J19 port.

                  Here is the full configuration in the voxl-px4.conf

                  AIRFRAME=MULTICOPTER
                  GPS=AUTODETECT
                  RC=CRSF_RAW
                  ESC=VOXL_ESC
                  POWER_MANAGER=VOXLPM
                  AIRSPEED_SENSOR=NONE
                  DISTANCE_SENSOR=NONE
                  OSD=DISABLE
                  DAEMON_MODE=ENABLE
                  SENSOR_CAL=ACTUAL
                  ARTIFACT_MODE=DISABLE
                  EXTRA_STEPS=()

                  Also there is no output from
                  cat /dev/ttyHS0
                  cat /dev/ttyHS1
                  cat /dev/ttyHS2
                  cat /dev/ttyHS3

                  And this is what I have from journalctl -u voxl-px4 -n 100

                  -- Logs begin at Thu 2023-03-02 12:58:02 UTC, end at Thu 2023-03-02 13:35:18 UTC. --
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [uORB] Advertising remote topic takeoff_status
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Ok executing command: mc_pos_control start
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Marking DeviceNode(qshell_req) as advertised in process_remote_topic
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: qshell gotten: mc_att_control start
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: arg0 = 'mc_att_control'
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: arg1 = 'start'
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Ok executing command: mc_att_control start
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Marking DeviceNode(qshell_req) as advertised in process_remote_topic
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: qshell gotten: mc_rate_control start
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: arg0 = 'mc_rate_controINFO [qshell] Send cmd: 'mc_rate_control start'
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2036903088, local time: 2036905841
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'mc_hover_thrust_estimator start'
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2036964219, local time: 2036966402
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'mc_autotune_attitude_control start'
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2037021853, local time: 2037025239
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'land_detector start multicopter'
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2037083571, local time: 2037085728
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'manual_control start'
                  Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2037144972, local time: 2037146917

                  Any suggestions or any information you need?

                  Thank you for helping.

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    will.huang.oksi @will.huang.oksi
                    last edited by will.huang.oksi

                    @will-huang-oksi said in SYS_AUTOSTART param missing, shown in QGC, after flashing the flight deck with voxl2_SDK_1.4.1:

                    @Eric-Katzfey

                    Thank you for the feedback.

                    Before your response, I added "-w" to re-flash the VOXL and resolved the SYS_AUTOSTART issue

                    ./install.sh -w

                    Now I can calibrate the VOXL 2 flight deck.

                    If you need the flashing process log, let me know since I don't have privilege to upload any file yet.

                    NOW the remaining issue I have is no GPS fix.
                    The output from voxl-inspect-gps is

                    dt(ms) |fix type|Sats|Latitude(deg)|Longitude(deg)| Alt(m) |Vel(m/s)|HorErr(m)|AltErr(m)|
                    124.9 | NO GPS | 0 | 0.0000000 | 0.0000000 | -17.0 | 0.00 | 4294967.295 | 3794659.840 |^C

                    In voxl-px4.conf
                    I tried GPS=AUTODETECT and GPS=MRO, but none of them works.
                    I connect Taoglas GPS "Classic" M9N w/IST8308 - M10034 to the J19 port.

                    Here is the full configuration in the voxl-px4.conf

                    AIRFRAME=MULTICOPTER
                    GPS=AUTODETECT
                    RC=CRSF_RAW
                    ESC=VOXL_ESC
                    POWER_MANAGER=VOXLPM
                    AIRSPEED_SENSOR=NONE
                    DISTANCE_SENSOR=NONE
                    OSD=DISABLE
                    DAEMON_MODE=ENABLE
                    SENSOR_CAL=ACTUAL
                    ARTIFACT_MODE=DISABLE
                    EXTRA_STEPS=()

                    Also there is no output from
                    cat /dev/ttyHS0
                    cat /dev/ttyHS1
                    cat /dev/ttyHS2
                    cat /dev/ttyHS3

                    And this is what I have from journalctl -u voxl-px4 -n 100

                    -- Logs begin at Thu 2023-03-02 12:58:02 UTC, end at Thu 2023-03-02 13:35:18 UTC. --
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [uORB] Advertising remote topic takeoff_status
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Ok executing command: mc_pos_control start
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Marking DeviceNode(qshell_req) as advertised in process_remote_topic
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: qshell gotten: mc_att_control start
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: arg0 = 'mc_att_control'
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: arg1 = 'start'
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Ok executing command: mc_att_control start
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: Marking DeviceNode(qshell_req) as advertised in process_remote_topic
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: qshell gotten: mc_rate_control start
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [muorb] SLPI: arg0 = 'mc_rate_controINFO [qshell] Send cmd: 'mc_rate_control start'
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2036903088, local time: 2036905841
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'mc_hover_thrust_estimator start'
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2036964219, local time: 2036966402
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'mc_autotune_attitude_control start'
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2037021853, local time: 2037025239
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'land_detector start multicopter'
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2037083571, local time: 2037085728
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] Send cmd: 'manual_control start'
                    Mar 02 13:31:54 m0054 voxl-px4[4783]: INFO [qshell] qshell return value timestamp: 2037144972, local time: 2037146917

                    Any suggestions or any information you need?

                    Thank you for helping.

                    I found a mistake
                    Previously I select flight-deck when re-flash.
                    This time with -w I select voxl2 flight-deck
                    Sorry for confusion.

                    So the only issue I have now is the GPS issue.
                    Please let me know if any questions or suggestions.

                    Eric KatzfeyE 1 Reply Last reply Reply Quote 0
                    • Eric KatzfeyE
                      Eric Katzfey ModalAI Team @will.huang.oksi
                      last edited by

                      @will-huang-oksi On VOXL 2, if you enter the command px4-listener sensor_gps what do you get? (Try it a few times)

                      W 1 Reply Last reply Reply Quote 0
                      • W
                        will.huang.oksi @Eric Katzfey
                        last edited by will.huang.oksi

                        @Eric-Katzfey

                        From other discussion,
                        I add

                        qshell gps start -d 7 -b 115200
                        

                        and get the GPS now.

                        Here is my setting and please let me know if any questions.
                        Thank you for your precious time on this matter.

                        AIRFRAME=MULTICOPTER
                        GPS=AUTODETECT
                        RC=CRSF_RAW
                        ESC=VOXL_ESC
                        POWER_MANAGER=VOXLPM
                        AIRSPEED_SENSOR=NONE
                        DISTANCE_SENSOR=NONE
                        OSD=DISABLE
                        DAEMON_MODE=ENABLE
                        SENSOR_CAL=ACTUAL
                        ARTIFACT_MODE=DISABLE
                        EXTRA_STEPS=(
                        qshell gps start -d 7 -b 115200
                        )

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors