Skip to content

Commit

Permalink
Updated config
Browse files Browse the repository at this point in the history
Formatting and added startup speed to opening credits
  • Loading branch information
giggletech committed Jun 5, 2024
1 parent 7dd640c commit 980183d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ devices:
- ip: 192.168.1.70
proximity_parameter: proximity_02
max_speed: 40
start_tx: 20
start_tx: 30
speed_scale: 90
max_speed_parameter: max_speed_02
use_velocity_control: true
Expand Down
10 changes: 7 additions & 3 deletions giggletech-router/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,18 @@ pub(crate) fn load_config() -> (GlobalConfig, Vec<DeviceConfig>) {
banner_txt();
println!("\n");
println!(" Device Maps");
println!("");
for (i, device) in devices.iter().enumerate() {
println!(" Device {i}");
println!(" {} => {}", device.proximity_parameter.trim_start_matches("/avatar/parameters/"), device.device_uri);
println!(" Vibration Configuration");
println!(" Min Speed: {:?}%", device.min_speed * 100.0);
println!(" Max Speed: {:?}%", device.max_speed * 100.0);
println!(" Scale Factor: {:?}%", device.speed_scale * 100.0);
println!(" Startup TX Speed: {:.0}%", device.start_tx);
println!(" Min Speed: {:.0}%", device.min_speed * 100.0);
println!(" Max Speed: {:.0}%", device.max_speed * 100.0);
println!(" Scale Factor: {:.0}%", device.speed_scale * 100.0);
println!(" Advanced Mode: {}", device.use_velocity_control);
println!("");

}

println!("\n Listening for OSC on port: {}", global_config.port_rx);
Expand Down

0 comments on commit 980183d

Please sign in to comment.