Programming Project Lifecycle
Jump to navigation
Jump to search
Development lifecycle:
- Requirements -> Design -> Implement -> Test
Requirements (the WHAT of what needs to be done)
- Requirements consists of CUSTOMER requirements and DERIVED requirements. Requirements are mostly BEHAVIORS (do X, or display Y) or sometimes performance constraints (move to X location within TBD seconds).
- Customer requirements are those that the customer requests directly (e.g. Raise a hatch precisely to a given height, deliver a ball to a cargo station automatically without operator input). For MORT these may define field movements that the driver performs or is provided with software assistance.
- Derived requirements are those behaviors that are needed to support the customer requirements (drive at a given speed, turn robot N degrees, raise the elevator, map joystick movements into drive commands)
Design (The HOW of what needs to be done, and also details of WHAT needs to be done by subsections of the system)
- Design specifies the major components
- Design specifies the minor components
- Design refines the components to specify precisely what portions of the system do what, and how they do it
- At a minimum Functional Specification and Pseudocode needs to be performed. (MANDATORY)
- A functional spec includes a function signature with parameters, and the “intended function” - 1-2 lines that describe precisely, the intended functionality, per method.
- Design is iterative and works by decomposing. High level at first, (e.g., identify system components and what responsibilities they have) then add more information (needed steps or functions), then more detail (full signatures, and precise intended functions)
- Detailed design includes pseudocode
- Optional to use flow charts, data flow diagrams, or other design techniques
What we need to do
Definine System Functionality
- Accept and understand customer requirements; record them when not already recorded well
- Identify derived requirements
- Identify subsystems, refine subsystem tasking (Benny’s area of expertise list)
- List every subsystem, ensure they map to the core organization, defining the repoActions/ functions
- Start setting up functions that the robot needs. These will be in each class.
- Identify primary steps to implement for each customer or derived requirement
- Refine each step until we don’t know what to do, then use bottom up investigation/learning until we can complete design
Organize SW development repository / structure
- Code organization proposal (modify as need be):
mort2019.java
util (directory)
- constants per subsystem?
- hw definition (port mapping)
- other?
sensors (directory)
- sensors not vision system or nav-X
end_effectors (directory)
- just what it says
drivetrain (directory)
- self explanatory
vision (directory)
- vision system drivers interfacing to the embedded sw (running on roborio)