Skip to content

Commit

Permalink
use auto
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Mar 8, 2024
1 parent f3e4a02 commit b1a2c5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions workspace/scripts/files/bash/local_access_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ sudo nmcli connection delete PioreactorAP || true
sudo nmcli connection add type wifi con-name PioreactorAP autoconnect no wifi.mode ap wifi.ssid "$(crudini --get /home/pioreactor/.pioreactor/config.ini local_access_point ssid)" ipv4.method shared ipv6.method disabled

sudo nmcli connection modify PioreactorAP 802-11-wireless-security.key-mgmt wpa-psk
# sudo nmcli connection modify PioreactorAP 802-11-wireless-security.pairwise ccmp; # we should not include this for max compatibilituy
# sudo nmcli connection modify PioreactorAP 802-11-wireless-security.group ccmp;
sudo nmcli connection modify PioreactorAP 802-11-wireless-security.proto "$(crudini --get /home/pioreactor/.pioreactor/config.ini local_access_point proto 2> /dev/null || echo 'rsn')"
sudo nmcli connection modify PioreactorAP 802-11-wireless-security.psk "$(crudini --get /home/pioreactor/.pioreactor/config.ini local_access_point passphrase)"
sudo nmcli connection modify PioreactorAP 802-11-wireless.band bg
sudo nmcli connection modify PioreactorAP 802-11-wireless.powersave 2
#sudo nmcli connection modify PioreactorAP wifi-sec.pmf disable
#sudo nmcli connection modify PioreactorAP 802-11-wireless-security.pmf 1



sudo nmcli con up PioreactorAP
7 changes: 4 additions & 3 deletions workspace/scripts/files/config.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ duration_between_updates_seconds=23
# how many optical density measurements should be published per second? Recommended maximum is 1.
samples_per_second=0.2

# default intensity of IR LED. Integer between 0 and 100. Keep less than 90 for longevity.
ir_led_intensity=50
# default intensity of IR LED. The value `auto` will automatically choose an IR LED intensity that matches an internal value.
# Or set an integer between 0 and 100. Keep less than 90 for longevity.
ir_led_intensity=auto

# lower to remove heating artifacts, but may introduce more noise in the OD. Must be between 0 and 1.
pd_reference_ema=0.9
Expand Down Expand Up @@ -154,7 +155,7 @@ Ki=0.0
Kd=4.6

[stirring.pid]
Kp=0.009
Kp=0.008
Ki=0.0
Kd=0.0

Expand Down

0 comments on commit b1a2c5b

Please sign in to comment.