Qualcomm Navigator Flight Control Interface  2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
snav_fci::PwmCommand Class Reference

Structure containing the inputs to the sn_send_esc_pwm() Qualcomm Navigator API function. More...

#include <pwm_command.hpp>

Inheritance diagram for snav_fci::PwmCommand:
snav_fci::TxCommand

Public Member Functions

 PwmCommand (size_t num_cmds)
 Default constructor.
 
- Public Member Functions inherited from snav_fci::TxCommand
Mode get_mode () const
 

Public Attributes

std::vector< int > pwms
 

Additional Inherited Members

- Public Types inherited from snav_fci::TxCommand
enum  Mode {
  UNDEFINED, RC, RPM, PWM,
  THRUST_ATT_ANG_VEL, TRAJECTORY
}
 
- Protected Attributes inherited from snav_fci::TxCommand
Mode mode_
 

Detailed Description

Structure containing the inputs to the sn_send_esc_pwm() Qualcomm Navigator API function.

Member Data Documentation

std::vector<int> snav_fci::PwmCommand::pwms

PWM commands in order of ascending ESC ID, e.g. [pwm_0, pwm_1, ..., pwm_n]. PWM commands must be specified in the range [-800, 800] where 800 corresponds to 100% duty cycle and negative implies reversed direction.


The documentation for this class was generated from the following file: