diff options
author | philipoe <philipp.oettershagen@mavt.ethz.ch> | 2015-04-07 17:52:23 +0200 |
---|---|---|
committer | philipoe <philipp.oettershagen@mavt.ethz.ch> | 2015-04-14 15:08:44 +0200 |
commit | 93eff2bb956e920b99b2058550fdbc3f23ec6155 (patch) | |
tree | 3f622970d9ddc4ca2a8b5e5ac33b0636cdacfe7b /src/modules | |
parent | 9a9efdaaa5a1a67be9a0939495503f222a1f3987 (diff) | |
download | px4-firmware-93eff2bb956e920b99b2058550fdbc3f23ec6155.tar.gz px4-firmware-93eff2bb956e920b99b2058550fdbc3f23ec6155.tar.bz2 px4-firmware-93eff2bb956e920b99b2058550fdbc3f23ec6155.zip |
px4io firmware: Allow actuator update rates down to 25Hz. This allows to
set the same update rate on PX4IO as on many commercial RC systems (e.g.
Spektrum, which works at 45Hz servo update rate).
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/px4iofirmware/registers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/px4iofirmware/registers.c b/src/modules/px4iofirmware/registers.c index f0c2cfd26..49c5d99da 100644 --- a/src/modules/px4iofirmware/registers.c +++ b/src/modules/px4iofirmware/registers.c @@ -543,8 +543,8 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value) break; case PX4IO_P_SETUP_PWM_DEFAULTRATE: - if (value < 50) { - value = 50; + if (value < 25) { + value = 25; } if (value > 400) { value = 400; @@ -553,8 +553,8 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value) break; case PX4IO_P_SETUP_PWM_ALTRATE: - if (value < 50) { - value = 50; + if (value < 25) { + value = 25; } if (value > 400) { value = 400; |