• Joined on 2019-09-03
hartytp commented on issue M-Labs/wrpll-simulation#1 2023-12-24 20:29:09 +08:00
formatting + code structure comments

I also wonder whether it's really a good idea for WRPLLSim to have a separate run method outside of the constructor. Are there any cases where one doesn't immediately want to call run after…

hartytp commented on issue M-Labs/wrpll-simulation#1 2023-12-24 20:25:57 +08:00
formatting + code structure comments

When you have code like this

self.period_err, self.phase_err, self.helper_adpll, self.main_adpll, self.gtx_beating, self.main_beating, self.gtx, self.helper, self.main, self.helperfre
hartytp commented on issue M-Labs/wrpll-simulation#1 2023-12-24 20:24:02 +08:00
formatting + code structure comments

Might also be worth adding jupytext to avoid committing binary data.

hartytp opened issue M-Labs/wrpll-simulation#1 2023-12-24 20:20:55 +08:00
formatting
hartytp commented on issue M-Labs/thermostat#65 2022-01-19 05:51:01 +08:00
integrator design

Thanks for that nice write up @jordens

There are varying levels of sophistication we can go for here. Right now even a few really simple tweaks (multiply before sum, rethink the limiting) would…

hartytp commented on issue M-Labs/thermostat#65 2022-01-18 22:12:59 +08:00
integrator design

It's also not clear to me what happens when the I gain is changed. Imagine Kp and Kd are both zero and we step Ki. That can easily result in the output shooting up to max because of the multiply…

hartytp commented on issue M-Labs/thermostat#65 2022-01-18 21:48:45 +08:00
integrator design

I also don't think I understand the electric current error condition on the integrator.

Imagine the following situation: the unit starts off cold, so the current rails positive. Now, before it has…

hartytp opened issue M-Labs/thermostat#65 2022-01-18 21:43:27 +08:00
integrator design
hartytp commented on issue M-Labs/thermostat#62 2022-01-06 15:41:30 +08:00
interface thoughts

it may take a while.

No hurry from my end. We now know enough to get things working so this isn't urgent. The interface exposed by Thermostat is currently overly complex and a bit ugly but we…

hartytp commented on issue M-Labs/thermostat#62 2022-01-06 15:39:56 +08:00
interface thoughts

(I probably will file a PR at some point but first I need to turn my debugging hacks into something useful. Even without a PR right now it's useufl to have the issues open so there is a record of…

hartytp commented on issue M-Labs/thermostat#62 2022-01-06 15:38:35 +08:00
interface thoughts

I disagree with that conclusion, there are several users who have it in the lab without complaining like you do - they might just have to send us a question or two (that's what we have helpdesk@…

hartytp commented on issue M-Labs/thermostat#62 2022-01-06 01:57:11 +08:00
interface thoughts

Conclusion for anyone looking over these issues: to my view this is not in state where I would expect a skilled scientist (e.g. has used commercial temperature controllers before) to be able to…

hartytp commented on issue M-Labs/thermostat#63 2022-01-06 01:54:40 +08:00
can't enable pid

Also, when I tried to run the tests locally I got a bunch or errors like

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
  --> src/main.rs:86:13
   
hartytp commented on issue M-Labs/thermostat#63 2022-01-06 01:03:48 +08:00
can't enable pid

Right, got it!

So, issues I see here:

  1. Command parser errors should be sent to ethernet not the USB
  2. The error message here is pretty unfriendly (why only send the first unexpected character…
hartytp commented on issue M-Labs/thermostat#63 2022-01-06 00:29:11 +08:00
can't enable pid

Just ERROR - session input: UnexpectedInput(32)

hartytp commented on issue M-Labs/thermostat#63 2022-01-06 00:21:27 +08:00
can't enable pid

This should be covered by a test. f6802635a4/src/command_parser.rs (L650) Where are the test logs?

hartytp commented on issue M-Labs/thermostat#63 2022-01-06 00:20:28 +08:00
can't enable pid

Maybe there is a more useful error message hiding in there somewhere but it's only on the USB UART?…

hartytp opened issue M-Labs/thermostat#63 2022-01-06 00:09:53 +08:00
can't enable pid
hartytp commented on issue M-Labs/thermostat#61 2022-01-05 21:16:53 +08:00
build fails

The instruction in README is actually "see the mcu folder of nix-scripts" i.e. follow what Hydra does. I suppose your issue is with shell.nix?

I wasn't using nix at all.

Maybe the…

hartytp opened issue M-Labs/thermostat#62 2022-01-05 03:43:59 +08:00
interface thoughts