Forum Replies Created
Second try with files
Attachments:You must be logged in to view attached files.
I think that now I have something that gets the best of all: A HAL class with two code blocks (real and simu), controlled by a compiler switch. After making the HAL class a singleton it even seems to work for the buttons. ;-).
The display will be the next.
What do you think?
P.S.: I can’t implement the led, because I don’t no the meaning of the pattern integer. Is there a documentation which parts of the integer control color, blinking and on/off?
sleeping over: It can only by the first approach. I am just having problems with C# as a VB.Net-guy. It would be great if you could post a short code sample of how the hardware abstraction layer should look like (a mini interface, Ev3 and Simu implementation with , just new and dispose). Then I could keep going in your style.
I’ll keep going,
P.S.: I guess buttons, lcd, sound should be singletons, the rest can have multiple instances.
I have spent some time in different implementations of the buttons.cs, … and I need your opinion:
1. Interface with EV3- and Simu-Implementation
+ object oriented,
– a lot of changes, high coding effort, EV3 version contains simu code and data objects for binding of WPF elements
2. Global Boolean with If … else … endif
– EV3 version contains simu code, overview over e.g. all EV3 codes only via ‘Find all references’
3. Compilation symbol with #If … #else … #endif
+ simple, clean code for each version
– overview over e.g. all EV3 codes only via ‘Find all references’
I would prefer the third way because you see the differences directly in the context of the surrounding functional code. I think this is more important than the overview of all e.g. simu code in one spot, but the code is more difficult to read.
What do you recommend? What fits best to your programming style and is better for code maintenance?
Thanks for any comments,
P.S.: Sample of how I should do it would be the best.
great to have someone to share experiences. I know that it won’t be a real-time OS, but I am trying to find the DotNet components that make it as “real-timish” as possible. Maybe I described it too complicated, but the only difference between our ideas seems to be, that I want to use a timer-triggered WaitOne instead the Sleep to pause the measurement thread. The rest is planned to be similar. Based on our experiences, maybe we could suggest some easy-to-use-classes for the project afterwards.
Got it, thanx.
Bugs are already in their Bugzilla.
I’ll start digging into WPF and your code when possible. But it will take some time since my vacation is over tomorrow. I’ll get back to you when I got questions or a first suggestion.
I just saw issue#13 in the GitHub and it still seems to be missing: Can I place a strong vote for implementing the educational gyro-sensor?
This might be a kind of blocking-stone for my GyroBoy 😉
Thanks a lot in advance,
could you send me that version via e-mail (firstname.lastname@example.org) (link or file)?
I found further problems in 4.2.2 and can not get a previous version in the web.
I did, but I could not find the version of Xamarin.
Which Xamarin version did you use? Win / Mac or Linux?
The forum gui has eaten my links:
No old versions: