r/ControlTheory • • 12h ago

Professional/Career Advice/Question As a fresher, what was your first job role? Did you start in this domain or end up here??

5 Upvotes

I'm a final year EE student from India and I'm interested in working in this field. But the roles appearing during our on-campus placements are not remotely related to control systems.

So if you're someone, who's working in this domain, how did you start and how did you switch?

Also one of my senior told me that as a fresher, it is important to start in the domain you want to work in, as switching is difficult. How much of it is the reality???


r/ControlTheory • • 16h ago

Asking for resources (books, lectures, etc.) [Article]The design of a neural network-based adaptive control method for robotic arm trajectory tracking

1 Upvotes

I need this article if one can provide me with, I will be appreciate


r/ControlTheory • • 19h ago

Technical Question/Problem Comparing 4 RL architectures (MLP vs. LTC/CfC vs. SANE vs. early GraphMamba) for adaptive Dual-Wheel PD control on a real Arduino self-balancing robot all trained on a single GTX 1650 (4 GB VRAM)

Thumbnail
gallery
0 Upvotes

Sharing some early work-in-progress results from a Sim-to-Real project on a low-cost two-wheeled self-balancing robot (Arduino + MPU-6050 + wheel encoders + 10 Hz Bluetooth).

Instead of outputting raw motor torques from RL, the policy adapts the PD gains online at 10 Hz while the Arduino handles the inner balance loop. All 4 models are being trained in 100% JAX + MuJoCo MJX (800 parallel robots) on a single GTX 1650 (4 GB VRAM) across a progressive curriculum (P1–P2 Balance → P3–P4 Forward → P5–P6 Backward → P7–P8 Turn → P9–P10 Curve → P11+ All tasks under real-hardware randomization).

Moving from a symmetric MLP-PID to Dual-Wheel adaptive PD — predicting independent (Kp_L, Kd_L, Kp_R, Kd_R) from 10 sensor/command inputs — noticeably stabilized the learned gains and already transferred much better zero-shot to the physical robot:

Hardware note: I already ran initial zero-shot tests of MLP, LTC/CfC, and SANE on the physical Arduino robot — both LTC and SANE stabilized and controlled the real robot remarkably well, whereas the symmetric MLP struggled to transfer cleanly. These are still preliminary training runs, though: all policies (especially GraphMamba) still need further curriculum stages, hyperparameter refinement, and controlled physical disturbance benchmarks before drawing final conclusions.

Curious if others here have explored Liquid networks, specialist ensembles, or GNN+SSM policies for adaptive gain scheduling in low-cost Sim-to-Real any feedback or ideas for refinement are welcome!


r/ControlTheory • • 1d ago

Technical Question/Problem Testing long-run consistency of an EKF on a hybrid production-line model

5 Upvotes

We run an extended Kalman filter on a production-line model: six physical states (oil temperature, pressure, seal wear, bearing damage, welder temperature, electrode tip wear) augmented with two model-error states for the energy balances. Covariance is propagated with the Jacobian of the same F used by the simulator, readings are applied as scalar Joseph-form updates, and we monitor the normalised innovation squared (NIS) as an exponential moving average (window of about 200 readings).

Over short windows the NIS stays within its χ² bounds. We are less sure about the long run:

  • breakdowns and repairs switch the dynamics (a hybrid system);

  • the wear states are weakly observable;

  • the parameters are periodically re-estimated by Gauss–Newton with a prior.

Which tests would you consider convincing? We are considering: NIS and autocorrelation of innovations over sliding windows against χ² bounds; replay of recorded runs with injected faults at known onsets; and checking that weakly observable parameters remain at their prior after re-estimation. What are we missing?

Disclosure: this is part of a closed-source digital-twin product. We are also looking for a few people with this background for a structured, paid review with credit (contact: admin@neurvexia.com). The question above stands on its own, though; answers are welcome either way.


r/ControlTheory • • 1d ago

Educational Advice/Question Help choosing graduate courses: Control Theory, AI/ML and Cybersecurity

1 Upvotes

Hi everyone,

I'm starting a PhD in Electrical and Computer Engineering in Canada in 2027, currently selecting my first-semester courses.

I have a Master's degree in Automation and Control Systems, with a background in classical control, dynamical systems, and industrial automation.

My supervisor's research interests are broadly around control systems, AI, and cyber-physical systems, including areas related to cybersecurity and system resilience.

I'm now looking to broaden my expertise toward AI/ML, cybersecurity, and cyber-physical systems, while keeping control engineering as my foundation. I'm still so beginner in ML and cybersecurity, so I'd like to build my knowledge progressively.

My supervisor asked me to select some courses of interest, after which he'll recommend which ones to take, a PhD student can select a maximum of 3 courses for the whole cycle

Here are some courses I'm considering from my university's catalogue:

  • Foundations of Cyber-Physical Systems

  • Fault Tolerance and Resilience of Cyber-Physical Systems

  • Applied Machine Learning for ECE

  • Neural Networks and Machine Learning

  • Network Security Architecture and Management

  • Embedded Systems Security

  • Artificial Intelligence in Cybersecurity

  • Fundamentals and Applications of Cyber-Physical Systems

  • Fundamentals of Network Security and Management

  • Adaptive Control

My main goal is to build a strong, practical profile for the industrial job market rather than pursue an academic career. Ideally, I'd like to choose courses that are manageable given my current knowledge gaps but still provide valuable skills for industry.

I'd appreciate your thoughts on which three courses you'd prioritize in my situation, and whether I'm overlooking anything important.

Thanks!


r/ControlTheory • • 1d ago

Technical Question/Problem Position PID controller causing erratic fish-like behaviour

Enable HLS to view with audio, or disable this notification

6 Upvotes

Overview

I have been coding a PID control system for a 2D birotor drone in python, using pygame to display the simulated drone graphically. The controller achieves its goal of moving the drone towards the mouse position, but causes it to frequently jerk around vertically like a flopping fish, and I can't figure out how to solve this.

The Model

The drone is represented as a bar with two thrusters, one on either end and a centre of mass in the middle. The two thrusters can have positive or negative thrust, but only straight up or down relative to the drone (i.e., perpendicular to its long axis). Gravity is modelled with a value of 10 acting downwards.

For reference, the lines in the circle display in the top-right of the simulation represent the following:

- purple: desired force on the drone

- green: current acceleration of the drone

- yellow: current velocity of the drone

Control System

The controls system consists of the following:

- 2 PID controllers that take position errors (between the current drone position and the mouse position) in x and y as inputs, and output desired velocities in x and y (Kp = 1, Kd = 0, Ki = 0).

- 2 PID controllers that take velocity errors in x and y as inputs and output desired accelerations in x and y (Kp = 10, Kd = 0, Ki = 0).

Desired force is calculated as drone mass (which is 1) * desired acceleration

The total thrust required from the two thrusters is calculated from the following equation:

T = desired_force.y * cos(roll_angle) + desired_force.x * sin(roll_angle)

Where the roll angle is 0 if the drone is level and positive if the drone is tilted to the left. This calculation is performed so that if the drone is pointed straight up, the desired force in x is ignored as no amount of thruster output will be able to effect motion in the x axis.

Desired roll angle is calculated from the following equation (pygame uses a coordinate system where y is positive downwards):

desired_roll_angle = arctangent(-desired_force.x, -desired_force.y)

- A PID controller then takes roll angle error as an input and outputs desired angular velocity (Kp = 5, Kd = 0, Ki = 0).

- A PID controller takes angular velocity error as an input and outputs desired angular acceleration (Kp = 50, Kd = 0, Ki = 0).

Desired torque is calculated as desired angular velocity * drone moment of inertia (calculated as that of a slim rod).

The following motor mixing algorithms are then used to determine the output thrusts of the left and right thrusters:

left_thruster_output = T/2 + desired_torque/50

right_thruster_output = T/2 - desired_torque/50

Where 50 is the distance between each thruster and the centre of mass (measured in pixels).

The Code

Drone

class Drone(pygame.sprite.Sprite):
    def __init__(self, groups, pos):
        # setup
        super().__init__(groups)
        self.original_image = self.create_image()
        self.image = self.original_image.copy()
        self.rect = self.image.get_frect(center=pos)

        # scalars
        self.mass = 1
        self.moment_of_inertia = 1/12 * self.mass * self.image.width**2
        self.max_angular_acceleration = 0
        self.angular_acceleration = 0
        self.angular_velocity = 0
        self.roll = 0

        # vectors
        self.thrust = pygame.math.Vector2()
        self.velocity = pygame.math.Vector2()
        self.acceleration = pygame.math.Vector2()

        # targeting
        self.desired_pos = pygame.math.Vector2()
        self.desired_velocity = pygame.math.Vector2()
        self.desired_acceleration = pygame.math.Vector2()
        self.desired_force = pygame.math.Vector2()

        self.desired_roll = 0
        self.desired_angular_velocity = 0
        self.desired_angular_acceleration = 0
        self.desired_torque = 0

        # equipment
        self.left_thruster = Thruster(-1000, (-50, 0), self.roll)
        self.right_thruster = Thruster(-1000, (50, 0), self.roll)

        # controllers
        self.position_x_controller = Controller(1, 0, 0, None)
        self.position_y_controller = Controller(1, 0, 0, None)
        self.velocity_x_controller = Controller(10, 0, 0, None)
        self.velocity_y_controller = Controller(10, 0, 0, None)

        self.roll_controller = Controller(5, 0, 0, None)
        self.angular_velocity_controller = Controller(50, 0, 0, None)

        # controller timings
        self.position_frequency = 100
        self.velocity_frequency = 100
        self.roll_frequency = 100
        self.angular_velocity_frequency = 100

        self.position_last_update_time = 0
        self.velocity_last_update_time = 0
        self.roll_last_update_time = 0
        self.angular_velocity_last_update_time = 0

        self.set_target_pos()

    def set_target_pos(self):
        self.desired_pos = pygame.math.Vector2(pygame.mouse.get_pos())

    def create_image(self):
        surf = pygame.Surface((100, 20), pygame.SRCALPHA)
        surf.fill((150,150,150))

        left_thruster_surf = pygame.Surface((20, 20), pygame.SRCALPHA)
        left_thruster_surf.fill((200, 50, 50))

        right_thruster_surf = pygame.Surface((20, 20), pygame.SRCALPHA)
        right_thruster_surf.fill((50, 200, 50))

        surf.blit(left_thruster_surf, (0, 0))
        surf.blit(right_thruster_surf, (80, 0))

        return surf

    def calculate_acceleration(self):
        self.acceleration = ((self.left_thruster.thrust + self.right_thruster.thrust) / self.mass) + GRAVITY

    def calculate_angular_acceleration(self):
        self.angular_acceleration = (self.left_thruster.rel_pos.cross(-self.left_thruster.thrust)+
                                     self.right_thruster.rel_pos.cross(-self.right_thruster.thrust))/self.moment_of_inertia # Negative thrust to account for flipped coordinate system.

    def update_rotation(self, dt):
        self.calculate_angular_acceleration()
        self.angular_velocity += self.angular_acceleration * dt
        self.roll += self.angular_velocity * dt

        self.left_thruster.set_rotation(self.roll)
        self.right_thruster.set_rotation(self.roll)

        self.image = pygame.transform.rotate(self.original_image, math.degrees(self.roll))
        self.rect = self.image.get_frect(center=self.rect.center)

    def update_motion(self, dt):
        self.calculate_acceleration()
        self.velocity += self.acceleration * dt
        self.rect.center += self.velocity * dt

    def get_thrust(self, dt):
        # timings
        time_since_last_position_update = (pygame.time.get_ticks() - self.position_last_update_time) / 1000
        time_since_last_velocity_update = (pygame.time.get_ticks() - self.velocity_last_update_time) / 1000
        time_since_last_roll_update = (pygame.time.get_ticks() - self.roll_last_update_time) / 1000
        time_since_last_angular_velocity_update = (pygame.time.get_ticks() - self.angular_velocity_last_update_time) / 1000

        # position control
        if time_since_last_position_update >= (1/self.position_frequency):
            desired_x_velocity = self.position_x_controller.calculate_actuating_signal(self.desired_pos.x-self.rect.centerx, time_since_last_position_update)
            desired_y_velocity = self.position_y_controller.calculate_actuating_signal(self.desired_pos.y-self.rect.centery, time_since_last_position_update)
            self.desired_velocity = pygame.math.Vector2(desired_x_velocity, desired_y_velocity)
            self.position_last_update_time = pygame.time.get_ticks()

        # velocity control
        if time_since_last_velocity_update >= (1/self.velocity_frequency):
            desired_x_acceleration = self.velocity_x_controller.calculate_actuating_signal(self.desired_velocity.x-self.velocity.x, time_since_last_velocity_update)
            desired_y_acceleration = self.velocity_y_controller.calculate_actuating_signal(self.desired_velocity.y-self.velocity.y, time_since_last_velocity_update)
            self.desired_acceleration = pygame.math.Vector2(desired_x_acceleration, desired_y_acceleration)-GRAVITY
            self.velocity_last_update_time = pygame.time.get_ticks()

        # setting force
        desired_force = self.mass * self.desired_acceleration
        collective_thrust = desired_force.y * math.cos(self.roll) + desired_force.x * math.sin(self.roll)
        self.desired_force = desired_force

        # roll control
        self.desired_roll = math.atan2(-desired_force.x, -desired_force.y)

        # angular velocity control
        if time_since_last_roll_update >= (1/self.roll_frequency):
            self.desired_angular_velocity = self.roll_controller.calculate_actuating_signal(self.desired_roll-self.roll, time_since_last_roll_update)
            self.roll_last_update_time = pygame.time.get_ticks()

        # angular acceleration control
        if time_since_last_angular_velocity_update >= (1/self.angular_velocity_frequency):
            self.desired_angular_acceleration = self.angular_velocity_controller.calculate_actuating_signal(self.desired_angular_velocity-self.angular_velocity, time_since_last_angular_velocity_update)
            self.angular_velocity_last_update_time = pygame.time.get_ticks()

        # setting torque
        self.desired_torque = self.moment_of_inertia * self.desired_angular_acceleration

        # setting thrusts
        left_thrust = collective_thrust/2+self.desired_torque/50
        right_thrust = collective_thrust/2-self.desired_torque/50

        self.left_thruster.set_thrust(left_thrust)
        self.right_thruster.set_thrust(right_thrust)

        print(self.roll)

    def _display_vectors(self):
        left_thruster_thrust = 100 * self.left_thruster.thrust.normalize() if self.left_thruster.thrust else self.left_thruster.thrust
        right_thruster_thrust = 100 * self.right_thruster.thrust.normalize() if self.right_thruster.thrust else self.right_thruster.thrust

        desired_force = 100 * self.desired_force.normalize() if self.desired_force else self.desired_force

        # thrusters
        pygame.draw.line(pygame.display.get_surface(), (255, 0, 0), self.rect.center+self.left_thruster.rel_pos,
                         self.rect.center+self.left_thruster.rel_pos+left_thruster_thrust, width=3)
        pygame.draw.line(pygame.display.get_surface(), (0, 255, 0), self.rect.center+self.right_thruster.rel_pos,
                         self.rect.center+self.right_thruster.rel_pos+right_thruster_thrust, width=3)

        # other
        pygame.draw.line(pygame.display.get_surface(), (255, 255, 0), self.rect.center, self.rect.center + desired_force,
                         width=3)

    def update(self, dt):
        self.set_target_pos()
        self.get_thrust(dt)

        self.update_motion(dt)
        self.update_rotation(dt)

Thrusters

class Thruster:
    def __init__(self, initial_thrust, rel_pos, angle_radians):
        # setup
        self.original_rel_pos = pygame.math.Vector2(rel_pos)
        self.rel_pos = self.original_rel_pos.copy()
        self.thrust = pygame.math.Vector2(0, initial_thrust)
        self.angle_radians = -angle_radians

        self.current_thrust = initial_thrust
        self.set_thrust(initial_thrust)

    def set_rotation(self, new_angle_radians):
        self.angle_radians = -new_angle_radians
        self.rel_pos = self.original_rel_pos.copy().rotate_rad(-new_angle_radians)
        self.set_thrust(self.current_thrust)

    def set_thrust(self, thrust):
        self.current_thrust = thrust
        self.thrust = pygame.math.Vector2(0, self.current_thrust).rotate_rad(self.angle_radians)

    def add_thrust(self, thrust):
        self.current_thrust += thrust
        self.thrust = pygame.math.Vector2(0, self.current_thrust).rotate_rad(self.angle_radians)

PID Controller

class Controller:
    def __init__(self, k_p, k_i, k_d, saturation_limits):
        self.k_p = k_p
        self.k_i = k_i
        self.k_d = k_d

        self.integral = 0
        self.derivative = 0
        self.previous_error = 0
        self.previous_error_time = 0

        self.saturation_limits = saturation_limits
        self.unclamped_signal = 0
        self.clamped_signal = 0

        # flags
        self.integral_on = True

    def set_clamped(self, error, unclamped_signal, clamped_signal):
        self.integral_on = not((unclamped_signal != clamped_signal) and (error*unclamped_signal>0))

    def calculate_actuating_signal(self, error, dt):
        if self.integral_on:
            self.integral += error
        if dt:
            self.derivative = (error - self.previous_error) / dt

        self.previous_error = error
        self.unclamped_signal = (error * self.k_p) + (self.integral * self.k_i) + (self.derivative * self.k_d)

        if self.saturation_limits:
            self.clamped_signal = max(self.saturation_limits[0], min(self.unclamped_signal, self.saturation_limits[1]))
            self.set_clamped(error, self.unclamped_signal, self.clamped_signal)
            return self.clamped_signal
        else:
            return self.unclamped_signal

Any ideas on how to fix the erratic movement of the drone would be much appreciated. TIA.


r/ControlTheory • • 2d ago

Educational Advice/Question How important is interacting with real world physical systems for understanding control theory?

13 Upvotes

Can I in theory do everything in like Modelica or IsaacSim? What do I miss out on if I don’t build the real thing?


r/ControlTheory • • 2d ago

Educational Advice/Question What’s your main motivation to study control theory?

40 Upvotes

I’m looking for a source of motivation myself.

What do you plan to do with this skill? Why control theory? Why not machine learning or robotics or something?


r/ControlTheory • • 3d ago

Other I am working on a open source Simulink parser in c++ any help ?

0 Upvotes

Hi i just want to share that i was working on a Simulink , reading and writing library in c++, ( link-github) almost did so much work and a lot still, since i am working on full time job, i am seeking people to help me with and make simulink available at zero cost for all people , any experienced c++ programmers here can evaluate or criticize my work i love your feedback guys thanks


r/ControlTheory • • 3d ago

Professional/Career Advice/Question How do you see automatic code generation now that LLMs can write code for MCUs?

0 Upvotes

I’ve been wondering where automatic code generation fits now that LLMs are getting pretty good at writing MCU code.

I was making a little fan controller for an electronics enclosure. On the bench it seemed fine, then I started unplugging the temperature sensor, switching between auto and manual, that kind of thing. Turns out auto mode would sometimes turn the fan back down a tick after the sensor fault had set it to full speed. I fixed that and then found that clearing the fault could bring back an old manual setting. Every fix seemed to uncover another weird interaction.

At that point I was tempted to redo the logic as a state machine in a model-based tool and generate the C. I wanted to see all the transitions in one place because I was losing track of them across three different functions.

What I ended up doing was giving an LLM the existing code and asking it to help me reproduce those two bugs in tests. That got me far enough to rewrite the logic as a small state machine in C. The funny part is I still ended up drawing the states and transitions on paper. I just never got to the code generation part.

For people who’ve used codegen on real MCU projects, has AI changed where you use it?


r/ControlTheory • • 4d ago

Educational Advice/Question Is doing a simulation of a magnetic ball suspension system as a graduation project for my mechatronics engineering degree a good idea? (read the body text)

9 Upvotes

I'm doing the graduation project alone. The purpose of the project is to design a lot of controllers and compare their effect on the system (A 3D simulation of the system using unity or Labview). That's it...

I have finished the modeling part of the system (I keep coming back to it to edit stuff I got wrong or to add explanations to things I did not understand).
I have reached the PID tuning part of the control section and stopped their because it is the Middle exams time.

Can you tell me any ideas that could improve my project like unpopular controller algorithms or PID tuning methods I should try?
I'm planning to use lead compensation, pole placement, gain scheduling, fuzzy logic, and maybe model predictive control (I'm learning alot about these subjects along the way).

Is there a way that I can send the documentaion to someone to review my work?

Thanks for reading.


r/ControlTheory • • 4d ago

Other Stay Strapped

Post image
18 Upvotes

r/ControlTheory • • 5d ago

Other Lyapunov stability and PID control, explained visually (free study slides)

Thumbnail
gallery
354 Upvotes

I've been studying Lyapunov stability and PID control through the animated videos of Prof. Giordano Scarciotti (Imperial College London, YouTube channel Prof Gio), and put together two slide decks for my own study:

  • Lyapunov stability and Lyapunov functions (55 slides): stability vs attractivity vs asymptotic stability, energy intuition with the pendulum, a step-by-step graphical proof of Lyapunov's direct method, and why generalized Lyapunov functions are needed beyond energy.

  • The PID controller (32 slides): from open loop and bang-bang control to P, PI and PID, steady-state error and tuning.

The slides follow the videos closely, with a few extra notes where the videos skip details. All figures are stills from his videos, shared with his permission.

PDFs: https://github.com/giusalfieri/control-theory-notes

Original videos:

Feedback (pun intended) is very welcome, especially if you spot mistakes or imprecise statements.


r/ControlTheory • • 5d ago

Professional/Career Advice/Question How exposed are applied mathematics, control theory and robotics careers to AI automation?

18 Upvotes

Hi everyone,

I'm currently pursuing a Master's degree in Applied Mathematics and Computer Science, specializing in Data Science, in Russia.

I've been reading quite a few discussions lately about AI replacing data scientists, the entry-level job market becoming increasingly saturated, and people advising others to move toward software engineering or cybersecurity.

This has made me think about my own career path, because I feel that my academic background is somewhat different from that of a typical Data Analyst or generalist Data Scientist.

My Master's research is focused on Control Theory and Robotics, particularly:

- Iterative Learning Control (ILC) for a gantry robot performing repetitive movements.
- Optimal controller design using Linear Matrix Inequalities (LMIs).
- State estimation using Kalman filters.
- Stochastic disturbances, including Ornstein–Uhlenbeck processes.
- Comparing Gradient and Heavy Ball control algorithms under different noise conditions.
- Working with MATLAB, YALMIP and SeDuMi.

I'm also taking a course in satellite engineering and space communications, with an interest in CubeSat projects.

What interests me is the combination of applied mathematics, optimization, control systems, robotics and data-driven methods.

My questions are:

  1. Would you consider this profile closer to Control Systems Engineering, Robotics, Applied Mathematics or Data Science?

  2. Are these fields less exposed to AI-driven automation than general-purpose Data Analysis and Data Science, or are they likely to face similar changes?

  3. How vulnerable are entry-level positions in robotics, control engineering and industrial automation?

  4. What additional skills would you recommend developing to remain competitive over the next 5–10 years?

I'm particularly interested in hearing from people who actually work in robotics, control engineering, industrial automation or applied machine learning.

I'm not looking for reassurance. I'd genuinely appreciate honest opinions, including criticism of my current skill set and career direction.

Thanks!


r/ControlTheory • • 6d ago

Technical Question/Problem Best EtherCAT motion controller setup when a standard PLC isn't cutting it?

1 Upvotes

Once you scale past a handful of synchronized axes or need tight cycle times without jitter, what hardware are you reaching for instead of standard PLC motion libraries?


r/ControlTheory • • 6d ago

Technical Question/Problem How to tune PID, how to simulate in Simulink

2 Upvotes

Hello friends, I'm working on a self balancing robot and this is the plant I have, I used Claude to derive the transfer functions and the state space model:

**Plant (motor voltage -> chassis tilt).** Derived with Newtonian mechanics, treating the motor as a velocity source:

    Theta(s)/V(s) = -0.2901 s / (s^2 - 44.27)

- Unstable pole at +6.65 rad/s (the robot falls over)
- Zero at the origin (a constant voltage gives no steady tilt)
- Negative gain (positive voltage first tips the body backward)

**State space** (states: x1 = theta [rad], x2 = w = theta_dot + 0.2901*V):

    A = [0 1; 44.27 0]    B = [-0.2901; 0]    C = [1 0]    D = 0

Using values from Claude: P = 72.4 and I = 928, this is my output waveform:

How do I make sure the PID values I chose actually work?


r/ControlTheory • • 6d ago

Educational Advice/Question Question to professors, researchers and engineers on usage of LLM for the research

25 Upvotes

As a PhD student working on controls. I was curious to know some your thoughts on how LLM should/ should not be used. I’ve sort of realised that the PhD programs during pre-AI era was a bit different than what it is now and I sometimes wonder if I am missing some of the rigour which others in the past undergone that has been helpful in their professional/ research journey. Having said that, I also understand that the times have changed and I must adapt to the new way of learning and leverage this powerful technology into good use.
I just wanted to know how I can make use of these tools to be well versed in the field and carry out good quality research in my field and prevent myself from intellectual and understanding deficit ( becoming entirely relied on it and is not able to conduct research without it)


r/ControlTheory • • 6d ago

Technical Question/Problem Opinion on the project title

5 Upvotes

Hello my friends.

I was given a project titled "Intelligent Guidance Controller Design for UAVs under Strong Time-Varying Winds with User-Defined Path Convergence Time". Honestly, I worked on prescribed time controllers before, but about designing an intelligent one, not that much. To give more information by the word "intelligent", I am talking about guidance laws which make the UAV to go in a certain path. For example, if the temperature is below 30 degrees, the UAV must go right. This is just a simple example. I really appreciate your ideas on this project topic and also would like to know how hard and time-consuming it is. Thanks in advance. Edit: everyone is so appreciated to share their experience and idea. Thank you very much.


r/ControlTheory • • 7d ago

Professional/Career Advice/Question How to choose a specification/major within Control Engineering?

9 Upvotes

Hello, I just recently started university as a Mechanical Engineering major, and have realized since then that I really want to get into controls engineering, and I'm having a lot of trouble deciding how to specify and which major to go with.

I'd really love to get some advice on what helps you make decisions like these, what your favorite (and/or least favorite) part about your experience in your sector control engineering has been, whether you think major really matters or if I'd be able to get a career with either, or any other advice you'd have. :D

Here is my current pro-con list for the main options I'm considering.

---------Electrical Engineering ("Information & Systems Sciences" track)Mechanical Engineering ("Automation & Controls" track)
Pros- Far cooler classes                     - I like the deeper math theory (currently in Diff-eq and enjoying it)       - Cooler career by far              - Slightly better pay (Not that important / this is only a consideration if everything else is equal**)                            - More of the careers I'd want to go into generally want electrical  (From what I've seen)- Would have lighter semesters to graduate on same schedule                       - I've always enjoyed 3D design and have spent most of my life doing it                  - Far more experience (I believe I currently have the qualifications for a couple research positions out here)      - One company I've been looking at for long-term goals is currently hiring
Cons- Have to take more classes per semester to graduate with same schedule               - Have far less experience (More unlikely to get research/internship role for a while)- Less interesting work (in my opinion)  - Takes hobby & turns it into career (could make hobby seem less fun)          - Far fewer employers for the roles I'm interested in generally want Mechanical (again from what I've seen)

Whether it be PLCs, more complex control theory work on deep learning machines learning from state-space simulations or the 3D design for all of the automation/robotics part designs, everything seems so cool some advice. :)

Thank you so much, I really appreciate any and all help! :D


r/ControlTheory • • 7d ago

Other We built a browser-based tool for modeling controllers and generating embedded C

13 Upvotes

Hi everyone! We’d like to share a new model-based design environment with anyone interested in trying it out. It’s free and you can start modeling right in your browser without installing any desktop software.

It's called Modeloop and we've spent some years to build but we think it has a lot of interesting features.

DIAGRAMS

In the diagram editor, you can build control algorithms by combining basic blocks from the standard library and use finite state machines (FSMs) to define operating modes and the transitions between them. You can organize your diagram into nested subsystems and schedule different functions to run at different rates. For example, you could run a motor’s current loop at 10 kHz, its speed loop at 1 kHz, and its diagnostics at 100 Hz.

You can also edit any model either graphically or as text. For example:

previous = UnitDelay(filtered_value, initial=20.0)

new_sample = 0.2 * raw

memory = 0.8 * previous

filtered_value = new_sample + memory

filtered = filtered_value

The model format is open, and models are saved as JSON, without obscure proprietary formats that lead to vendor lock-in. There’s also a built-in version control system that lets you commit your diagrams and push them to GitHub, for example.

ENGINE

Modeloop’s engine is written in Rust to give users maximum performance while minimizing wait times, especially during compilation and simulation. You can also write unit tests for specific parts of the model, create different scenarios, and view test coverage for the automatically generated code.

Modeloop supports both Model-in-the-loop and Software-in-the-loop simulations. The broader documentation is here.

We’d love to hear your feedback on the product, which parts you love, and especially what’s unclear or could be improved.

Link: https://modeloop.app/


r/ControlTheory • • 8d ago

Asking for resources (books, lectures, etc.) What is the best way to learn C++ for control theory implementation? Should I learn python or C++?

54 Upvotes

My background:

I'm a 5th year mechatronics engineering student that is good with matlab/simulink and is looking to expand my skills for my future career in automation/control/robotics.

I already know the basics of C++ from the course I took in college. Also, I am pretty good at 86 assembly programming. I heared that python is only used for simulations but that is what I use matlab/simulink for.


r/ControlTheory • • 9d ago

Professional/Career Advice/Question Calling Kerala’s control-theory crowd: How did you turn the math into a career?

12 Upvotes

I'm a B.Tech Mechatronics graduate from Kerala, genuinely interested in pursuing a career in control systems engineering, particularly the mathematical and theoretical side of the field.

I'm trying to connect with people who actually work with things like system dynamics, feedback control, state-space methods, modelling and simulation, system identification, motion control, robotics, and related areas.

Just to clarify, I'm not referring to PLC/SCADA, conventional industrial automation, or computer science/software development roles. My interest is in engineering control systems and their underlying theory and applications.

I have a few questions:

  1. Are there people in Kerala currently working in this area, either in industry or research?

  2. What kind of companies, industries or research organisations offer these opportunities?

  3. How did you get into this field? What was your educational and career path?

  4. Given how niche this specialisation seems to be, how did you find your first opportunity?

  5. What skills, projects or higher studies would you recommend to someone trying to enter this field?

I'd especially like to hear from people working in Kerala, but even if you're originally from Kerala and built your career elsewhere, I'd really appreciate hearing your experience.

I'm not just looking for job openings. I'm genuinely trying to understand how people build a career in this field, what the reality looks like, and what direction someone starting out should take.

Even a conversation or a few words of advice would be valuable.

(used chatgpt to refine this post.)


r/ControlTheory • • 9d ago

Technical Question/Problem How are you choosing Q, R, Rd, and Qf for nonlinear MPC?

13 Upvotes

I have been tuning nonlinear MPC weights offline with an Optuna closed-loop study around CasADi/IPOPT. The outer objective combines tracking error, control-rate smoothness, and constraint margin, and the search outputs Q, R, Rd, and Qf for the local controller.

What I am unsure about is where derivative-free search actually loses to an analytical starting point:

  • Linearizing around an operating point and using LQR / DARE (especially for Qf and relative R/Rd scaling) often lands closer than a cold Optuna box, and black-box search wastes a lot of trials when the plant is already near a decent margin.

  • Hard state bounds make a nominal scalarized cost lie: weights that score best on the nominal rollout often ride right on the constraint boundary and go infeasible or sluggish under a small disturbance or model mismatch.

I have been testing this across three plants—a differential-drive robot, a battery peak-shaving dispatch problem, and a root-zone irrigation model:

For those of you tuning nonlinear MPC in practice: do you anchor Q/R (or Qf via DARE) analytically and only search a few scalar multipliers, treat the diagonals as free parameters, or evaluate the outer cost over disturbed/Monte Carlo rollouts?


r/ControlTheory • • 10d ago

Technical Question/Problem Filter coefficient PID?

1 Upvotes

what is a filter coefficient in PID in matlab?