mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 09:31:38 +08:00
1.Add sbus driver for linux . This driver can be used to read the
inverted S.bus signal and fetch the data of each channel and publish it 2. Fix the bug of linux_pwm_out, when the protocol is pca9685, after the init method is executed,the method of determining the return value of init method is incorrect,this will cause the driver to fail 3. Add linux_sbus driver to other posix prefixes cmake files
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
|
||||
using namespace linux_pwm_out;
|
||||
|
||||
void PCA9685::init(int bus, int address)
|
||||
int PCA9685::init(int bus, int address)
|
||||
{
|
||||
_fd = open_fd(bus, address);
|
||||
reset();
|
||||
@@ -65,6 +65,7 @@ void PCA9685::init(int bus, int address)
|
||||
/* 200HZ for 12bit Resolution, supported by most of the esc's */
|
||||
setPWMFreq(200);
|
||||
usleep(1000 * 1000);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PCA9685::send_output_pwm(const uint16_t *pwm, int num_outputs)
|
||||
|
||||
Reference in New Issue
Block a user