2021-07-15, 12:41 PM
On tinypilot, I'm trying to revert the pypilot settings to a previous state, by reverting the file pypilot.conf while the pypilot service is down. I'm surprised to see that this does not seem to work. What am I doing wrong?
In short:
I'm testing with servo.gain, resetting it from 1.8 back to 1.0, but pypilot seems to remember the setting from somewhere else. More detailed:
In short:
Code:
sudo sv stop pypilot
cp -f pypilot.conf.bak pypilot.conf
sudo sv start pypilot
I'm testing with servo.gain, resetting it from 1.8 back to 1.0, but pypilot seems to remember the setting from somewhere else. More detailed:
Code:
tc@box:/mnt/mmcblk0p2/.pypilot$ cat pypilot_client.conf
{"host":"localhost","port":23322}
tc@box:/mnt/mmcblk0p2/.pypilot$ pypilot_client servo.gain
servo.gain = 1.8
tc@box:/mnt/mmcblk0p2/.pypilot$ grep servo.gain *
pypilot.conf:servo.gain=1.8000
pypilot.conf.bak:servo.gain=1.0000
tc@box:/mnt/mmcblk0p2/.pypilot$ sudo sv stop pypilot
ok: down: pypilot: 0s
tc@box:/mnt/mmcblk0p2/.pypilot$ cp -f pypilot.conf.bak pypilot.conf
cp: overwrite 'pypilot.conf'? y
tc@box:/mnt/mmcblk0p2/.pypilot$ grep servo.gain *
pypilot.conf:servo.gain=1.0000
pypilot.conf.bak:servo.gain=1.0000
tc@box:/mnt/mmcblk0p2/.pypilot$ sudo sv start pypilot
ok: run: pypilot: (pid 5469) 0s, normally down
tc@box:/mnt/mmcblk0p2/.pypilot$ pypilot_client servo.gain
servo.gain = 1.8
tc@box:/mnt/mmcblk0p2/.pypilot$ grep servo.gain *
pypilot.conf:servo.gain=1.8000
pypilot.conf.bak:servo.gain=1.0000