Skip to content

Commit

Permalink
Merge pull request #6 from jclds139/angleToDegFix
Browse files Browse the repository at this point in the history
Removed extra parenthesis on SBGC_ANGLE_TO_DEGREE
  • Loading branch information
Aleksei Moskalenko committed Sep 7, 2017
2 parents 6648f99 + 94a9270 commit e23402d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/SBGC_lib/include/SBGC_cmd_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Conversions for angle in degrees to angle in SBGC 14bit representation, and back
#define SBGC_DEGREE_TO_ANGLE(val) ((val)*SBGC_DEGREE_ANGLE_SCALE)
#define SBGC_ANGLE_TO_DEGREE(val) ((val)*SBGC_ANGLE_DEGREE_SCALE))
#define SBGC_ANGLE_TO_DEGREE(val) ((val)*SBGC_ANGLE_DEGREE_SCALE)
// The same, optimized for integers
#define SBGC_DEGREE_TO_ANGLE_INT(val) ((int32_t)(val)*SBGC_ANGLE_FULL_TURN/360)
#define SBGC_DEGREE_01_TO_ANGLE_INT(val) ((int32_t)(val)*SBGC_ANGLE_FULL_TURN/3600)
Expand Down Expand Up @@ -174,4 +174,4 @@ inline uint8_t SBGC_cmd_execute_menu_send(uint8_t menu_action, SBGC_Parser &pars
}


#endif
#endif

0 comments on commit e23402d

Please sign in to comment.