Skip to content

move save_trim() from RC_Channels_Copter to Copter class#32306

Open
codemaster1104 wants to merge 1 commit intoArduPilot:masterfrom
codemaster1104:feature/rc-channel-fix
Open

move save_trim() from RC_Channels_Copter to Copter class#32306
codemaster1104 wants to merge 1 commit intoArduPilot:masterfrom
codemaster1104:feature/rc-channel-fix

Conversation

@codemaster1104
Copy link

save_trim() operates on Copter member variables (flightmode,
attitude_control, g2.rc_channels) and is more naturally a method
of the Copter class than of RC_Channels_Copter.
Changes:

  • Remove save_trim() declaration and definition from RC_Channels_Copter
  • Add save_trim() declaration to Copter class (under radio.cpp section)
  • Implement save_trim() in ArduCopter/radio.cpp
  • Update both call sites in RC_Channel_Copter.cpp to use copter.save_trim()

this is work on #32279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant