Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
/ fs-0-primary Public archive

The primary microcontroller software for the Formula Slug 2016 racecar (FS-0).

Notifications You must be signed in to change notification settings

formulaslug/fs-0-primary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primary Controls

This repository contains the software for our primary controller of the Formula Slug 2016 racecar, FS-0.

The style guide repository at https://github.com/wpilibsuite/styleguide contains our style guide for C and C++ code and formatting scripts.

TODO

  • Clean the input throttle voltage so the ADC value doesn't jump everywhere (add a required change of ~3 or 4). Probably best to add to primary controls a utility function that can be passed 1: adcValue, 2: requiredDelta, and then will only return a new value if it's different from the previous value by requiredDelta or more
  • Implement function canPrimary2Secondary() that queues all primary->secondary communication to CAN bus. This only includes information not already being written to the bus for Primary->Master communication
    • Add primary teensy's state (of fsm) to the packet in canPrimary2Secondary()

About

The primary microcontroller software for the Formula Slug 2016 racecar (FS-0).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published