EmbeddedRelated.com

Jim Frederick (@jimfred)

Firmware/Software engineer. Interests: CNC machining Glass fusing Bicycle riding

Others have already cautioned about heap/new/malloc, RTTI etc. I typically avoid using the new operator and prefer to statically allocate everything at compile-time...

Re: How to build a network of tiny micros?

Reply posted 2 years ago (02/07/2022)
Create a virtual dipswitch location in flash and tell the compiler/linker "hands-off". Reading the flash location from code is easy - similar to reading a special...

Re: Digital PID controller implementation in C++

Reply posted 4 years ago (11/27/2019)
It sounds like m_DU is big. We could trace it back to find out why. It could simply be that the proportional part simply wants the output to be at a different value. As ...

Re: Digital PID controller implementation in C++

Reply posted 4 years ago (11/27/2019)
Consider rearranging your 'if' statement by changing 'm_U = m_U1 + m_DU' to something like 'if (manual_override) {m_U = m_OutBlk;} else {m_U   = m_U1 + m_DU;}'...

Use this form to contact jimfred

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address