c++ & TXT
Forumsregeln
Bitte beachte die Forumsregeln!
Bitte beachte die Forumsregeln!
- steffalk
- ft:pedia-Herausgeber
- Beiträge: 1797
- Registriert: 01 Nov 2010, 16:41
- Wohnort: Karlsruhe
- Kontaktdaten:
Re: c++ & TXT
Hello bluatigro,
there are at least three places to look at:
- https://www.fischertechnik.de/en/servic ... s/robotics
- https://github.com/fischertechnikGmbH
- http://cfw.ftcommunity.de/ftcommunity-TXT/en
And: It may be not exactly what you want, but in case you are just looking for controlling fischertechnik models using a _powerful_ language and debugging environment, maybe you want to have a look at https://nanoframework.net/, that is, Visual Studio (or VS Code) and C# with nearly everything one might wish.
Success!
Stefan
there are at least three places to look at:
- https://www.fischertechnik.de/en/servic ... s/robotics
- https://github.com/fischertechnikGmbH
- http://cfw.ftcommunity.de/ftcommunity-TXT/en
And: It may be not exactly what you want, but in case you are just looking for controlling fischertechnik models using a _powerful_ language and debugging environment, maybe you want to have a look at https://nanoframework.net/, that is, Visual Studio (or VS Code) and C# with nearly everything one might wish.
Success!
Stefan
Re: c++ & TXT
Hi bluatigro,
see https://github.com/ftrobopy and ft:pedia 2/2017 (https://ftcommunity.de/ftpedia_ausgaben ... 2017-2.pdf)
for more details (mostly in german).
Best wishes,
Torsten
you could use ftrobopy and Python as a scripting language to access the TXT and all of its I/Os:bluatigro hat geschrieben:it wood be a lot easyer for me if ROBOPro came whit a script language build in
see https://github.com/ftrobopy and ft:pedia 2/2017 (https://ftcommunity.de/ftpedia_ausgaben ... 2017-2.pdf)
for more details (mostly in german).
Best wishes,
Torsten
Re: c++ & TXT
i deciced to use the first pc language i can start
this can be python or c++
i hope that it wil be python
i byed 2 SD card's so i have now 3 SD
1 for FT python
2 for FT c++
3 for lejos java
first step :
formating SD card's
problem :
my old pc sees the SD card port
but shows not a thick gray line whit part blue
my new pc sees no SD card port
i have SD formatter on my old pc
it shows not any SD port
also when i push [refresh] noting happens
has anyone a idea how to solve this ?
what do i not good ?
this can be python or c++
i hope that it wil be python
i byed 2 SD card's so i have now 3 SD
1 for FT python
2 for FT c++
3 for lejos java
first step :
formating SD card's
problem :
my old pc sees the SD card port
but shows not a thick gray line whit part blue
my new pc sees no SD card port
i have SD formatter on my old pc
it shows not any SD port
also when i push [refresh] noting happens
has anyone a idea how to solve this ?
what do i not good ?
Re: c++ & TXT
where can i find a tutoial of c++ programming on the TXT ?
a link wood be nice
i can read geman but i prefere english
[ dutch wood be even nicer ]
a link wood be nice
i can read geman but i prefere english
[ dutch wood be even nicer ]
- PHabermehl
- Beiträge: 2438
- Registriert: 20 Dez 2014, 22:59
- Wohnort: Bad Hersfeld
Re: c++ & TXT
Hello,bluatigro hat geschrieben: first step :
formating SD card's
problem :
my old pc sees the SD card port
but shows not a thick gray line whit part blue
my new pc sees no SD card port
i have SD formatter on my old pc
it shows not any SD port
also when i push [refresh] noting happens
has anyone a idea how to solve this ?
what do i not good ?
Do I understand correctly that you try to use the TXT as a card reader? You want to format the card while it is inserted in the TXT?
If yes -> This is what you do not good.
Remove the SD card and format it on your PC.
Kind regards
Peter
Re: c++ & TXT
https://github.com/fischertechnik/txt_demo_c_online
Here you find information about the online programming possibilities of the TXT based on the normale fischertechnik firmware.
The files are update and will work under 4.2.4. and 4.3.3.
MS-Visual Studio 2017 community version.
https://github.com/fischertechnik/txt_demo_c_download
Also for downloadable programs.
Eclipse with a toolchain (details are described there)
Here you find information about the online programming possibilities of the TXT based on the normale fischertechnik firmware.
The files are update and will work under 4.2.4. and 4.3.3.
MS-Visual Studio 2017 community version.
https://github.com/fischertechnik/txt_demo_c_download
Also for downloadable programs.
Eclipse with a toolchain (details are described there)
- MasterOfGizmo
- Beiträge: 2720
- Registriert: 30 Nov 2014, 07:44
Re: c++ & TXT
If you prefer 'real' programming languages then the ftDuino might be for you. It's an arduino with fischertechnik compatible IOs. Check e.g. http://ftduino.de for the details.
Arduino für fischertechnik: ftDuino http://ftduino.de, ftDuino32 http://ftduino.de/32
Re: c++ & TXT
update :
the formating is good now
i have now :
a lejos image SD card
2 empty SD card's
i want to instal python on one and c++ on the other
and see whitch i can use first
python :
if i have the firmware
must i put it on the SD card as zip or unpacked ?
can i use windows 10 for that or do i need a special program
if so where do i find that ?
c++ :
i have now eclipse [ java 8 ] on my new laptop
i did not find a eclipse whit c++ AND java
can i instal a c++ eclipse next to a java eclipse ?
[ i need java for my lego ev3 ]
the formating is good now
i have now :
a lejos image SD card
2 empty SD card's
i want to instal python on one and c++ on the other
and see whitch i can use first
python :
if i have the firmware
must i put it on the SD card as zip or unpacked ?
can i use windows 10 for that or do i need a special program
if so where do i find that ?
c++ :
i have now eclipse [ java 8 ] on my new laptop
i did not find a eclipse whit c++ AND java
can i instal a c++ eclipse next to a java eclipse ?
[ i need java for my lego ev3 ]
- PHabermehl
- Beiträge: 2438
- Registriert: 20 Dez 2014, 22:59
- Wohnort: Bad Hersfeld
Re: c++ & TXT
Hi,bluatigro hat geschrieben:update :
the formating is good now
i have now :
a lejos image SD card
2 empty SD card's
i want to instal python on one and c++ on the other
and see whitch i can use first
python :
if i have the firmware
must i put it on the SD card as zip or unpacked ?
can i use windows 10 for that or do i need a special program
if so where do i find that ?
c++ :
i have now eclipse [ java 8 ] on my new laptop
i did not find a eclipse whit c++ AND java
can i instal a c++ eclipse next to a java eclipse ?
[ i need java for my lego ev3 ]
good to hear that the SD cards are okay now.
Some thoughts:
-> there is no native C compiler on the TXT. You have to cross-compile on another CPU, may it be Linux or Windows.
The best point to start is already linked above: https://github.com/fischertechnik
Anyway I would not recommend starting with C...
-> the community firmware - a good point for start coding in python - is very well documented: https://cfw.ftcommunity.de/ftcommunity- ... g-started/
This link was also posted before. Just take your time and check out the already given links.
Kind regards
Peter
Re: c++ & TXT
The integration of the toolchain for cross compiling in Eclipse works very good.
Eclipse is a very nice workbench.
I not even notice that there is a crosscompiler involved.
C/C++ is not so difficult to use. The main problem can be: understanding how the TA (transfer area) works.
The advantage is that you can work with the normal TXT firmware.
In one Eclipse workbench you can work with C/C++ and Java and other languages when they have their proper plugin available.
However there is a big difference between Eclipse and MS Visual Studio. In the MS-Visual Studio environment is .NET the base and the languages are dialects on top of the .NET framework.
This makes it possible to work with a mix of dialects inside one aplication.
Eclipse is a very nice workbench.
I not even notice that there is a crosscompiler involved.
C/C++ is not so difficult to use. The main problem can be: understanding how the TA (transfer area) works.
The advantage is that you can work with the normal TXT firmware.
In one Eclipse workbench you can work with C/C++ and Java and other languages when they have their proper plugin available.
However there is a big difference between Eclipse and MS Visual Studio. In the MS-Visual Studio environment is .NET the base and the languages are dialects on top of the .NET framework.
This makes it possible to work with a mix of dialects inside one aplication.
Zuletzt geändert von vleeuwen am 22 Dez 2018, 15:29, insgesamt 2-mal geändert.
Re: c++ & TXT
i have a problem :
when i start the TXT the screen .5 sec gray then black again
when i start whit no SD card the same
according to the info i have to put the SD into the TXT
and then use putty
but that gives a chicken vs egg problem :
do i not need first to put the firmware on the SD ?
when i start the TXT the screen .5 sec gray then black again
when i start whit no SD card the same
according to the info i have to put the SD into the TXT
and then use putty
but that gives a chicken vs egg problem :
do i not need first to put the firmware on the SD ?
Re: c++ & TXT
Hi,
We will update the documentation to make that step clear.
Have fun!
Esther
What about the power supply for your TXT? If you use a battery, please make sure that it is fully loaded.bluatigro hat geschrieben:i have a problem :
when i start the TXT the screen .5 sec gray then black again
when i start whit no SD card the same
To boot the communitiy firmware, it has to be on the SD card. You have to download the CFW firmware and put it on your SD card using your PC (or whatever computer you use besides the TXT).according to the info i have to put the SD into the TXT
and then use putty
but that gives a chicken vs egg problem :
do i not need first to put the firmware on the SD ?
We will update the documentation to make that step clear.
Have fun!
Esther
Re: c++ & TXT
@ estherm :
can i use windows 10 for that or do i need a special program
[ whit lejos i used a special prorgam thats why i ask ]
if this al is helpful it wil be python what i going to use for the TXT
and i wil be a litle happyer
how do i place a *.bmp of my mecranorobot on this forum ?
can i use windows 10 for that or do i need a special program
[ whit lejos i used a special prorgam thats why i ask ]
if this al is helpful it wil be python what i going to use for the TXT
and i wil be a litle happyer
how do i place a *.bmp of my mecranorobot on this forum ?
Re: c++ & TXT
The documentation https://cfw.ftcommunity.de/ftcommunity- ... ation.html says:bluatigro hat geschrieben: can i use windows 10 for that or do i need a special program
"Download the latest version of the ftcommunity-TXT-firmware. At the time of writing this was “ftcommunity-txt-0.9.4.zip”. Copy all three files contained therein to the microSD-card (which should be formatted with FAT32. If you don’t know what that means and your card has 16GB or less: don’t worry, you’re set already)"
This means for you:
- Use the browser on your windows machine to download the file.
- Save the zip file oy your computer and remember where you put it.
- Unzip the file (see for example this instruction: https://support.microsoft.com/en-gb/hel ... nzip-files).
- Copy all three files on your SD card.
- Unmount the SD card on your computer and insert it into your TXT.
I hope this explanation works for you.
Best wishes,
Esther
Re: c++ & TXT
@ estherm :
thanks for the help so far
i wil use this and report results
can a *.py file be put on the TXT ?
what wil i see on the screen of the TXT
if i got it good ?
i need verry detailt instruction's
pardon for that
i do not like to gamble
the propability's stack in my disadvatige to often
thanks for the help so far
i wil use this and report results
can a *.py file be put on the TXT ?
what wil i see on the screen of the TXT
if i got it good ?
i need verry detailt instruction's
pardon for that
i do not like to gamble
the propability's stack in my disadvatige to often
Re: c++ & TXT
Dear blutatigro,
did you successfully boot your TXT with the CFW (community firmware)?
If yes, you can now proceed to program it in Python. For so beginning, I would usually suggest to use Brickly. However, if you need pure text programming, starting with Python is also possible.
A detailed instruction in English can be found here: https://cfw.ftcommunity.de/ftcommunity- ... ial-1.html
It's a lot of text to read, so you can avoid to "gamble". Just follow the instruction. If something is unclear, this forum will be able to help you.
Best regards
Esther
did you successfully boot your TXT with the CFW (community firmware)?
If yes, you can now proceed to program it in Python. For so beginning, I would usually suggest to use Brickly. However, if you need pure text programming, starting with Python is also possible.
A detailed instruction in English can be found here: https://cfw.ftcommunity.de/ftcommunity- ... ial-1.html
It's a lot of text to read, so you can avoid to "gamble". Just follow the instruction. If something is unclear, this forum will be able to help you.
Best regards
Esther