Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"03-31-13 - Endian-Independent Structs"

3 Comments -

1 – 3 of 3
Blogger jfb said...

That's a really good idea for the endian-independent structs.

I recently did something similar with fixed-point numbers: using constexpr to guarantee the compiler converted the floats to the fixed-point class, and then typedef'ing 'number' to float or leaving it as a number class. Kind of neat if you want to share code between a small microcontroller and a PC project. :-)

Charles, question about your cubic controller... PID makes this easy, but, for cubic do you have any ideas how it could be made to work if the frame time was substantially less than the system response time? Seems like if one makes the commanded speed 'one frame' in the future, it'd just stick at a really really low speed for a long time..

April 14, 2013 at 8:48 AM

Blogger cbloom said...

I'm not sure I understand the question; can you email me?

April 15, 2013 at 10:35 AM

Blogger Unknown said...

For C I did something like this: https://github.com/alexfru/TypeTraitsInC

April 29, 2016 at 2:20 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.