Difference between revisions of "RC08Firmware"

From RoboJackets Wiki
Jump to navigation Jump to search
(Tasks)
(Specifications)
Line 21: Line 21:
 
*[ ] Write PID controller for robot and test
 
*[ ] Write PID controller for robot and test
  
==Specifications==
+
==Code Documentation==
* We may want to add an interlever to our wireless system (this may have to go on FPGA and is a function of wireless conroller)
+
===Protocol===
* We may also want to go for a more advanced encoder scheme
+
===Files (In alphabetical order)===
* Closed-loop control will start out as PID but could go to state-feedback
+
====AD.c====
 +
====Buzzer.c====
 +
====crt0.s====
 +
====delay.c====
 +
====entry.s====
 +
Replaced by crt0.s. Does not contain code to set-up stack for interrupts
 +
====FPGA_bus.c====
 +
====interrupt.h====
 +
====lpc2103.h====
 +
====lpc2138-ROM.ld====
 +
====lpc213x.h====
 +
====Makefile====
 +
====motor.c====
 +
====number.c====
 +
====openocd.cfg====
 +
====openocd_go_flash====
 +
====packet.c====
 +
====packet_handler.c====
 +
====PID.c====
 +
====radio.c====
 +
====robot.c====
 +
====scan.c====
 +
====Threadz.c====
 +
====uart.c====
 +
====VIClowlevel.c====
 +
 
 
==Links==
 
==Links==
 
<br>
 
<br>
 
*[[RoboCupElectrical|Electrical System]]
 
*[[RoboCupElectrical|Electrical System]]

Revision as of 11:45, 23 January 2008

The firmware resides on the microcontroller and includes software to implement the protocol, control the motors, and perform closed loop control on the motors and the robot itself.

Tasks

  • [X] Generate an I/O spec
  • [X] Evaluate the the current protocol - Currently no changes will be made until after the robot hardware is finished
  • [X] Update if necessary
  • [X] Add code to interface with FPGA using SPI or serial
  • [X] Implement timer based psuedo-preemptive scheduler
    • [ ] Investigate actual preemptive schedulers
  • [ ] Add transmit channel from robot to base station
  • [ ] Support base station development
  • [ ] Re-map printf to ARM and write RX buffer code as an interrupt
  • [ ] Code and test AD function
  • [ ] Model motors in Simulink, build a PID controller and find good gains
    • [ ] Add wheel slip to model and see if it can be controlled
    • [ ] Investigate if a state-estimator can be used in place of PID
      • [ ] Investigate if ARM can handle the load and maintain appropriate sample rate
      • [ ] See if coding a better scheduler will help
      • [ ] See if encoder resolution is enough to even make this work (may not)
  • [ ] Write code to determine velocity using counter
    • [ ] Extend that code to use accelerometer and Kalman filter
  • [ ] Write PID controller for robot and test

Code Documentation

Protocol

Files (In alphabetical order)

AD.c

Buzzer.c

crt0.s

delay.c

entry.s

Replaced by crt0.s. Does not contain code to set-up stack for interrupts

FPGA_bus.c

interrupt.h

lpc2103.h

lpc2138-ROM.ld

lpc213x.h

Makefile

motor.c

number.c

openocd.cfg

openocd_go_flash

packet.c

packet_handler.c

PID.c

radio.c

robot.c

scan.c

Threadz.c

uart.c

VIClowlevel.c

Links