Hi everyone,
At the risk of being ultra-repetitive, I still think that fischertechnik does not provide a good workflow for developers at all. Graphic programming is interesting, but starts to become cumbersome very quickly and cannot do everything. So I'm trying my hand at Python, but ROBO Pro Coding sucks bigtime in general and especially as a code editor. Its flaws are so numerous I don't even know where to start. (It already has my vote for the Worst IDE Ever Contest.)
So I'm using VS Code and WinSCP to sync files with the TXT 4.0. It works, but debugging is impossible up to now. I don't know how to read the console output. It seems that ROBO Pro Coding has some way of intercepting the console output, but I don't have aq clue about how to do it. Does ft share such information? Another possibility would be to display the console output on the TXT4's display screen itself, but I don't know how to do that either. Heck, I don't even know how to access the display procedurally. I didn't find it in David Adam's book either.
Anyway, for those who want to try their hand at VS Code + WinSCP, here is the method I use:
- In the TXT 4.0: Enable Settings / Services / SSH
- In the TXT 4.0: Enable Settings / Remote access / SSH
- In WinSCP, open the project, using the data below for remote access.
- Your projects folder will be at: /opt/ft/workspaces/.
- In WinSCP, Use Ctrl+U to keep the remote folder up to date automatically. Be sure to check "Existing files only".
- File proocol: SFTP
- Host name: 192.168.15.30 (wifi) or 192.168.7.2 (USB). (Use your actual controller IP here)
- Port number: 22
- User: ft
- Password: fischertechnik
So my questions are:
- Does anyone know how to run a Python program and display the results on WinSCP's console?
- Is display.qml the only way to show something on the screen, or there is some way of intercepting bugs and displaying them on the TXT4's console?
Best regards,
Rubem