Skip to content

Commit

Permalink
downlink gps data as little endian
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanjma committed Apr 20, 2024
1 parent d765241 commit 6ee0a6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ControlTasks/RadioControlTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ bool RadioControlTask::normalReportDownlink()
flags |= (sfr::radio::mode == radio_mode_type::listen) << 2; // listen flag

uint8_t dlink[] = {
(uint8_t)(lat >> 8), (uint8_t)lat,
(uint8_t)(lon >> 8), (uint8_t)lon,
(uint8_t)(alt >> 8), (uint8_t)alt,
(uint8_t)lat, (uint8_t)(lat >> 8),
(uint8_t)lon, (uint8_t)(lon >> 8),
(uint8_t)alt, (uint8_t)(alt >> 8),
map_range(sfr::imu::gyro_x, constants::imu::gyro_min, constants::imu::gyro_max),
map_range(sfr::imu::gyro_y, constants::imu::gyro_min, constants::imu::gyro_max),
map_range(sfr::imu::gyro_z, constants::imu::gyro_min, constants::imu::gyro_max),
Expand Down

0 comments on commit 6ee0a6f

Please sign in to comment.