Skip to content

Commit

Permalink
fix rotation example (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaradvoracek authored May 24, 2024
1 parent 8aa0606 commit 5edf123
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void setup() {
// Convert them in KerbalSimpit range
int16_t pitch = map(reading_pitch, 0, 1023, INT16_MIN, INT16_MAX);
int16_t roll = map(reading_roll, 0, 1023, INT16_MIN, INT16_MAX);
int16_t yaw = map(reading_roll, 0, 1023, INT16_MIN, INT16_MAX);
int16_t yaw = map(reading_yaw, 0, 1023, INT16_MIN, INT16_MAX);
// Put those values in the message one at a time, e.g. if you only want to set one or two axis
rot_msg.setPitch(pitch);
rot_msg.setRoll(roll);
Expand Down

0 comments on commit 5edf123

Please sign in to comment.