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:
crossa
2017-08-20 16:51:04 +01:00
committed by Nuno Marques
parent b2a81ed35b
commit 17ba5dd04a
11 changed files with 545 additions and 6 deletions
+2 -1
View File
@@ -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)