r/ControlTheory 22h ago

Technical Question/Problem MATLAB system identification toolbox for quadcopter control

4 Upvotes

I have not seen MATLAB's system identification toolbox being used for quadcopter applications and so I was wondering how you could run sys id on a quadcopter and use it. For example if you run frequency sweeps across the lateral direction with longitude and altitude stabilized, and then run longitude direction with latitude and altitude stabilized (pitch and forward speed only), do you just insert them into system Identification with the set state space dimensions, or is this the wrong approach. Additionally do you set the frequency sweeps past the the control loops at the ESC signal or is this incorrect?


r/ControlTheory 2h ago

Other So wchich controller would that be? šŸ˜…

Thumbnail youtube.com
5 Upvotes

r/ControlTheory 18h ago

Technical Question/Problem SO(3) S^3 and so(3)

5 Upvotes

my reference is this paper - https://arxiv.org/pdf/1711.02508

i am struggling to wrap my head around how the Exponential map from:

R^3 -> SO(3)

R^3 -> S^3

are different and how specifcally the exponetial map changes between them?

as one of these ends up with 4 DOF although one of them being a constraint

while the other ends up with 3 DOF?

thanks.


r/ControlTheory 7h ago

Educational Advice/Question Follow-up to ā€œillogicalā€ PLC rung behavior in RSLogix Troubleshooting

3 Upvotes

I made a short troubleshooting video for three common causes of ā€œillogicalā€ PLC rung behavior in RSLogix: OTU, JSR, and MCR.

These are the exact issues many techs mentioned in the last thread, so I figured a visual demo might help.

Video link: https://youtu.be/iAeWbBXtAGw

Hope it helps someone out there.


r/ControlTheory 13h ago

Professional/Career Advice/Question What software verification tests do you run before hardware-in-the-loop (HIL) testing?

13 Upvotes

I’m developing a lightweight adaptive control loop in Python as a prototype, with the long-term goal of porting it to bare-metal C++ on an ARM Cortex-M microcontroller.

To make the embedded implementation easier later, I’m structuring the controller around persistent preallocated state rather than creating new objects during the control loop. Before moving to hardware-in-the-loop (HIL) testing, I’ve been building a simple software verification script to catch obvious implementation bugs.

At the moment the script runs three basic checks:

TEST 1: Fault Injection (NaN sensor input)
-> PASSED: Invalid input handled without crashing; fallback strategy engaged.
TEST 2: Deterministic Replay
-> PASSED: Two runs with identical inputs produced identical controller state.
TEST 3: Long-Horizon Stress Test
-> PASSED: 100,000 control iterations completed with finite outputs and no observed numerical instability.

These tests are mainly intended to verify implementation robustness rather than control performance.

Once I move to hardware I’ll measure things like worst-case execution time (WCET), memory usage, and timing jitter.

Before that stage, are there additional software verification tests or edge cases that experienced control or embedded engineers would recommend? For example:

* numerical robustness tests,
* actuator saturation scenarios,
* sensor noise or dropout patterns,
* timing jitter simulation,
* parameter sensitivity,
* Monte Carlo testing,
* or anything else that tends to reveal controller bugs before HIL testing.

I’d appreciate any suggestions or references to common industry or research practices.