mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 16:49:51 +08:00
Sensors: Code style
This commit is contained in:
@@ -1657,6 +1657,7 @@ Sensors::adc_poll(struct sensor_combined_s &raw)
|
||||
if (ADC_BATTERY_VOLTAGE_CHANNEL == buf_adc[i].am_channel) {
|
||||
/* Voltage in volts */
|
||||
bat_voltage_v = (buf_adc[i].am_data * _parameters.battery_voltage_scaling);
|
||||
|
||||
if (bat_voltage_v > 0.5f) {
|
||||
updated_battery = true;
|
||||
}
|
||||
|
||||
@@ -811,7 +811,7 @@ int Simulator::publish_sensor_topics(mavlink_hil_sensor_t *imu)
|
||||
accel.z = imu->zacc;
|
||||
|
||||
accel.temperature = imu->temperature;
|
||||
|
||||
|
||||
int accel_multi;
|
||||
orb_publish_auto(ORB_ID(sensor_accel), &_accel_pub, &accel, &accel_multi, ORB_PRIO_HIGH);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user