Re:Exploring the software that flies SpaceX rockets and star...
by audunw on Tuesday May 11, 2021 @09:09AM
(#27117606)
If I understood it correctly, they’re not talking about a chip literally running at 50Mhz. They’re talking about polling a sensor in a loop running on a 50Mhz timer. The processor doing that is certainly running at a much higher clock frequency
Re:Exploring the software that flies SpaceX rockets and star...
by rtkwe on Tuesday May 11, 2021 @11:47AM
(#27119563)
Yeah they're talking about the control loop itself which means 50 times a second the computer/program looks at it's inputs (sensors) and changes it's outputs (commands to actuators). The actual computers processing that program run much faster.
Re:Exploring the software that flies SpaceX rockets and star...
by aero-glide2 on Tuesday May 11, 2021 @11:46AM
(#27119529)
To clarify, its 50Hz not 50MHz
Re:Exploring the software that flies SpaceX rockets and star...
by abledon on Tuesday May 11, 2021 @12:09PM
(#27119870)
and 50hz = 0.02s
Re:Exploring the software that flies SpaceX rockets and star...
by devit on Tuesday May 11, 2021 @09:05AM
(#27117564)
That's the number of times per second the main update code runs and it has nothing to do with the number of clock cycles or instructions per second the CPU can run (other than the fact that the chip needs to be fast enough to have the update code finish before the next time it needs to start).
Re:Exploring the software that flies SpaceX rockets and star...
by jaywalk on Tuesday May 11, 2021 @09:09AM
(#27117600)
Exactly this. A chip running at 50hz would never be able to run a task 50 times per second when it's only executing 50 instructions per second.
Re:Exploring the software that flies SpaceX rockets and star...
by sandGorgon on Tuesday May 11, 2021 @11:54AM
(#27119652)
ah thanks! that makes it so much clearer.
Re:Exploring the software that flies SpaceX rockets and star...
by BigMajestic on Tuesday May 11, 2021 @09:10AM
(#27117619)
Chips have internal timers which can be configured programmatically so they emit hardware interrupt in specified time intervals. When the interrupt is emitted, CPU jumps to the method which executes the certain program. After that it goes idle, waiting for the next cycle.
why cant you use higher clocked speeds ? like even 500 mhz, etc ? is there something special about 10 and 50hz ?