You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
859 B
23 lines
859 B
#include "SIM_ToshibaLED.h" |
|
|
|
#if AP_SIM_TOSHIBALED_ENABLED |
|
|
|
#include <stdio.h> |
|
|
|
void SITL::ToshibaLED::update(const class Aircraft &aircraft) |
|
{ |
|
if (last_print_pwm0 == get_register(ToshibaLEDDevReg::PWM0) && |
|
last_print_pwm1 == get_register(ToshibaLEDDevReg::PWM1) && |
|
last_print_pwm2 == get_register(ToshibaLEDDevReg::PWM2) && |
|
last_print_enable == get_register(ToshibaLEDDevReg::ENABLE)) { |
|
return; |
|
} |
|
|
|
last_print_pwm0 = get_register(ToshibaLEDDevReg::PWM0); |
|
last_print_pwm1 = get_register(ToshibaLEDDevReg::PWM1); |
|
last_print_pwm2 = get_register(ToshibaLEDDevReg::PWM2); |
|
last_print_enable = get_register(ToshibaLEDDevReg::ENABLE); |
|
// gcs().send_text(MAV_SEVERITY_INFO, "SIM_ToshibaLED: PWM0=%u PWM1=%u PWM2=%u ENABLE=%u", last_print_pwm0, last_print_pwm1, last_print_pwm2, last_print_enable); |
|
} |
|
|
|
#endif
|
|
|