fix(agb02/control-box): gpio mapping and network wait

This commit is contained in:
catvayor 2024-10-15 13:35:12 +02:00
parent 071cf7741f
commit bcc156c5fc
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
2 changed files with 4 additions and 2 deletions

View file

@ -25,6 +25,8 @@ in
systemd.services."agb-control-box" = {
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
unitConfig.Description = "The program of the control-box";
serviceConfig = {
Restart = "always";

View file

@ -18,8 +18,8 @@ constexpr double joystick_movement = 0.2;
const gpiod::line::offsets drive_down = { 21, 13, 6 };
const gpiod::line::offsets decoder = { 3, 4, 17, 27, 24, 23, 18, 15 }; // lsbf
const gpiod::line::offsets joystick = { 26, 19, 0, 5 }; // x+, y+, x-, y-
const gpiod::line::offsets decoder = { 3, 4, 17, 27, 24, 23, 18, 2 }; // lsbf
const gpiod::line::offsets joystick = { 19, 26, 5, 0 }; // x+, y+, x-, y-
const gpiod::line::offset black_button = 20;
const gpiod::line::offset white_button = 16;