Forum Replies Created
-
AuthorPosts
-
Martin WagnerParticipantSecond try with files
Attachments:
You must be logged in to view attached files.
Martin WagnerParticipantHi Anders,
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?
Till soon,
MartinP.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?
Martin WagnerParticipantHi Anders,
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,
Martin
P.S.: I guess buttons, lcd, sound should be singletons, the rest can have multiple instances.
Martin WagnerParticipantHi Anders,
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 elements2. Global Boolean with If … else … endif
+ simple
– 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,
MartinP.S.: Sample of how I should do it would be the best.
Martin WagnerParticipantHi Jacek,
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.
See you,
Martin
Martin WagnerParticipantGot it, thanx.
Bugs are already in their Bugzilla.Martin
Martin WagnerParticipantHi Anders,
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.
CU,
Martin
Martin WagnerParticipantI 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,
Martin
Martin WagnerParticipantHi Anders,
could you send me that version via e-mail (martin.wagner.daheim@web.de) (link or file)?
I found further problems in 4.2.2 and can not get a previous version in the web.
Thanks,
Martin
Martin WagnerParticipantHi Anders,
I did, but I could not find the version of Xamarin.
Martin
Martin WagnerParticipantWhich Xamarin version did you use? Win / Mac or Linux?
Martin WagnerParticipantThe forum gui has eaten my links:
Xamarin bug:
https://bugzilla.xamarin.com/show_bug.cgi?id=15166
No old versions:
https://forums.xamarin.com/discussion/10132/howto-install-older-versions-of-xamarin-software -
AuthorPosts
Follow