Skip to content

Commit

Permalink
Merge pull request #127 from BitsAndDroids/main
Browse files Browse the repository at this point in the history
Fixed percentages output #125
  • Loading branch information
BitsAndDroids authored Apr 21, 2024
2 parents 32b5a14 + f3db9e8 commit 1cb8934
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions connector-docs/src/generated/input_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
| ADF_10_DEC | 0 | 169 |
| ADF_1_DEC | 0 | 170 |
| ADF_COMPLETE_SET | 1 | 179 |
| ADF1_RADIO_TENTHS_DEC | 0 | 390 |
| ADF1_RADIO_TENTHS_INC | 0 | 391 |
| ADF1_WHOLE_INC | 0 | 180 |
| ADF1_WHOLE_DEC | 0 | 181 |
| ADF2_100_INC | 0 | 182 |
Expand Down
2 changes: 1 addition & 1 deletion crates/src-tauri/src/simconnect_mod/simconnect_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl SimconnectHandler {
OutputType::Integer => (val as i32).to_string(),
OutputType::Seconds => (val as i32).to_string(),
OutputType::Secondsaftermidnight => sim_utils::output_converters::seconds_to_time(val),
OutputType::Percentage => (val as i32).to_string(),
OutputType::Percentage => ((val * 100.1) as i32).to_string(),
OutputType::Degrees => sim_utils::output_converters::radian_to_degree(val).to_string(),
OutputType::ADF => ((val as i32) / 100).to_string(),
OutputType::INHG => sim_utils::output_converters::value_to_inhg(val).to_string(),
Expand Down
2 changes: 1 addition & 1 deletion crates/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.15",
"version": "0.2.16",
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm run build",
Expand Down

0 comments on commit 1cb8934

Please sign in to comment.