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

    Where to write Extended Kalman filter code in modalai's platform

    Ask your questions right here!
    2
    7
    464
    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.
    • S
      suvasis
      last edited by 31 May 2023, 00:26

      hi,

      I am working on NXP's RDDRONE-BMS772, battery management system, I would like to integrate EKF to estimate SOC of the battery system. Does modalai support CAN/CAN-FD or serial, i2c, communication to gather bms data related to battery? Also, can Extended kalman filter code be in python or strictly C to be integrated in modalai?

      Thanks.
      suvasis

      E 1 Reply Last reply 31 May 2023, 00:41 Reply Quote 0
      • E
        Eric Katzfey ModalAI Team @suvasis
        last edited by 31 May 2023, 00:41

        @suvasis Which ModalAI product are you referring to?

        1 Reply Last reply Reply Quote 0
        • S
          suvasis
          last edited by 31 May 2023, 00:53

          I use only voxl2. bms to communicate through CAN bus with ESC (so a CAN transreceiver on esc, i don't think this is there currently) or the flight controller or telemetry or the qualcomm processor ab it's power consumption. Just like car uses CAN bus and can transreceiver on various sensors or components.

          At the minimum, how can i just gather the SOC info over serial port and apply EKF. Where should this code reside?

          Thanks.
          suvasis

          E 2 Replies Last reply 31 May 2023, 01:04 Reply Quote 0
          • E
            Eric Katzfey ModalAI Team @suvasis
            last edited by 31 May 2023, 01:04

            @suvasis Are you referring to a ModalAI ESC? Or are you using a third party ESC? We do not have a CAN bus on VOXL2.

            1 Reply Last reply Reply Quote 0
            • E
              Eric Katzfey ModalAI Team @suvasis
              last edited by 31 May 2023, 01:07

              @suvasis There are UARTs available to the applications processor via some of our add-on boards. Then you can use this UART for your new BMS application. It can be Python or C, whatever you like. But there is no UART available to applications processor on the bare VOXL2 board. Or are you intending to integrate this with PX4?

              1 Reply Last reply Reply Quote 0
              • S
                suvasis
                last edited by 31 May 2023, 01:19

                hi,
                I am using all modalai hw. so the ESC is also from modalai's. Is there any documentation on how to add custom application, say bms, to px4 directly?

                E 1 Reply Last reply 31 May 2023, 14:24 Reply Quote 0
                • E
                  Eric Katzfey ModalAI Team @suvasis
                  last edited by 31 May 2023, 14:24

                  @suvasis You cannot modify the code on our ESC. But you can certainly add a new driver to PX4. I would start with the PX4 documentation: https://docs.px4.io/main/en/development/development.html

                  1 Reply Last reply Reply Quote 0
                  1 out of 7
                  • First post
                    1/7
                    Last post
                  Powered by NodeBB | Contributors