Giter Site home page Giter Site logo

in-the-zone-b's Introduction

In The Zone Code

Version 2.0

Features

  • LCD Library
    • Simple Helpers
    • Autonomous Routine Selection
    • UI Components:
      • Pick
      • Menu
      • Custom Debug Menu (with multiple, live, configurable screens)
  • Motion Control:
    • Simple PID Library Functions
    • PID Integration into Hardware Abstraction Layer
    • Motion Profiling
  • Smart Motors:
    • Slew Rate
    • Truespeed
    • Deadband
  • Rerun:
    • Record Reruns
    • Integrate playback into autonomous and programming skills systems

๐Ÿš€

in-the-zone-b's People

Contributors

brenapp avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

in-the-zone-b's Issues

Incompatible type conversion: 'char (*)[12]' to 'char [16][12]'

lcd.cpp: In function 'void lcd::menu(char (*)[12], void (*)(int))':
lcd.cpp:99:28: error: incompatible types in assignment of 'char (*)[12]' to 'char [16][12]'

Despite the fact that the function is defined clearly, it is being interpreted differently

void menu(char options[16][12], void(*callback)(int choice));
void menu(char options[16][12] , void(*callback)(int choice)) {
        lcd::menuOptions = options;
        lcd::menuCallback = callback;
}
char menuOptions[16][12];

New Feature Bugs

The most recent commits have introduced the following bugs:

File "C:\Users\bmcgui7575\Documents\Robotics\itz-code\main.c" compiled on Nov 13 2017 15:39:09
**Error**:Undefined variable 'pids'. 'short' assumed.
**Error**:LValue for '[]' operator must be a pointer
**Error**:'[]' operator requires pointer value on left hand side [2].
**Error**:Variable 'pids' is subsequently duplicately defined.
**Error**:Duplicate variable declaration of 'pids'
**Error**:Variable 'pids' redefinition.
**Error**:Type mismatch with previous 'const' declaration for variable with same name
**Error**:Executable statements not valid in 'main' declaration block
**Error**:Unexpected '{' during parsing
**Error**:Not enough parameters specified. Call to 'pidActivate'. Parameter: 'long * ports' is 'None specified'.
**Info***:Include file 'C:\Users\bmcgui7575\Documents\Robotics\itz-code\config.c' has already been opened.
**Error**:Executable statements not valid in 'main' declaration block
**Info***:Include file 'C:\Users\bmcgui7575\Documents\Robotics\itz-code\lib\util.c' has already been opened.
**Info***:Include file 'C:\Users\bmcgui7575\Documents\Robotics\itz-code\config.c' has already been opened.
**Error**:')' missing. Ummatched left parenthesis '('
**Error**:Expected->')'. Found '['
**Error**:No body declared for procedure
**Error**:Expected->'}'. Found '['
**Error**:Unexpected '[' during parsing
**Error**:Unexpected ']' during parsing
**Error**:Unexpected ',' during parsing
**Error**:Missing ';' before ')'
**Error**:Unexpected ')' during parsing
**Error**:Duplicate definition for task 'main'.
*Warning*:Unreferenced function 'motorSet'
**Error**:Undefined variable 'ports'. 'short' assumed.
**Error**:Expected->'('. Found '['
**Error**:')' missing. Ummatched left parenthesis '('
**Error**:Expected->')'. Found '['
**Error**:Unexpected '[' during parsing
**Error**:Expected->';'. Found ']'
**Error**:Unexpected ']' during parsing
**Error**:Unexpected ')' during parsing
*Warning*:Substituting similar variable 'I' for 'i'. Check spelling and letter case.
**Error**:Missing ';' before ')'
*Warning*:Meaningless statement -- no code generated
*Warning*:Substituting similar variable 'I' for 'i'. Check spelling and letter case.
**Error**:LValue for '[]' operator must be a pointer
**Error**:'[]' operator requires pointer value on left hand side [2].
**Error**:'enable' is not a 'struct' element of struct reference 'pids[i]'
**Error**:Undefined variable 'auto'. 'short' assumed.
**Error**:Expected->';'. Found 'test'
**Error**:Executable statements not valid in 'main' declaration block
**Error**:Undefined variable 'test'. 'short' assumed.
*Warning*:Meaningless statement -- no code generated

Update IME Sensor Type

Currently, the update function does not work with IMEs. This is due to the fact that updating an IME requires creating a pointer

Get rid of warnings

The following warnings are present at 580059c:

lcd.cpp: In function 'void lcdTask(void*)':
lcd.cpp:21:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.cpp:22:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.cpp:57:38: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.cpp: At global scope:
lcd.cpp:86:17: warning: 'void lcd::write(int, const char*)' defined but not used [-Wunused-function]
lcd.cpp:90:17: warning: 'void lcd::center(int, const char*)' defined but not used [-Wunused-function]

Get rid of them (preferably without adding the flags)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.