-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1fe258
commit 2a961e2
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use binrw::binread; | ||
use serde::Serialize; | ||
|
||
#[binread] | ||
#[derive(Serialize, Debug)] | ||
#[serde(rename_all = "camelCase")] | ||
#[br(little)] | ||
pub struct RCDisplayField { | ||
#[br(temp)] | ||
_unknown: [u8; 7], | ||
/// right stick - horizontal | ||
pub aileron: u16, | ||
/// right stick - vertical | ||
pub elevator: u16, | ||
/// left stick - vertical | ||
pub throttle: u16, | ||
/// left stick - horizontal | ||
pub rudder: u16, | ||
pub gimbal: u16, | ||
} |