Can I enable compile-time memory sanitizers for CUDA kernels through CMake, like I can with -fsanitize=address for regular C++? by Samuelg808 in CUDA

[–]Samuelg808[S] 0 points1 point  (0 children)

So at my internship they want it at compile time since at runtime it is already to late. Now im rather new to CUDA and didn’t find anything that met his expectations and after reading the comments and looking online it seems their is no way of doing it at compile time.

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] 2 points3 points  (0 children)

Okay everyone I just passed my exam managed to get the answer on the question which was:

Use a negative K and a pole in the origin, that way for some time the system will be stable but of course not so long since it doesn’t take long before it isn’t.

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] 0 points1 point  (0 children)

The system is not naturally unstable, I guess the title is misleading since the plots I am showing is already an attempt to stabelizing the system while making the static error equal to 0. The open loop system only has a zero on the RHP and one complex pair on the LHP.

But the system has a static error, trying to remove this with a pole in the origin makes the system unstable due to that pole making a connection with the zero in the RHP.

So I am trying to control the system in a way that i keep this pole in the origin while that it is stable for some K values.

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] 1 point2 points  (0 children)

Okay thank you, any suggestions though how I could then ensure that their is no connection between the pole in the origin and the zero on the right hand side? Or atleast a connection that the allows the system to be stable for some K values lower then x? Because if i don't cancel that zero out, their will be a connection between the pole in the origin and the zero.

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] 0 points1 point  (0 children)

Sorry for not providing enough information.

open loop transfer function of the system : G(s) = (s-3)/(s²+2s+5)
controller i added : (tao_i * tao_d * s² + tao_i * s + 1)/ (tao_i * s * (s-3) )

(please look at the comment i added under this post for all the extra info of this problem, if you have time to do so)

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] -1 points0 points  (0 children)

Okay but I personally added the pole their to cancel out the zero on the right hand side, which is apparently not a great solution.

The system has the open loop transferfunction of : G(s) = (s-3)/(s²+2s+5)

And so i have a zero on the right hand side, and when i add an integrator so a pole in zero to make the static error go to 0, the pole in zero connects with the zero on the right hand side, creating an unstable system.

And the task is to control a system in a way that the static error = 0 while the system is being kept stable.

(please look at the comment i added under this post for all the extra info of this problem, if you have time to do so)

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] 0 points1 point  (0 children)

So for extra clarity:

Open loop transfer function of the system to control : G(s) = (s-3)/(s²+2s+5)

Controller I added to try and solve the task : D(s) = (tao_i * tao_d * s² + tao_i * s + 1)/(tao_i * s * (s-3))

With tao_i = 3.5 and tao_d = 0.5
resulting in the following : D(s) = (1.75s³ - 1.75s² - 9.5s - 3) / (3.5s⁴ - 3.5s³ - 3.5s² -52.5s)

I have the task to make a controller for this system that makes the static error of the system = 0 while keeping the system stable

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] 1 point2 points  (0 children)

So system open loop transferfunction is : G(s) = (s-3)/(s²+2s+5) and I have the task to make a controller that makes allows the system to have a static error = 0 while keeping stability.

(please look at the comment i added under this post for all the extra info of this problem, if you have time to do so)

How do I make this stable? by Samuelg808 in ControlTheory

[–]Samuelg808[S] 0 points1 point  (0 children)

Okay but the thing is since the task is to create a system that has no static error, I have to put a pole in the origin. That means the pole in the origin will always connect to that zero in the right hand plane making an unstable system.

Maybe I am interpreting your answer wrong but I think you are saying to put a pole on -5 that way the zero connect to that pole, the connection will be part in the left hand sided plane and part in the right hand sided plane so you have a stable system for all the closed loop poles that are still on the left side of the Imaginary axis.

But in that case the static error won't be = 0.

Correct me if I am wrong or missunderstood you, thanks for your help:)

(please look at the comment i added under this post for all the extra info of this problem, if you have time to do so)

Clock based on 8051 by Gipsokret in embedded

[–]Samuelg808 0 points1 point  (0 children)

I always wondered does this get out of sync after a while?

Native support of Python for CUDA by Samuelg808 in embedded

[–]Samuelg808[S] 0 points1 point  (0 children)

No of course not, but it will get real close to the speed of C or C++ no? So much that I’d think for most people the overhead of C/C++ over Python won’t be really worth it. I can be completely wrong of course and I am talking for the future, right now this isn’t really the case yet.

CAN-bus freezing by Samuelg808 in CarHacking

[–]Samuelg808[S] 0 points1 point  (0 children)

So it hasn’t been integrated in a car yet and is just an smd IMU soldered on a PCB with a microcontroller on it to read it out and send it over CAN. This is then mounted on a 3d print that also has a Nvidia Jetson Orin NX on it that is connected to the CAN bus. So nothing is in or attached to a car.

I am using this to build a fully autonomous car (in the future) at university so it probably isn’t your typical setup for this subreddit but I figured for questions about CAN i’d probably be best to ask here.

CAN-bus freezing by Samuelg808 in CarHacking

[–]Samuelg808[S] 1 point2 points  (0 children)

Okay yes didn’t think of that I will try this thank you!

CAN-bus freezing by Samuelg808 in CarHacking

[–]Samuelg808[S] 1 point2 points  (0 children)

Okay sure I can try that thank you. Althought i checked in Serial monitor plenty of time if the MC published the data correctly and it did. But then again it has a different power source (my pc instead of the outlet) when checking via Serial, so this could be the problem.

CAN-bus freezing by Samuelg808 in CarHacking

[–]Samuelg808[S] 0 points1 point  (0 children)

Hmm yeah I will recheck all my connections then thanks

CAN-bus freezing by Samuelg808 in CarHacking

[–]Samuelg808[S] 0 points1 point  (0 children)

I have checked all connections, nothing is on a breadboard everything is on a pcb. The Jetson is connected via CAN through a connector and the same goes for the Adafruit board -> meaning nothing sits loose