View unanswered posts | View active topics It is currently Mon Aug 20, 2018 2:12 pm

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
bug: struct float values NEVER can be assigned/no read b.val
Author Message
Guru

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
bug: struct float values NEVER can be assigned/no read b.val
hi,
similar to problem of my other question re. structure operations,
the struct values can't be assigned at all if they are float (see lines 99-101),
and even can't be read at all if the struct is passed to a function by value; see lines 61 and 109 (code see next post):

There it seems if you can't assign any float values at all, not even directly!

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)

Last edited by Ford Prefect on Sat Apr 19, 2008 6:13 am, edited 10 times in total.

Thu Apr 17, 2008 9:17 am
Guru

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030

simplified code for bug fixing:
 Code:// Neuronales Netz aus 1 Neuron// LTU = Linear Threshold Unit oder// Adaline = Adaptive linear element#define printXY nxtDisplayStringAtconst int nl0 = 20;const int nd = 20;const float th = 0.5;float lbd = 0.2;float dummy;//**********************************************************************typedef struct{   float in[nd];   float w[nd];   float t[nd];   float net;   float thr;   float act;   float out;} tNeuron;tNeuron Neuron0[nl0];  // nl0=20 Neuronen in Eingabeschicht 0//**********************************************************************void ResetNeuron(tNeuron &neur){ // alles auf Null   int d;   for (d=0; d [line 61]  }  return;}task main(){   SensorType(S1)=SensorTouch;   SensorType(S2)=SensorTouch;   InitAllNeurons();   InitThisNeuronalNet();   StartTask (displayValues);   StartTask (RefreshNet);   pause();}

@developers, @Dick Swan:
Could you please have a look to this bug?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)

Fri Apr 18, 2008 5:44 pm
Moderator

Joined: Wed Jan 31, 2007 3:39 am
Posts: 299
Location: San Diego, California. USA

The problem is this is not a bug posting forum, its a discussion forum for users to discuss NXT programing and pass along ideas. This is not the proper way to contact the developers with bugs, we have mentioned it many times. The proper way to post a bug is with the bug tracker, that is the best way to post your bugs to the developers, thats why its there. Once it is in the bug tracker, the developers will get to it as soon as possible.

Right now Dick is very busy due to FIRST robotics changing their robotics system to the NXT for their future season, and he is working on making RobotC fully compatible with their new hardware.

Once again, you need to be patient! Change dosn't occur in an instant, it takes allot of time and work. Remember, RobotC would not be what it is today without all the suggestions from its users, but patience is a must, and all your messages are coming across as impatient, blunt, and non understanding. There is absolutely no need to keep reposting reminders.

Scott

_________________
Mmmm Legos B-)

My Robot Projects:
http://www.freewebs.com/robotprojects/

Thu May 01, 2008 3:33 pm

Joined: Wed Jan 24, 2007 10:42 am
Posts: 620

This issue has been fixed as of the latest firmware release posted to the forums.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net

Tue May 06, 2008 2:20 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 4 posts ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning