View unanswered posts | View active topics It is currently Thu Oct 18, 2018 6:19 pm






Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next
alternative to bFloatDuringInactiveMotorPWM needed 
Author Message
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
Quote:
You'll have fun writing interrupt handlers, etc

are you sure?
I mean: really sure?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Mon Oct 06, 2008 4:36 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
Yeah, about as much fun as I had putting that aforementioned hole in my head!

Hahaha!

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Oct 06, 2008 4:39 pm
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
If you're really serious I can make you an offer that you can not refuse:
you write the interrupt handlers (and have lot of fun)
I do the rest of the code :P

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Mon Oct 06, 2008 4:43 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
I think I am going to have to pass on that one! Sorry.

Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Oct 06, 2008 5:00 pm
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
remember: no fun, no risk :-$

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Mon Oct 06, 2008 5:01 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
Well, nxtOSEk does not have a debugger and has many other limitations. I suggest you read through some of the documentation of it. You'll find that RobotC with all its own limitations really isn't as bad as you might think, haha. I had a good look at it the other day when I really wanted my pointers to functions. When I saw how much work it is to do some of the things that are super simple in RobotC, I suddenly felt that the pointers to functions weren't nearly enough to make me want to switch.

Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Oct 06, 2008 5:10 pm
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
ok, back to serious, just for the developers - let's return to the thread opening post:
Ford Prefect wrote:
@developers
hello,
the use of
Code:
bFloatDuringInactiveMotorPWM

is very unconvenient and above this works faulty (as reported).

A better way to use the motor floating vs. hold/brakemode is like it's used by NQC:
Here you can use both commands alternatively to stop a motor movement.
in a sort of adapted syntax it's like
Code:
motor(1)=stop; // hold/ brake mode
// or
motor(1)=floating; // floating mode

It was fine if you can implement this in a similar way, maybe by
motor(1)=0; // means: hold/brake
motor(1)=101; // (or any value > 100 or <-101) means: floating

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Last edited by Ford Prefect on Sun Oct 26, 2008 8:14 am, edited 1 time in total.



Mon Oct 06, 2008 5:13 pm
Profile
Rookie

Joined: Sat Apr 19, 2008 11:51 am
Posts: 43
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
I can copy that!
bFloatDuringInactiveMotorPWM is working faulty!


Wed Oct 22, 2008 12:11 pm
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
in NXC we have the following commands:

Off(MotorPort) switches the motor to brake mode
Coast(MotorPort) switches the motor to coast mode.

One should have something like this also at RobotC.

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Fri Nov 07, 2008 4:53 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
Yeah, or something like motor[motorB] = motorFloat; or something to that effect.

Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Nov 07, 2008 4:57 pm
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
@developers: is there meanwhile sth planned?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sun Jan 11, 2009 9:16 am
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
@developers: would you plz be kind enough to reply to my question?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sun Jan 18, 2009 2:17 pm
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
@developers:
again silence in the forest ?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sat Jan 31, 2009 12:17 pm
Profile
Rookie

Joined: Wed Jan 14, 2009 3:14 am
Posts: 16
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
Ford Prefect wrote:
@developers:
again silence in the forest ?


Oh no! Another issue going to the bottom of the priority list! And this one would have been nice to have addressed.

Seriously, continuing to poke at the developers isn't going to get your issue addressed any faster and may result in them ignoring it all together.


Sat Jan 31, 2009 2:45 pm
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: alternative to bFloatDuringInactiveMotorPWM needed
they already keep ignoring it since 4 or 5 months (there have been other posts which pointed out to the faulty bFloatDuringInactiveMotorPWM function !!) and there was no reply at all wherever it will appear on ANY a priority list.
(TO here was Mon, 06. Oct 2008 18:19 )

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sat Jan 31, 2009 2:56 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 31 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.