Please select Into the mobile phone version | Continue to access the computer ver.
RoboMaster S1 program file support library.
2657 7 2019-11-7
Uploading and Loding Picture ...(0/1)
o(^-^)o
BGA
lvl.4
United States
Offline

There you go. Thanks to the insight on decompiling a Unity program provided by user sevreNniarB, I was able to write a small Go library to read and write .dsp files. This bring us a lot closer to being able to create programs outside of the Robomaster app (which we all know is far from an ideal development environment).

Here is the code:

https://git.bug-br.org.br/bga/robomasters1/src/master/dsp

Right now it is not very useful as it can only read a file and then write it back. I will add methods to modify an existing file or to create one from scratch as time permits. In any case, the difficult part is already there.

2019-11-7
Use props
sevreNniarB
lvl.3
Germany
Offline

Great news, thank you for your effort BGA!

I have a little teaser for you:

groot.jpg

And yes, it is working (not talking about the sound test, take a closer look at the user...)

Cheers

2019-11-7
Use props
BGA
lvl.4
United States
Offline

sevreNniarB Posted at 11-7 15:20
Great news, thank you for your effort BGA!

I have a little teaser for you:

Hah. Good one. I assume you logged in to the S1 itself and is running commands inside it, correct? If so, that is amazing as we would be able to figure out what is the deal with the onboard python interpreter.

While you are at it, does it have a procfs mounted? If so, can you do:

cat /proc/cpuinfo
cat /proc/meminfo

Or, even easier, can you send the output of the mount and free commands (assuming they are installed) ?
2019-11-7
Use props
BGA
lvl.4
United States
Offline

Also: DJIConnectionController?
2019-11-7
Use props
sevreNniarB
lvl.3
Germany
Offline

You can just use this Lab code:

print(globals().keys())
print(__builtins__.keys())

Looks like the runtime is CPython. Here is your Info:


S1_Memory.jpg

S1_CPU.jpg

Cheers

2019-11-7
Use props
BGA
lvl.4
United States
Offline

sevreNniarB Posted at 11-7 16:50
You can just use this Lab code:

print(globals().keys())

I am a bit confused. The code you provided just prints the available globals. Why did you suggest me to run it?
2019-11-7
Use props
DAFlys
Captain
Flight distance : 312090263 ft
  • >>>
Offline

sevreNniarB Posted at 11-7 16:50
You can just use this Lab code:

print(globals().keys())

Exciting news.
2019-11-8
Use props
BGA
lvl.4
United States
Offline

BTW, I added a simple codec program that is able to convert python files to dsp files and dsp files to python files. It is written in Go so it can easily compile on Linux, Windows or Mac (and can be cross-compiled to any plataform to any other platform as i does not rely on any external libraries.
2019-11-8
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules