Historical project documentation. Content is maintained in GitLab.

SBSourceIntro

SB Source Intro

{i} This is work in progress! Please post in the forum when you find errors or mistakes!

Source Files

The SB Source contains the sensor boards firmware source code. Its located in the folder sb-controller.

Source FileDescriptionState
compass.c/hCommunication and attitude compensation of compass data
conf.c/hConfiguration implementation, print and dump functions
devices.c/hDevice table
eint.c/hExternal interrupt handler
fifo.c/hFIFO implementation
fixp923.c/h32-Bit Fixpoint implementation (used for GPS-Position)
led.c/hHandling of the LED's
main.c/hStarts the show...
math.c/hSome mathematic functions
monitor.c/hMonitor implementation for shells
ngpp.c/hNGPP implementation
nmea.c/hNMEA protocol parser (used for GPS), supplies position
position.c/hHold position data and implements print functions
spi.c/hSPI communication implementation (for compass)
string_const.c/hString constants
task.c/hTask management
taskcom.c/hMutexes for task synchronizations
terminal.c/hTerminal command parser
terminal_const.hTerminal command list
twi_slave.c/hTWI (I2C) slave implemenation (used for NGPP)
uart.c/hUART driver
version.c/hVersion command

Configure settings

These are the most important configuration settings:

  all

  clean

  sb-flash-fuses-dragon
  sb-flash-dragon
  sb-flash-dragon-no-verify
  sb-read-flash-dragon
  sb-erase-dragon

  sb-flash-fuses-usbprog
  sb-flash-usbprog
  sb-read-flash-usbprog
  sb-erase-usbprog

  sb-flash-fuses-stk500
  sb-flash-stk500
  sb-read-flash-stk500
  sb-erase-stk500

  indent