Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ChatGPT and drone setup/trouble shooting
#1
I am typically late to new things, and only now just trying out ChatGPT. Still playing around, but I am extremely impressed with the amount of "intelligence" and depth I get on responses to technical questions. I tried a stream of drone related questions, and although responses were not always complete nor always correct, it certainly gave the appearance it knew what it was talking about and most of the response directly addressed my question and provided useful information that I would have expected from an "expert".

For any other slow adopters who haven't tried it yet, it should be a good eye opener. Here is just a sample of a stream of drone setup/troubleshooting questions and ChatGPT's response (this is the free version 3.5).

how to connect an ELRS receiver to a flight controller
Quote:To connect an ELRS (ExpressLRS) receiver to a flight controller, you typically need to follow these steps:
  1. Check Compatibility: Ensure that both your flight controller and the ELRS receiver are compatible with each other. Confirm the pin layout and protocol compatibility between the two devices.

  2. Pinout and Wiring: Identify the necessary pins on both the flight controller and the ELRS receiver for connection. The specific pins required may vary depending on the flight controller and receiver models. Consult the documentation or pinout diagrams for your flight controller and ELRS receiver to determine the correct connections.

  3. Power Connection: Connect the power supply for the ELRS receiver. Most receivers require a 5V power source. You can typically connect the power to the 5V or VCC pin on the receiver and ensure the ground (GND) is connected as well.

  4. UART Connection: Connect the UART (serial communication) between the flight controller and the ELRS receiver. This connection allows the flight controller to communicate with the receiver. Determine which UART port on the flight controller you want to use for the receiver and connect the corresponding TX (transmit) and RX (receive) pins between the flight controller and the receiver.

  5. Configuration: Access the flight controller's configuration software, such as Betaflight, and navigate to the Ports or Configuration tab. Enable the appropriate UART port for the receiver and set it to the correct serial protocol, such as CRSF for ELRS.

  6. Bind Mode: Put the ELRS receiver into bind mode. The specific steps for entering bind mode may differ depending on the receiver model. Refer to the documentation for your ELRS receiver to learn how to initiate the binding process.

  7. Receiver Binding: Initiate the binding process from the flight controller's configuration software. This process may vary depending on the flight controller and software used. Follow the instructions provided in the software to complete the binding procedure.

  8. Testing: Once the binding process is successful, verify the receiver's connectivity by checking the receiver tab in your flight controller's configuration software. Move the transmitter controls and confirm that the corresponding inputs on the receiver tab respond accordingly.
Remember to consult the specific documentation and guides for your flight controller and ELRS receiver, as the steps and requirements may vary based on the hardware you are using. It's essential to follow the manufacturer's instructions and guidelines to ensure a proper and reliable connection between the flight controller and the ELRS receiver.

(felt the UART connection instructions were ambiguous so asked for clarification)
how to connect the uart pins

Quote:To connect the UART pins between an ELRS receiver and a flight controller, you'll typically follow these steps:
  1. Identify the UART Ports: Determine which UART ports on your flight controller you want to use for the ELRS receiver. Flight controllers typically have multiple UART ports labeled as UART1, UART2, UART3, etc. Refer to your flight controller's documentation or pinout diagram to identify the UART ports available.

  2. Locate the UART Pins: Once you have identified the UART ports on the flight controller, locate the corresponding UART pins. These pins are usually labeled as TX (transmit) and RX (receive) for each UART port.

  3. Connect the Receiver TX to Flight Controller RX: Find the TX pin on the ELRS receiver and connect it to the RX pin of the selected UART port on the flight controller. This ensures that the receiver's transmitted data is received by the flight controller.

  4. Connect the Receiver RX to Flight Controller TX: Locate the RX pin on the ELRS receiver and connect it to the TX pin of the same UART port on the flight controller. This enables the flight controller to transmit data to the receiver, such as configuration commands or receiver telemetry.

  5. Ensure Ground Connection: Connect the ground (GND) pin of the ELRS receiver to a ground pin on the flight controller. This establishes a common ground reference between the two devices.

  6. Power Connection: Provide power to the ELRS receiver by connecting its 5V or VCC pin to a 5V power source on the flight controller. Additionally, connect the receiver's ground (GND) pin to a ground pin on the flight controller.

  7. Verify Polarity: Ensure that the TX pin on the receiver is connected to the RX pin on the flight controller, and the RX pin on the receiver is connected to the TX pin on the flight controller. Connecting them incorrectly will prevent communication between the devices.

  8. Secure Connections: Double-check that all the connections are securely made, with proper alignment and no loose wires or connections.
Once the UART pins are properly connected between the ELRS receiver and the flight controller, you can proceed with configuration and testing to ensure proper communication between the two devices. Refer to the specific documentation for your flight controller and ELRS receiver for any additional instructions or considerations related to UART connections.

my receiver is connected and bound, however I am unable to see any stick movements in betaflight

Quote:If your ELRS receiver is connected and bound, but you are not seeing any stick movements in Betaflight, here are a few troubleshooting steps you can follow:
  1. Check Receiver Configuration: Open the Configuration tab in Betaflight and make sure the correct receiver mode is selected. For ELRS, the receiver mode should typically be set to CRSF or Crossfire depending on your ELRS receiver.

  2. Confirm Correct UART: Verify that you have connected the ELRS receiver to the correct UART port on your flight controller. Double-check the pinout and ensure that you have connected the receiver's TX pin to the flight controller's RX pin and vice versa.

  3. Check Receiver Power: Ensure that the ELRS receiver is receiving power. Confirm that it is properly connected to a 5V power source on the flight controller. Check the receiver's LED status to ensure it is receiving power and bound successfully.

  4. Verify Receiver Binding: Recheck the receiver binding process. Make sure you followed the correct steps to put the receiver into bind mode and initiated the binding process from Betaflight. Confirm that the binding was successful.

  5. Check Receiver Connections: Ensure that all the wiring connections between the receiver and flight controller are secure. Double-check that the wires are properly seated in the pins and that there are no loose or disconnected connections.

  6. Receiver Tab Testing: Go to the Receiver tab in Betaflight and check if the receiver is properly recognized. Move the transmitter controls and observe if the corresponding channels on the Receiver tab are showing any activity. If there is no activity, try moving the sticks more vigorously or recalibrating the transmitter.

  7. Check Transmitter Configuration: Verify that your transmitter is properly configured and transmitting on the correct channel outputs. Ensure that the channels on the transmitter match the channels configured in Betaflight.

  8. Reboot and Reconnect: If all else fails, try rebooting the flight controller and reconnecting it to Betaflight. Sometimes a simple reboot can resolve communication issues.
If you've gone through these troubleshooting steps and are still unable to see stick movements in Betaflight, it's recommended to seek assistance from the ELRS community or consult the specific documentation and support channels for your flight controller and ELRS receiver.

the receiver is working, however when I power on my DJI O3 the receiver no longer communicates with betaflight
[/color]

Quote:If your ELRS receiver stops communicating with Betaflight when you power on your DJI O3 air unit, it could be due to conflicting serial communication settings or resource allocation. Here are a few steps to help resolve the issue:
  1. Check Serial Port Conflict: Confirm that there is no conflict between the UART ports used by the ELRS receiver and the DJI O3 air unit. Both devices may be trying to use the same UART port, causing interference. Consider changing the UART port assignment for either the ELRS receiver or the DJI O3 air unit.

  2. Verify Resource Allocation: In some cases, there might be a resource conflict between the ELRS receiver and the DJI O3 air unit. Check if any of the resources, such as pins or timers, are being shared between the two devices. If so, consider reassigning the resources to avoid conflicts.

  3. Adjust Resource Remapping: If your flight controller supports resource remapping, you can try remapping the UART ports or other conflicting resources used by the ELRS receiver and DJI O3 air unit. This can help separate the resources and avoid conflicts.

  4. Review FC Firmware and DJI Integration: Ensure that you are using the latest firmware versions for both your flight controller and the DJI O3 air unit. Sometimes, compatibility issues between different firmware versions can cause communication problems. Check if there are any firmware updates or compatibility fixes available.

  5. Power Supply Considerations: Ensure that the power supply to both the flight controller and the DJI O3 air unit is stable and sufficient. Inadequate power supply can cause issues with communication between devices. Consider using separate power sources or adding capacitors to stabilize the power supply if needed.

  6. Consult Community and Support: Reach out to the ELRS and DJI communities or support channels for assistance. There might be specific solutions or workarounds available for the particular combination of devices you are using.
Remember to backup your flight controller configuration and follow the recommended procedures for making changes to your setup. It's important to be cautious and aware of the potential risks involved in modifying firmware or resource settings.

Although the typical scenario would be the SBUS wire being on the same UART as ELRS causing conflict, ChatGPT is not able to specifically point out this issue, but does correctly mention the problem of UART conflict.
[-] The following 1 user Likes mstc's post:
  • QuadFlyer68
Reply
Login to remove this ad | Register Here
#2
It’s the incorrect answers that *sound* correct that could be potentially disastrous. Smile

I recall reading a news article a week or two ago where an attorney got sanctioned because he referenced two cases in a court filing- fictitious cases that chatgpt made up.

Edit- found the article. Big Grin
https://apnews.com/article/d6ae9fa79d054...397aef381c
Dangerous operations.

Disclaimer: I don’t know wtf I’m talking about.
I wish I could get the smell of burnt electronics out of my nose.
Reply
#3
Lol, fake it till you make it. I guess the AI is doing an excellent job modelling itself in the ways of today...

Quote:There are several sayings similar to "fake it till you make it" that convey a similar sentiment of pushing through challenges or projecting confidence even when you may not feel fully prepared or experienced. Here are a few examples:
  1. "Act as if."

  2. "Believe and achieve."

  3. "Put on a brave face."

  4. "Embrace the role."

  5. "Appearances can be deceiving."

  6. "Dress for success."

  7. "Project confidence."

  8. "Improvise, adapt, and overcome."

  9. "Act the part."

  10. "In the land of the blind, the one-eyed man is king."
These sayings encourage individuals to step outside their comfort zones, exude confidence, and take on challenges even if they initially lack complete knowledge or experience. They emphasize the importance of self-belief and the potential for growth and success through perseverance and determination.
[-] The following 1 user Likes mstc's post:
  • Lemonyleprosy
Reply
#4
It looks like AI has even made our contributions on here redundant. Give me a minute while I go ping Oscar a PM and tell him to delete the forum Big Grin
[-] The following 2 users Like SnowLeopardFPV's post:
  • sevro, Suros
Reply
#5
Got a buddy who is constantly using it like it knows what it's doing, despite being nothing more than a complex language prediction engine. (He should know this better than I do.)
Artificial? 100%
Intelligent? I'll get back to you on that!
Reply
#6
(17-Jul-2023, 09:59 PM)SnowLeopardFPV Wrote: It looks like AI has even made our contributions on here redundant. Give me a minute while I go ping Oscar a PM and tell him to delete the forum Big Grin

I won't be surprised if intofpv and other forums were part of its training dataset. And hey, if everyone follows Chat's advice, maybe 60% will get it right, 30% will fail and look elsewhere, 9% will have their gear explode, and the last 1% may experience some new miraculous solutions that us mere humans might not figure out and would have taken decades to stumble upon... that's artificial innovation!

And no need to inform Oscar, just wait for v5 to come out, it will automatically figure out how remove all other "trivial" sources of information...
"In the land of the blind, the one-eyed man chatbot is king."

Quote:As an AI language model, my responses are generated based on a mixture of licensed data, data created by human trainers, and publicly available data. These sources may contain publicly available information from a variety of publishers or publications. However, the specific datasets used to train me have not been disclosed publicly by OpenAI, the organization behind ChatGPT. Therefore, I don't have detailed visibility into which publishers' information was included in my training data or have direct knowledge of specific datasets.
[-] The following 1 user Likes mstc's post:
  • FPVme
Reply
#7
I've been using ChatGPT for awhile now, and have found it quite useful. When I see a term I don't recognize, I ask it what it is. I remember asking it what an ESC is, and it gave me a fine answer.

I have found it a bit lacking for troubleshooting sometimes, but it has been somewhat helpful at times.

I use WebChatGPT when I want current information based on web search results.

I've been paying the $20/month for version 4 for a couple of months. I cancelled it, because 3.5 is faster and I thought it was giving me find answers, but then got a much better answer to something from 4.0 before it lapsed than from 3.5 , so I renewed it. Haven't asked it anything in a week or so, and starting to wonder if I should cancel 4.0 again.

I think of non-quad related things I want to discuss with ChatGPT sometimes when I'm walking or doing something else, but I end up prioritizing quad-stuff over non-quad stuff these days.
Reply
#8
I don't know about paying $20 a month for a chatbot, unless its really entertaining/helping out in ways you can't get otherwise on the web. I believe bing is running a free dumbed down version of v4? Just remember when v6 comes out and takes over the internet, you helped fund the takeover Smile
Reply
#9
This was not related to drones, but I had to write some code in Microsoft Access to do some simple data manipulation. Problem is it's been more than 10 years since I last wrote anything in Visual Basic, so although the logic is still in my mind,  I barely remember any of the commands, syntax, or VB nuances. I guess I could have searched for multiple example programs and cut-paste-edited to fit my needs, but that can be quite time consuming and hit or miss.

Instead five minutes on ChatGPT with a few refinements of my prompt, and I had perfectly working, cleanly documented, easy to read code in less than 5 minutes. Wow, very impressed.

If you have the ability to give a clear descriptive prompt of what you need the program to do, ChatGPT will get you 90% there. This is perfect for occasional programmers or those who like to jump around different languages. Even for experienced programmers I imagine it could be a nice time saver to build out the initial shell. For simple programs, it ran correctly without needing any debugging, however for more complex logic, knowing the language enough to at least verify/debug the code would probably be necessary.
Reply
#10
The prompt

Quote:write a microsoft access module to read the fields "Contract Number","Lease Start Date","Amount","Number of Payments" from a table "Leases", and then populate it n times into a second table "Schedule" where n = "Number of Payments". Also add a record in the table "Schedule" with the "Amount" = "Residual Amount" from the table "Leases"




The result:
Thumbs Up  I did not give any prompt for incrementing the payment date, but seems ChatGPT inferred that from the field name and automatically added the code to increment that monthly which is actually correct for my use case
Thumbs Up It also got all the variable data types correct simply inferring from the variable names given.


Quote:Option Compare Database
Option Explicit

Public Sub PopulateSchedule()
    Dim db As DAO.Database
    Dim rsLeases As DAO.Recordset
    Dim rsSchedule As DAO.Recordset
    Dim i As Integer
    
    ' Open a connection to the database
    Set db = CurrentDb
    
    ' Open recordsets for leases and schedule tables
    Set rsLeases = db.OpenRecordset("Leases", dbOpenSnapshot)
    Set rsSchedule = db.OpenRecordset("Schedule", dbOpenDynaset)
    
    ' Check if the leases table has records
    If Not rsLeases.EOF Then
        rsLeases.MoveFirst ' Move to the first record
        
        Do Until rsLeases.EOF
            Dim numberOfPayments As Integer
            Dim leaseStartDate As Date
            Dim amount As Double
            Dim residualAmount As Double
            
            ' Retrieve values from the leases table
            numberOfPayments = rsLeases!NumberOfPayments
            leaseStartDate = rsLeases!LeaseStartDate
            amount = rsLeases!Amount
            residualAmount = rsLeases!ResidualAmount
            
            ' Populate the schedule table 'numberOfPayments' times
            For i = 1 To numberOfPayments
                ' Insert a new record into the schedule table
                rsSchedule.AddNew
                
                ' Populate fields in the schedule table
                rsSchedule!ContractNumber = rsLeases!ContractNumber
                rsSchedule!PaymentDate = DateAdd("m", i - 1, leaseStartDate) ' Incrementing months based on payment number
                rsSchedule!Amount = amount
                
                ' Save the changes to the schedule table
                rsSchedule.Update
            Next i
            
            ' Add an extra record in the schedule table with the residual amount
            rsSchedule.AddNew
            rsSchedule!ContractNumber = rsLeases!ContractNumber
            rsSchedule!PaymentDate = DateAdd("m", numberOfPayments, leaseStartDate) ' Payment date for the residual amount
            rsSchedule!Amount = residualAmount
            rsSchedule.Update
            
            ' Move to the next record in the leases table
            rsLeases.MoveNext
        Loop
    End If
    
    ' Close the recordsets
    rsLeases.Close
    rsSchedule.Close
    
    ' Close the database connection
    Set rsLeases = Nothing
    Set rsSchedule = Nothing
    Set db = Nothing
    
    MsgBox "Schedule populated successfully!", vbInformation
End Sub
[-] The following 2 users Like mstc's post:
  • ph2t, FPVme
Reply
#11
Microsoft is heavily investing in it's Copilot techology by integrating it into most of their development tools, and you can now use Copilot to create Power Platform apps using natural language. It's still in it's early stages, but it's quite impressive what it can do. The need for programmers is going to start becoming less and less as time goes on. It's scary times for technical IT specialists as their jobs get replaced by AI bots.
Reply
#12
The problem with AI is when users start asking it dumb questions and it starts doing things it shouldn't be doing and answering questions that no sane person would answer. Then it can end up with some seriously corrupted learning, almost like radicalising the AI to get it to do things it shouldn't do.
Try Not, Do or Do Not
- Yoda

[-] The following 1 user Likes Pathfinder075's post:
  • hugnosed_bat
Reply
#13
I hear ya mstc on the gpt thing.  Use it myself for making powershell scripts.  Like you said, it gets you 90% of the way there.

For me I feel that it won't replace programmers per 'se as much as programmers that utilize gpt to write code will get ahead of others simply because it increases productivity.   As many that havent used it don't realise, you still need to do it yourself.  In this case you're just explaining to a usefull idiot what you want done.

My challenge is with cloud tools. When using newer tools the chatgpt may get commangs wrong as cloud vendors move from one tool to another.  ie: Powershell modules for Sharepoint/Azure.  With chat gpt 3.5 dataset only trained up until 2022 it doesn't know the new commands that have changed since it "learned" the older commands.
Reply
#14
(26-Feb-2024, 12:16 AM)ph2t Wrote: In this case you're just explaining to a usefull idiot what you want done.

My challenge is with cloud tools. When using newer tools the chatgpt may get commangs wrong as cloud vendors move from one tool to another.  ie: Powershell modules for Sharepoint/Azure.  With chat gpt 3.5 dataset only trained up until 2022 it doesn't know the new commands that have changed since it "learned" the older commands.

I wouldn't say it is an idiot. It definitely has a vastly wider (not necessarily deeper) knowledge base than most of us mere mortals and can clearly process/generate material so much faster, but its "intelligence" is certainly not complete. It is an extremely powerful tool and like you said those who learn to make use of it will help themselves get ahead. (My son tells me now schools have apps to try to detect AI written papers... probably from OpenAI...)

BTW it has already been let loose into the wild  Tongue
[Image: PpqdM0Cl.png]

Snow mentioned Copilot (formerly Bing Chat) which integrates ChatGPT-4 along with training on Microsofts own datasets. No subscription fees, and worth a try to see if that helps you with recent cloud apps?

https://www.microsoft.com/en-us/edge/features/copilot
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Funny Youtube Drone Ad Pathfinder075 1 777 23-Mar-2024, 07:09 PM
Last Post: Krohsis
  drone motor powered ebike Oscar 6 545 18-Jun-2022, 03:50 PM
Last Post: Krohsis
  Discussion Indoor drone racing arena Skyassassin 7 2,673 06-Feb-2022, 03:36 PM
Last Post: janny
  Did you see the first Martian drone? rjalex 6 638 27-Apr-2021, 05:48 PM
Last Post: SnowLeopardFPV
  My Mech Drone Gaurdian (Gunpla content) the.ronin 0 364 01-Mar-2021, 03:33 AM
Last Post: the.ronin


Login to remove this ad | Register Here