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

    ESC Issue On SDK 1.0.0

    VOXL 2
    5
    18
    817
    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.
    • wilkinsafW
      wilkinsaf ModalAI Team @John Nomikos 0
      last edited by

      To clear things up.

      The ESC is not working when we arm. It does not spin with "actuators" tab.
      The ESC only spins a motor when we issue a "voxl-esc" on the command line

      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @wilkinsaf
        last edited by

        @wilkinsaf Please post the settings of all of the MODAL_IO_* parameters. E.g. px4-param show MODAL_IO_*

        John Nomikos 0J 1 Reply Last reply Reply Quote 0
        • John Nomikos 0J
          John Nomikos 0 @Eric Katzfey
          last edited by

          @Eric-Katzfey here are the params. Let me know if you need anything else.

          voxl2:/$ px4-param show MODAL_IO_*
          Symbols: x = used, + = saved, * = unsaved
          x + MODAL_IO_BAUD [508,1061] : 2000000
          x + MODAL_IO_CONFIG [509,1062] : 1
          x + MODAL_IO_FUNC1 [510,1063] : 101
          x + MODAL_IO_FUNC2 [511,1064] : 104
          x + MODAL_IO_FUNC3 [512,1065] : 102
          x + MODAL_IO_FUNC4 [513,1066] : 103
          x   MODAL_IO_MODE [514,1067] : 0
          x   MODAL_IO_REV [515,1068] : 0
          x   MODAL_IO_RPM_MAX [516,1069] : 15000
          x + MODAL_IO_RPM_MIN [517,1070] : 3000
          x   MODAL_IO_SDIR1 [518,1071] : 0
          x   MODAL_IO_SDIR2 [519,1072] : 0
          x   MODAL_IO_SDIR3 [520,1073] : 0
          x   MODAL_IO_SDIR4 [521,1074] : 0
          x   MODAL_IO_T_COSP [522,1075] : 0.9900
          x   MODAL_IO_T_DEAD [523,1076] : 20
          x   MODAL_IO_T_EXPO [524,1077] : 35
          x   MODAL_IO_T_MINF [525,1078] : 0.1500
          x   MODAL_IO_T_PERC [526,1079] : 90
          x + MODAL_IO_VLOG [527,1080] : 1
          
           799/2092 parameters used.
          
          Eric KatzfeyE 1 Reply Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @John Nomikos 0
            last edited by

            @John-Nomikos-0 Okay, I don't see anything obviously wrong with those. Can you arm the drone and collect a log?

            1 Reply Last reply Reply Quote 0
            • Eric KatzfeyE
              Eric Katzfey ModalAI Team @John Nomikos 0
              last edited by

              @John-Nomikos-0 When you arm you are using the -f flag to force it. What happens if you don't use the force flag? Does it give you some errors?

              wilkinsafW 1 Reply Last reply Reply Quote 0
              • wilkinsafW
                wilkinsaf ModalAI Team @Eric Katzfey
                last edited by

                @Eric-Katzfey John left to go home, but popped into the other room to run this

                I keep on getting a failsafe activated the MOMENT we try and arm.
                e6608e60-37c9-490d-a0a7-ed41a7ff23c0-image.png

                I can not seem to get more than this message. I am going to manually run voxl-px4 to see if I can get better output

                wilkinsafW 1 Reply Last reply Reply Quote 0
                • wilkinsafW
                  wilkinsaf ModalAI Team @wilkinsaf
                  last edited by

                  Here is the output from voxl-px4 once we requested to arm

                  INFO  [px4] Startup script returned successfully
                  INFO  [muorb] SLPI: Advertising remote topic ping
                  WARN  [uORB] orb_advertise_multi: failed to set queue size
                  INFO  [uORB] Marking DeviceNode(mavlink_log) as advertised in process_remote_topic
                  INFO  [muorb] SLPI: Armed by external command	
                  INFO  [logger] Start file log (type: full)
                  WARN  [uORB] orb_advertise_multi: failed to set queue size
                  INFO  [logger] [logger] /data/px4/log/2023-03-02/12_59_17.ulg	
                  INFO  [logger] Opened full log file: /data/px4/log/2023-03-02/12_59_17.ulg
                  WARN  [mavlink] Event dropped (37, 65526)
                  WARN  [mavlink] Event dropped (37, 65526)
                  INFO  [muorb] SLPI: Advertising remote topic logger_status
                  WARN  [mavlink] Dropped 65489 events (seq=65526)
                  WARN  [mavlink] Dropped 65489 events (seq=65526)
                  INFO  [uORB] Marking DeviceNode(mavlink_log) as advertised in process_remote_topic
                  INFO  [muorb] SLPI: Failsafe activated	
                  INFO  [muorb] SLPI: Disarmed by failsafe	
                  INFO  [uORB] Marking DeviceNode(parameter_server_set_value_request) as advertised in process_remote_topic
                  WARN  [mavlink] Event dropped (65527, 37)
                  WARN  [mavlink] Event dropped (65527, 37)
                  WARN  [mavlink] Dropped 28 events (seq=37)
                  WARN  [mavlink] Dropped 28 events (seq=37)
                  INFO  [muorb] SLPI: Marking DeviceNode(parameter_server_set_value_response) as advertised in process_remote_t
                  INFO  [logger] closed logfile, bytes written: 221550
                  
                  
                  Eric KatzfeyE 1 Reply Last reply Reply Quote 0
                  • Eric KatzfeyE
                    Eric Katzfey ModalAI Team @wilkinsaf
                    last edited by

                    @wilkinsaf Okay, that's not very useful. Definitely going to have to figure out a way to make PX4 provide an actual reason. Our ESC guru Alex thinks that the older ESC firmware you have defaults to a different baudrate than we are expecting in SDK 1.0.0 PX4. So he will respond later with the ESC parameter change that will allow them to have the same baudrate.

                    wilkinsafW 1 Reply Last reply Reply Quote 0
                    • wilkinsafW
                      wilkinsaf ModalAI Team @Eric Katzfey
                      last edited by wilkinsaf

                      @Eric-Katzfey Thanks Eric.

                      I imagine we are going to have to connect the ESC to FTDI to laptop. Or is it possible to change this on VOXL2 terminal.

                      wilkinsafW 1 Reply Last reply Reply Quote 0
                      • wilkinsafW
                        wilkinsaf ModalAI Team @wilkinsaf
                        last edited by

                        I guess Alex will know that. Thanks!

                        Eric KatzfeyE 1 Reply Last reply Reply Quote 0
                        • Eric KatzfeyE
                          Eric Katzfey ModalAI Team @wilkinsaf
                          last edited by

                          @wilkinsaf You should be able to do it directly on VOXL2 with voxl-esc.

                          Alex KushleyevA 1 Reply Last reply Reply Quote 0
                          • Alex KushleyevA
                            Alex Kushleyev ModalAI Team @Eric Katzfey
                            last edited by

                            @wilkinsaf @John-Nomikos-0

                            Based on your description of the problem (when you switch from SDK 0.9 to 1.0.0, the ESCs start responding), it sounds like a mismatch in the UART baud rate in ESC and PX4 params. When going from 0.9 to 1.0.0 we have changed the baud rate for ESCs in PX4 params from 250K to 2M. Accordingly, we have updated the ESC params to 2M as well (ESC firmware and params are part of voxl-esc package). However, since you did not perform an ESC firmware / param update, your ESC is still running at 250K baud rate, but the latest PX4 is expecting 2Mbit.

                            From your output of esc scan, this is confirmed:

                            INFO: ESC(s) detected on port: /dev/slpi-uart-2, baud rate: 250000
                            

                            You have several options:

                            • Change your PX4 param MODAL_IO_BAUD from 2000000 to 250000 in order to match what your ESC is currently using
                            • Update the ESC firmware and params while the ESC is connected to VOXL2 (with SDK 1.0.0 installed, which will have the latest voxl-esc package with latest firmware and params). Please see this post about updating firmware and params: https://forum.modalai.com/topic/2509/voxl-2-mini-with-mini-4-in-1-esc-no-battery-information/5 . Please note that if you are currently using non-standard ESC params, you will need to make a few updates to them in order to make them compatible with the latest parameter files. If that is the case, let me know, i can help.

                            Alex

                            John Nomikos 0J 1 Reply Last reply Reply Quote 0
                            • John Nomikos 0J
                              John Nomikos 0 @Alex Kushleyev
                              last edited by

                              @Alex-Kushleyev

                              Confirmed, changing the MODAL_IO_BAUD to 250000 fixed the problem for me. Thank you so much for the help!

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