Skip to content

Commit

Permalink
Update vehicle_state.cpp
Browse files Browse the repository at this point in the history
Resolve ERROR [simulator_mavlink] Number of simulated accelerometer out of range.

Fix #30
  • Loading branch information
kaklik committed Jul 10, 2023
1 parent 194edec commit 2b5dceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vehicle_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ mavlink_hil_sensor_t VehicleState::getSensorMsg(int offset_us)
sensor_msg.pressure_alt = pressure_alt + baro_alt_nois * standard_normal_distribution_(random_generator_);
sensor_msg.diff_pressure = diff_pressure + diff_pressure_nois * standard_normal_distribution_(random_generator_) ;
sensor_msg.fields_updated = (uint16_t)0x1FFF;
sensor_msg.id = 0;

return sensor_msg;
}
Expand Down

0 comments on commit 2b5dceb

Please sign in to comment.