Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Parsing iRacing's .ibt telemetry files

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

gmartsenkov/itelem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provides parsing of iRacing's.ibt telemetry files. It's based on the excellent javascript libraryibt-telemetry.

Usage

To useitelem, add the following to yourCargo.toml:

[dependencies]itelem ="0.1"

or run this command in your project root:

$ cargo add itelem@0.1

Pass in a file or anything that implementsRead + Seek and you can access header information as well asweekend_info and the samples that contain the most interesting information.

let file =File::open("./sting.ibt").unwrap();letmut reader =IbtReader::new(Box::new(file));assert_eq!(reader.header.tick_rate,60);let weekend_info =&reader.session_info.weekend_info;assert_eq!(weekend_info.track_name,"spielberg gp");let rpm = reader.find_var("RPM".to_string()).unwrap();let samples:Vec<Sample> = reader.samples().collect();// There are 3371 samples and with a 60 tick tick_rate// meaning that the telemetry file contains 56 seconds of dataassert_eq!(samples.len(),3371);let first_sample = samples[1001].get_by_header(&rpm).unwrap();assert_eq!(first_sample,SampleValue::Float32(991.8974));

About

Parsing iRacing's .ibt telemetry files

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp