Function chalkydri::utils::gen_team_ip

source ·
pub fn gen_team_ip(team_number: u16) -> Option<[u8; 4]>
Expand description

Generate the team IP

Let’s say you’re on team number 12345 (just like all of my passwords). Here’s how you’d do that:

1   2   3   4   5
|___|___|   |___|
       \     /
    10.123.45.2

Reference: https://docs.wpilib.org/en/stable/docs/networking/networking-introduction/ip-configurations.html#te-am-ip-notation