View: 1249|Reply: 8

still no video on mars rover

[Copy link]

3

Threads

16

Posts

91

Credits

Registered member

Rank: 2

Credits
91
Post time 2020-1-20 19:57:43 | Show all posts |Read mode
Still having problems getting video to work, I know the camera works as raspistill -o test.jpg did produce a jpg. but no video stream.
I followed the advice on the video, sudo killall python3 followed by sudo python3 adeept_raspberry/server/server.py
which returned the following
python3: can't open file 'adeept_raspberry/server/server.py': [Errno 2] No such file or directory.
I then cd'ed to adeept_picar-bv2.0/server an ran python3 server.py which returned the following
Can't open /dev/mem: Permission denied
Traceback (most recent call last):
  File "server.py", line 15, in <module>
    import FPV
  File "/home/pi/adeept_picar-bv2.0/server/FPV.py", line 22, in <module>
    import LED
  File "/home/pi/adeept_picar-bv2.0/server/LED.py", line 92, in <module>
    led = LED()
  File "/home/pi/adeept_picar-bv2.0/server/LED.py", line 53, in __init__
    self.strip.begin()
  File "/usr/local/lib/python3.7/dist-packages/rpi_ws281x/rpi_ws281x.py", line 130, in begin
    raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -5 (mmap() failed)

which puzzled me as the leds seem to work fine but no mention of video, any ideas?


Reply

Use magic Report

3

Threads

16

Posts

91

Credits

Registered member

Rank: 2

Credits
91
 Author| Post time 2020-1-20 20:58:02 | Show all posts
This is the result of starting the GUI (on linux mint)
python3 GUI.py
Connecting to server @ 192.168.1.93:10223...
Connecting
Connected
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "GUI.py", line 321, in socket_connect
    replace_num('IP:',ip_adr)
  File "GUI.py", line 131, in replace_num
    with open("ip.txt","r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'ip.txt'
Reply

Use magic Report

3

Threads

16

Posts

91

Credits

Registered member

Rank: 2

Credits
91
 Author| Post time 2020-1-28 19:28:18 | Show all posts
Ok sorted seems the GUI.py was looking for a ip.txt whereas the file was actually called IP.txt so using the find and replace function in idle on GUI.py fixed it. I imagine renaming the ip.txt file as IP.txt would have had the same  effect. There are still bugs like the head traverse servo still vibrates on part of the radius but not when the car is on automatic oddly enough
Reply

Use magic Report

3

Threads

16

Posts

91

Credits

Registered member

Rank: 2

Credits
91
 Author| Post time 2020-1-28 22:57:00 | Show all posts
Further observations, video works, radar scan works there is a problem that it seems as though it only has power to go forward and backward and steer but not at the same time applying left or right turn works fine but the motor won't move it anywhere, this is a problem on automatic as it can see an obstacle and it does try to steer around it but the motor refuses to cooperate. THis is with a Pi 4 and 3000mA batteries
Reply

Use magic Report

1

Threads

11

Posts

35

Credits

Newbie

Rank: 1

Credits
35
Post time 2020-1-29 19:39:54 From the mobile phone | Show all posts
When u use GUI and click steer right, does it go right? Mine goes Left!
Reply

Use magic Report

3

Threads

16

Posts

91

Credits

Registered member

Rank: 2

Credits
91
 Author| Post time 2020-1-30 00:00:51 | Show all posts
1580296985 replied at 2020-1-29 07:39 PM
When u use GUI and click steer right, does it go right? Mine goes Left!

No the wheels point in the right direction but it doesn't go anywhere, it seems oddly programed because as soon as you release the button the wheels spring back to forward, so it's obviousy using a lot of power to hold it in position. I checked out move.py and it's written for a two motor car which would steer by reversing one motor so I'm guessing the servo.py is a recent addition and stilll needs work  

Reply

Use magic Report

1

Threads

11

Posts

35

Credits

Newbie

Rank: 1

Credits
35
Post time 2020-2-5 01:05:28 | Show all posts
server.py runs automatically at boot, so you have to kill the python services, if you want to run it manually. Or you can run client.py from your PC
Reply

Use magic Report

1

Threads

11

Posts

35

Credits

Newbie

Rank: 1

Credits
35
Post time 2020-2-5 01:07:58 | Show all posts
1580296985 replied at 2020-1-29 07:39 PM
When u use GUI and click steer right, does it go right? Mine goes Left!

I posted about this as well - you will find that EVERY THING is reversed
Left is right, up is down, and backwards is forwards for the motor and all the servos.
It seems, Adeept has a manufacturing mishap where they mis-soldered the battery wires on backwards. You can fix it easily in the software tho - good learning opportunity
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-7 18:00:26 | Show all posts
We have updated the latest information and manuals, please check through the link below: https://www.adeept.com/learn/detail-33.html If your problem is still not solved, please provide us with a detailed problem report (including product model, problem picture, etc.): support@adeept.com
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules