Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.50 seconds; generated 35 minute(s) ago.

  1. Replies
    10
    Views
    810

    What happens if S1 negates before S2 asserts? -...

    What happens if S1 negates before S2 asserts?
    - Did the vehicle reverse and leave the weighbridge?
    - Is the vehicle shorter than the gap between S1 and S2?

    What happens if S1 and S2 are...
  2. Replies
    10
    Views
    788

    So are you looking for the smart way to solve the...

    So are you looking for the smart way to solve the problem.

    Before you can do this, you need to understand how you solve the problem in real life.



    Or brute force, try every combination until...
  3. Replies
    6
    Views
    418

    Sure16465

    Sure16465
  4. Replies
    10
    Views
    810

    Draw out a truth table 0 0 0 - "please drive...

    Draw out a truth table

    0 0 0 - "please drive onto the weigh bride"
    0 0 1
    0 1 0
    0 1 1
    1 0 0
    1 0 1
    1 1 1
  5. Replies
    6
    Views
    418

    Decimal is just how the debugger chooses to show...

    Decimal is just how the debugger chooses to show you the numbers.

    There are options in the debugger to allow you to show values in hexadecimal.
  6. Replies
    6
    Views
    418

    It depends what you mean by "decimal format". ...

    It depends what you mean by "decimal format".

    C only knows about binary at the machine level.

    The whole decimal/binary thing is purely down to presentation, such as when you try and print a...
  7. Replies
    5
    Views
    4,897

    > I am going to start an embedded C project under...

    > I am going to start an embedded C project under Debian Linux in the near future.
    Sounds like a regular project to me - if you mean the target runs Debian.

    Or are you developing using Debian,...
  8. > What are the benefits of learning DSA? The...

    > What are the benefits of learning DSA?
    The ability to write programs that take up more code and time than the usual 1-page student homework, finished in a single edit.

    For example, if your...
  9. Replies
    2
    Views
    1,220

    > Most of the time the processor i am working...

    > Most of the time the processor i am working with has very limited time
    Which one?

    Are you working with other more capable micro controllers the rest of the time?

    > a. Analog data reading of...
  10. Basically, you need to design one of these first....

    Basically, you need to design one of these first.
    Finite-state machine - Wikipedia
  11. Did you read the rest of the console API? ...

    Did you read the rest of the console API?

    PeekConsoleInput function - Windows Console | Microsoft Docs

    There's no need to block on console input with peek.
  12. Thread: Qr esc pos

    by Salem
    Replies
    1
    Views
    155

    What's a QR request? Oh, for reference saying...

    What's a QR request?

    Oh, for reference saying @member will just get your posts moderated.
    This isn't twitter/discord/reddit or any other new-fangled social media things.
    Specifically, it doesn't...
  13. Replies
    3
    Views
    363

    Unless you have a good reason for separating...

    Unless you have a good reason for separating create from init, then "create is init" and "cleanup is destroy" is a much simpler interface.

    For a start, you don't have to worry about garbage...
  14. First off, a console program is already a windows...

    First off, a console program is already a windows program.
    Just making it a GUI program would not solve your focus problem for example.

    You should be able to ameliorate the focus problem with...
  15. Are all elements of c_t the same type? If they...

    Are all elements of c_t the same type?

    If they are, you can probably cook something up with offsetof - cppreference.com
  16. Replies
    1
    Views
    295

    Maybe review your other threads on the same...

    Maybe review your other threads on the same subject:
    MSB and LSB of the signed value
    Signed and Unsigned Variables
    Missing basics of signed and unsigned numbers (this was 3 years ago)

    Mostly,...
  17. How many 'member_of_interest' are there? ...

    How many 'member_of_interest' are there?

    Anytime you start putting numeric suffixes on symbols is a sign you should be thinking about an array.
    Then your 'member_of_interestx' parameter simply...
  18. Replies
    4
    Views
    477

    Looks OK, does it work? Do you get anything at...

    Looks OK, does it work?
    Do you get anything at the receiver?

    > sprintf(buffer,"%d",data);
    You might want to add a space at the end.
    sprintf(buffer,"%d ",data);

    Otherwise your receiver will...
  19. Replies
    4
    Views
    477

    The UART is just a transport between two end...

    The UART is just a transport between two end points.

    How you send "My array is of size of 100 of bit16." depends entirely on what the other end of the UART (the receiver) expects to see.

    > void...
  20. You can right-click on the watched variable,...

    You can right-click on the watched variable, choose properties and change the watch expression to whatever you want.
  21. Replies
    7
    Views
    970

    You may as well promote the input directly to...

    You may as well promote the input directly to int32_t
  22. Replies
    7
    Views
    970

    Start with int32_t l_temp_rawcount =...

    Start with
    int32_t l_temp_rawcount = (int32_t)rawcount;
    int32_t l_temp_offset = l_temp_rawcount - 512;

    > l_temp_square_u32 = (uint32_t) (l_temp_offset_s16 * l_temp_offset_s16);
    Here, the...
  23. Having setup a watch point on a pointer variable,...

    Having setup a watch point on a pointer variable, use the context menu to then say "dereference".
    16462
  24. Depends what you want really. If you're...

    Depends what you want really.

    If you're looking to make a GUI of some sort by the path of least resistance, then I can recommend WxWidgets.

    It comes with an extensive set of sample applications...
  25. Replies
    9
    Views
    676

    On Linux, I use code::blocks and GCC On Windows...

    On Linux, I use code::blocks and GCC
    On Windows I use VS
Results 1 to 25 of 494
Page 1 of 20 1 2 3 4