ServoRelayEvents: init members to resolve compiler warning

This commit is contained in:
Randy Mackay 2014-08-13 23:00:58 +09:00
parent d026749f1b
commit 46369badb3
1 changed files with 8 additions and 2 deletions

View File

@ -17,8 +17,14 @@ class AP_ServoRelayEvents {
public:
AP_ServoRelayEvents(AP_Relay &_relay) :
relay(_relay),
mask(0)
{}
mask(0),
type(EVENT_TYPE_RELAY),
start_time_ms(0),
delay_ms(0),
repeat(0),
channel(0),
servo_value(0)
{}
// set allowed servo channel mask
void set_channel_mask(uint16_t _mask) { mask = _mask; }