New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler MIN MAX syntax for command definitions #190

ryanatball opened this Issue Sep 3, 2015 · 0 comments


None yet
2 participants

ryanatball commented Sep 3, 2015

  1. Add parameter ‘MIN’ & ‘MAX’ as options for automatically calculating the min/max value of any UINT or INT type using the bit size and type
    Expands on the ‘MIN_UINT8’, ‘MAX_INT64’ options – would help declutter cmd_tlm definitions
    UINT: MIN = 0 MAX = 2^n
    INT: MIN = -2^(n-1) MAX = 2^(n-1)-1
    PARAMETER X 0 12 UINT MIN MAX 0 …where MIN/MAX become… MIN = 0 MAX = 2^12 = 4096
    PARAMETER Y 12 15 INT MIN MAX 0 …where MIN/MAX become… MIN = -2^(15-1) = -16384 MAX = 2^(15-1)-1 = 16383

@ryanatball ryanatball added the feature label Sep 3, 2015

@jmthomas jmthomas self-assigned this May 3, 2016

@jmthomas jmthomas closed this in abc88c7 May 5, 2016

jmthomas added a commit that referenced this issue May 5, 2016

@ryanatball ryanatball modified the milestone: v3.8.1 May 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment