Martin Wagner

Forum Replies Created

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • in reply to: Brick-Simulator? #3828
    Author Image
    Martin Wagner
    Participant

    Second try with files

    Attachments:
    You must be logged in to view attached files.
    in reply to: Brick-Simulator? #3827
    Author Image
    Martin Wagner
    Participant

    Hi 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,
    Martin

    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?

    in reply to: Brick-Simulator? #3826
    Author Image
    Martin Wagner
    Participant

    Hi 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.

    in reply to: Brick-Simulator? #3825
    Author Image
    Martin Wagner
    Participant

    Hi 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 elements

    2. 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,
    Martin

    P.S.: Sample of how I should do it would be the best.

    in reply to: Preparations for GyroBot #3810
    Author Image
    Martin Wagner
    Participant

    Hi 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

    in reply to: Xamarin does not build with Mono-Runtime #3808
    Author Image
    Martin Wagner
    Participant

    Got it, thanx.
    Bugs are already in their Bugzilla.

    Martin

    in reply to: Brick-Simulator? #3802
    Author Image
    Martin Wagner
    Participant

    Hi 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

    in reply to: Preparations for GyroBot #3796
    Author Image
    Martin Wagner
    Participant

    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,
    Martin

    in reply to: Xamarin does not build with Mono-Runtime #3794
    Author Image
    Martin Wagner
    Participant

    Hi 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

    in reply to: Xamarin does not build with Mono-Runtime #3779
    Author Image
    Martin Wagner
    Participant

    Hi Anders,
    I did, but I could not find the version of Xamarin.
    Martin

    in reply to: Xamarin does not build with Mono-Runtime #3775
    Author Image
    Martin Wagner
    Participant

    Which Xamarin version did you use? Win / Mac or Linux?

    in reply to: Xamarin does not build with Mono-Runtime #3771
    Author Image
    Martin Wagner
    Participant
Viewing 12 posts - 16 through 27 (of 27 total)
Posted in

Make a donation