UNCG-DAISY / BeachRover

it's a beach rover
https://UNCG-DAISY.github.io/BeachRover
2 stars 0 forks source link

Drive Car with Mission Planner #13

Open ebgoldstein opened 2 years ago

ebgoldstein commented 2 years ago

Drive the car with mission planner.

ebgoldstein commented 2 years ago

the current problem is a failure of some Pre-Arm Safety checks.

StevenTagner commented 2 years ago

In order to drive the rover, Mission Planner needs to understand several things about the autopilot software and vehicle type we are using. The mandatory checks and how they normally happen with my tests are as follows:

That was a short summary of my experiences with all the different mandatory pre-arm checks. I will add screenshots and information as I continue to experiment with them.

ebgoldstein commented 2 years ago

ok cool. so if i am reading correctly the big issue is the Radio Calibration test?

StevenTagner commented 2 years ago

Yes, the main problem is with the Radio Calibration with a secondary problem being the ESC Calibration that is hopefully caused by the same thing as the Radio Calibration so they will both be fixed at the same time

StevenTagner commented 2 years ago

Yesterday I wrote out what was needed to start driving autonomously and started working on them. I knew that the biggest issues are the Radio Calibration and the ESC Calibration. In order to test the Radio Calibration, I wanted to make sure that:

  1. The RC Transmitter/Reciver was working properly (the servos and ESC are controllable) To do this, I stripped the RC Car to the base functionality (RC Transmitter sends to RC Receiver which sends to the ESC and the Servos) and controlled it with the RC Transmitter/Receiver (I thought this would take about 10-15 minutes but it took about 30 minuets to fully complete because I had to charge the battery so overall I think my prediction was accurate).

  2. Mission Planner registers all RC Transmitter channels This is making sure that Mission Planner can register all the required inputs from the RC Controller through the Navio. When I preformed this yesterday, I was registering the two sticks with no other switches or knobs being registered. Since this was being done at the same time as the next issue, it didn't take up any extra time. To find a way to get the other channels registered I think that will be closley related to the next point so my estimate will be lumped with it.

  3. The car is controllable through the Navio connected to Mission Planner. The final goal for Radio Calibration would be to control the car through the Navio that is communicating with both the RC Transmitter and Mission Planner. I did not get to test this much yesterday and only got to try a few things. I was able to control the ESC as described but without the servos working. I tested moving the servo pin up and down the Rail on the Navio without success. This process took about a half hour to test. I think this part will take a bit longer to test I will be looking though some config files on the Navio in tandam with testing pins on the Navios' Rail, so I estimate about 3 more hours. This 3 hour estimate includes getting the other channels registered properly from the second point.

This was primarily testing the Radio Calibration, my estimate for getting the whole rover to drive autonomusly is about 7 more hours total.

Time Breakdown:

StevenTagner commented 2 years ago

Today while I was working on the radio calibration I ran into another problem that may be more closely related to the heart of our issues. As soon as I would turn the servo using the RC Controler the wheels would turn the slightest bit and then stop for a length of time. I attached the rover to a monitor to see what was going on and when I would turn the wheels the rover would boot up as if it had been turned on which was causing the delay. It looks like this is because the servo or new RC Receiver pulls too much power and shuts down the Navio, which then receives the proper amount of voltage which causes it to turn on and boot normally. This may be because the Navio takes around 5 Volts to run, the new RC Receiver takes 5.5(-/+ 1.5) Volts, and the battery I am using is 11.1V. I didn't have this problem earlier as the RC Receiver was not used as much since we didn't have the transmitter. I also didn't notice this in my previous session as there is no visual indication that this is occurring, the wheels simply stop turning and the lights continue to blink. I don't have a way to see the voltage requirements on this servo at the lab right now but if I see anything on the paperwork I have I'll update here. This may be closer to the reason we have had the other errors, I think we should plan a date/time next week to meet up in person at the lab and test this with your RC Cars battery (if memory serves it was a larger battery) to test this and get the final touches done with your car since your is very close to the originals state. Other than this new lead I did make some progress in the radio calibration by improving the placement of the wires on the servo rail which I think will help.

StevenTagner commented 2 years ago

I made some progress with the rover relating to the above comment, I stopped the shutdowns by providing power through the 11.1 V Battery to the power module (that lead to the ESC and Navio) along with a 5 V USB battery pack powering the Pi. This seemed to be the best way to power everything without having the system shut down when the ESC/Servo pulls power. Once that issue was out of the way I was able to make strides in how Mission Planner communicates with the Navio and alter those connections. On the page Setup > Servo Output you can see a table that looks like this one:

image

This is my current setup, the # tab represents Navio channels so channel 1 on the Navio takes input from channel 1 on the RC Remote (RCIN1, the left/right movement on the right stick), and channel 3 on the Navio takes input from channel 3 on the RC Remote (RCIN3, the up/down movement on the left stick). These channel values can be changed by moving the wiring on the servo rail of the Navio and in the remote's settings on the RC Remote (should be detailed in your user manual). I also worked a bit on the min/trim/max but put them back to defaults until I get them where I want them. I worked on this for about an hour after my class tonight which brings me to about 3.5 out of my 7 predicted hours used on starting autonomous missions.