c++ & TXT

Alles rund um COMPUTING inkl. Microcontroller & Co.
Everything about COMPUTING incl. Microcontrollers
Forumsregeln
Bitte beachte die Forumsregeln!

c++ & TXT

Beitragvon bluatigro » 06 Sep 2018, 11:29

i m using devc++ and code::blocks for c++
where can i find info on using c++ on the TXT ?

i want to code for mobile robots

it wood be a lot easyer for me if ROBOPro came whit a script language build in
Benutzeravatar
bluatigro
 
Beiträge: 17
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitragvon steffalk » 07 Sep 2018, 10:35

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
Benutzeravatar
steffalk
ft:pedia-Herausgeber
 
Beiträge: 951
Registriert: 01 Nov 2010, 17:41
Wohnort: Karlsruhe

Re: c++ & TXT

Beitragvon Torsten » 09 Sep 2018, 09:22

Hi bluatigro,

bluatigro hat geschrieben:it wood be a lot easyer for me if ROBOPro came whit a script language build in


you could use ftrobopy and Python as a scripting language to access the TXT and all of its I/Os:
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
Torsten
 
Beiträge: 168
Registriert: 29 Jun 2015, 23:08
Wohnort: Gernsheim (Rhein-Main-Region)
Alter: 48

Re: c++ & TXT

Beitragvon bluatigro » 31 Okt 2018, 12:35

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 ?
Benutzeravatar
bluatigro
 
Beiträge: 17
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitragvon bluatigro » 31 Okt 2018, 13:45

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 ]
Benutzeravatar
bluatigro
 
Beiträge: 17
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitragvon PHabermehl » 31 Okt 2018, 17:07

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 ?


Hello,
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
PHabermehl
 
Beiträge: 904
Registriert: 20 Dez 2014, 23:59
Wohnort: Bad Hersfeld
Alter: 46

Re: c++ & TXT

Beitragvon vleeuwen » 31 Okt 2018, 19:53

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)
Benutzeravatar
vleeuwen
 
Beiträge: 935
Registriert: 31 Okt 2010, 23:23

Re: c++ & TXT

Beitragvon MasterOfGizmo » 31 Okt 2018, 22:15

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.
ftDuino, der Arduino für fischertechnik: http://ftduino.de
Benutzeravatar
MasterOfGizmo
 
Beiträge: 1409
Registriert: 30 Nov 2014, 08:44

Re: c++ & TXT

Beitragvon bluatigro » 01 Nov 2018, 11:17

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 ]
Benutzeravatar
bluatigro
 
Beiträge: 17
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitragvon PHabermehl » 01 Nov 2018, 14:11

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 ]


Hi,
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
PHabermehl
 
Beiträge: 904
Registriert: 20 Dez 2014, 23:59
Wohnort: Bad Hersfeld
Alter: 46

Re: c++ & TXT

Beitragvon vleeuwen » 02 Nov 2018, 10:04

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 insid one aplication.
Zuletzt geändert von vleeuwen am 06 Nov 2018, 01:14, insgesamt 1-mal geändert.
Benutzeravatar
vleeuwen
 
Beiträge: 935
Registriert: 31 Okt 2010, 23:23

Re: c++ & TXT

Beitragvon bluatigro » 05 Nov 2018, 14:55

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 ?
Benutzeravatar
bluatigro
 
Beiträge: 17
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitragvon EstherM » 05 Nov 2018, 18:18

Hi,
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

What about the power supply for your TXT? If you use a battery, please make sure that it is fully loaded.

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 ?

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).
We will update the documentation to make that step clear.

Have fun!
Esther
EstherM
 
Beiträge: 177
Registriert: 11 Dez 2011, 22:24

Re: c++ & TXT

Beitragvon bluatigro » 06 Nov 2018, 14:48

@ 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 ?
Benutzeravatar
bluatigro
 
Beiträge: 17
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitragvon EstherM » 06 Nov 2018, 22:56

bluatigro hat geschrieben:can i use windows 10 for that or do i need a special program

The documentation https://cfw.ftcommunity.de/ftcommunity-TXT/en/getting-started/installation.html says:
"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/help/4028088/windows-zip-and-unzip-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
EstherM
 
Beiträge: 177
Registriert: 11 Dez 2011, 22:24

Re: c++ & TXT

Beitragvon bluatigro » 08 Nov 2018, 11:45

@ 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
Benutzeravatar
bluatigro
 
Beiträge: 17
Registriert: 25 Jun 2018, 15:44

Re: c++ & TXT

Beitragvon EstherM » 11 Nov 2018, 13:31

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-TXT/en/programming/python/tutorial-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
EstherM
 
Beiträge: 177
Registriert: 11 Dez 2011, 22:24


Zurück zu Robo Pro / Computing / Software

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast