mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
newline added at the end of files
This commit is contained in:
@@ -766,7 +766,7 @@ Mavlink::set_hil_enabled(bool hil_enabled)
|
|||||||
_hil_enabled = true;
|
_hil_enabled = true;
|
||||||
ret = configure_stream("HIL_ACTUATOR_CONTROLS", 200.0f);
|
ret = configure_stream("HIL_ACTUATOR_CONTROLS", 200.0f);
|
||||||
|
|
||||||
configure_stream("GROUND_TRUTH", 25.0f); // HIL_STATE_QUATERNION to display the SIH
|
configure_stream("GROUND_TRUTH", 200.0f); // HIL_STATE_QUATERNION to display the SIH
|
||||||
}
|
}
|
||||||
|
|
||||||
/* disable HIL */
|
/* disable HIL */
|
||||||
|
|||||||
+1
-13
@@ -520,7 +520,7 @@ void Sih::send_gps()
|
|||||||
void Sih::publish_sih()
|
void Sih::publish_sih()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
_gpos_gt.timestamp=hrt_absolute_time();
|
||||||
_gpos_gt.lat=_gps_lat_noiseless;
|
_gpos_gt.lat=_gps_lat_noiseless;
|
||||||
_gpos_gt.lon=_gps_lon_noiseless;
|
_gpos_gt.lon=_gps_lon_noiseless;
|
||||||
_gpos_gt.alt=_gps_alt_noiseless;
|
_gpos_gt.alt=_gps_alt_noiseless;
|
||||||
@@ -588,15 +588,3 @@ int sih_main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
return Sih::main(argc, argv);
|
return Sih::main(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
// int Sih::pack_float(char* uart_msg, int index, void *value)
|
|
||||||
// {
|
|
||||||
// uint32_t value_raw=(uint32_t)(value*);
|
|
||||||
|
|
||||||
// for (int i=3; i>=0; i=i-1) {
|
|
||||||
// buffer[index+i]=(char)(value_raw&0xFF);
|
|
||||||
// value_raw=value_raw>>8;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// return index+4; // points to the index for the next value
|
|
||||||
// }
|
|
||||||
Reference in New Issue
Block a user