Forum Replies Created
-
AuthorPosts
-
Auctor137ParticipantHi Jacek,
thanks, looking forward to use this!
But I really don’t know what to do, I’m not a a professional programmer..Could you tell me how to compile the firmwarelib from the master branch and use your solution?
I’m using Visual Studio 2012 C# with Windows 7
- This reply was modified 9 years, 11 months ago by Auctor137.
Auctor137ParticipantHi everybody,
I’m a litte bit confused.. the new EV3 Colorsensor is not able to read RGB ? Why would LEGO do that?
I’ve tried this Code out of the new Tutorial from Max Mustermann, but with the EV3 Sensor it doesn’t work.
Red 0
Green 0
Blue 0
all the time.using System; using System.Threading; using MonoBrickFirmware.Sensors; using MonoBrickFirmware.Movement; using MonoBrickFirmware.Display; using MonoBrickFirmware.UserInput; namespace farbsensor { class farbsensor { static void Main(string[] args) { EV3ColorSensor farbsens = new EV3ColorSensor(SensorPort.In1); bool abfrage = true; string rotwert, gruenwert, blauwert; RGBColor RGBFarben = new RGBColor(0, 0, 0); ButtonEvents buts = new ButtonEvents(); buts.EscapePressed += () => { abfrage = false; }; while (abfrage == true) { rotwert = Convert.ToString(RGBFarben.Red); LcdConsole.WriteLine("Rot :" + rotwert); gruenwert = Convert.ToString(RGBFarben.Green); LcdConsole.WriteLine("Gruen :" + gruenwert); blauwert = Convert.ToString(RGBFarben.Blue); LcdConsole.WriteLine("Blau :" + blauwert); Thread.Sleep(2000); } LcdConsole.WriteLine("###############"); LcdConsole.WriteLine("PROGRAMMENDE..."); Thread.Sleep(3000); } } }
#EDIT
I forgot
RGBFarben = farbsens.ReadRGBColor();
infront of the “while-loop”, but farbsens does not have the function ReadRGBColor(), how can i do it?
Auctor137Participant
Auctor137ParticipantIs there no option to send private messages in this forum?
Well:
Maybe a chapter about all these WaitHandle commands…
you need these a lot if you work withmotorA.SetSpeedProfile(speed, degrees accelerate, degrees hold speed, degrees brake, break at end?(true/false));
Otherwise it won’t work fine. I’ve started a thread about that two weeks ago.
And I need to know how to detect Orange with the EV3 Colorsensor^^
Auctor137ParticipantAwesome
I’m from germany and that’s really helpful – really appreciate that!already printed it ;D
Auctor137ParticipantYeah I know, but i need to read the colors. I’ve used the EV3 Colorsensor now and it works fine.
Auctor137Participant…
I’ve used the NXT LIGHTsensor, not the COLORsensor.
Oh man.
Auctor137ParticipantThanks a lot Anders, your code works great.
I’ve modified it a bit, to do only 8 turns (=360degrees).and I’ve started another Thread about the nxt color sensor.
-
AuthorPosts
Follow