update msgs fields from camelCase to snake_case so rosidl_generate_interfaces() is able to generate code for ROS IDL files

This commit is contained in:
TSC21
2018-07-30 21:40:28 +02:00
committed by Lorenz Meier
parent 553d68b80f
commit ca42483794
14 changed files with 58 additions and 52 deletions
+4 -4
View File
@@ -368,7 +368,7 @@ ADC::update_system_power(hrt_abstime now)
system_power_s system_power = {};
system_power.timestamp = now;
system_power.voltage5V_v = 0;
system_power.voltage5v_v = 0;
#if defined(ADC_5V_RAIL_SENSE)
@@ -376,7 +376,7 @@ ADC::update_system_power(hrt_abstime now)
if (_samples[i].am_channel == ADC_5V_RAIL_SENSE) {
// it is 2:1 scaled
system_power.voltage5V_v = _samples[i].am_data * (6.6f / 4096.0f);
system_power.voltage5v_v = _samples[i].am_data * (6.6f / 4096.0f);
}
}
@@ -402,8 +402,8 @@ ADC::update_system_power(hrt_abstime now)
system_power.servo_valid = BOARD_ADC_SERVO_VALID;
// OC pins are active low
system_power.periph_5V_OC = BOARD_ADC_PERIPH_5V_OC;
system_power.hipower_5V_OC = BOARD_ADC_HIPOWER_5V_OC;
system_power.periph_5v_oc = BOARD_ADC_PERIPH_5V_OC;
system_power.hipower_5v_oc = BOARD_ADC_HIPOWER_5V_OC;
/* lazily publish */
if (_to_system_power != nullptr) {